Removing dependency on third party library for Intel JIT event support.
[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 XML2CONFIG
770 LIBXML2_LIBS
771 LIBXML2_INC
772 HAVE_PTHREAD
773 HUGE_VAL_SANITY
774 MMAP_FILE
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 LIBOBJS
794 LTLIBOBJS'
795 ac_subst_files=''
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 CPPFLAGS
803 CXX
804 CXXFLAGS
805 CCC
806 CPP'
807 ac_subdirs_all='projects/llvm-gcc
808 projects/test-suite
809 projects/llvm-test
810 projects/poolalloc
811 projects/llvm-poolalloc
812 projects/sample
813 projects/privbracket
814 projects/llvm-stacker
815 projects/llvm-reopt
816 projects/llvm-java
817 projects/llvm-tv
818 projects/safecode
819 projects/llvm-kernel
820 tools/polly'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package| sed 's/-/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/-/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-polly          Use polly if available (default is YES)
1396   --enable-libcpp         Use libc++ if available (default is NO)
1397   --enable-cxx11          Use c++11 if available (default is NO)
1398   --enable-optimized      Compile with optimizations enabled (default is NO)
1399   --enable-profiling      Compile with profiling enabled (default is NO)
1400   --enable-assertions     Compile with assertion checks enabled (default is
1401                           YES)
1402   --enable-werror         Compile with -Werror enabled (default is NO)
1403   --enable-expensive-checks
1404                           Compile with expensive debug checks enabled (default
1405                           is NO)
1406   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1407                           NO)
1408   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1409                           optimization is on and YES if it's off)
1410   --enable-keep-symbols   Do not strip installed executables)
1411   --enable-jit            Enable Just In Time Compiling (default is YES)
1412   --enable-docs           Build documents (default is YES)
1413   --enable-doxygen        Build doxygen documentation (default is NO)
1414   --enable-threads        Use threads if available (default is YES)
1415   --enable-pthreads       Use pthreads if available (default is YES)
1416   --enable-pic            Build LLVM with Position Independent Code (default
1417                           is YES)
1418   --enable-shared         Build a shared library and link tools against it
1419                           (default is NO)
1420   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1421                           Win32 DLL (default is NO)
1422   --enable-timestamps     Enable embedding timestamp information in build
1423                           (default is YES)
1424   --enable-backtraces     Enable embedding backtraces on crash (default is
1425                           YES)
1426   --enable-targets        Build specific host targets: all or
1427                           target1,target2,... Valid targets are: host, x86,
1428                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1429                           xcore, msp430, nvptx, and cpp (default=all)
1430   --enable-experimental-targets
1431                           Build experimental host targets: disable or
1432                           target1,target2,... (default=disable)
1433   --enable-bindings       Build specific language bindings:
1434                           all,auto,none,{binding-name} (default=auto)
1435   --enable-libffi         Check for the presence of libffi (default is NO)
1436   --enable-ltdl-install   install libltdl
1437
1438 Optional Packages:
1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441   --with-optimize-option  Select the compiler options to use for optimized
1442                           builds
1443   --with-extra-options    Specify additional options to compile LLVM with
1444   --with-extra-ld-options Specify additional options to link LLVM with
1445   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1446                           is stdlib)
1447   --with-clang-srcdir     Directory to the out-of-tree Clang source
1448   --with-clang-resource-dir
1449                           Relative directory from the Clang binary for
1450                           resource files
1451   --with-c-include-dirs   Colon separated list of directories clang will
1452                           search for headers
1453   --with-gcc-toolchain    Directory where gcc is installed.
1454   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1455   --with-binutils-include Specify path to binutils/include/ containing
1456                           plugin-api.h file for gold plugin.
1457   --with-bug-report-url   Specify the URL where bug reports should be
1458                           submitted (default=http://llvm.org/bugs/)
1459   --with-internal-prefix  Installation directory for internal files
1460   --with-udis86=<path>    Use udis86 external x86 disassembler library
1461   --with-oprofile=<prefix>
1462                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1463   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1464
1465
1466 Some influential environment variables:
1467   CC          C compiler command
1468   CFLAGS      C compiler flags
1469   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470               nonstandard directory <lib dir>
1471   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472               you have headers in a nonstandard directory <include dir>
1473   CXX         C++ compiler command
1474   CXXFLAGS    C++ compiler flags
1475   CPP         C preprocessor
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <http://llvm.org/bugs/>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486   # If there are subdirs, report their specific --help.
1487   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488     test -d "$ac_dir" || continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 LLVM configure 3.2svn
1542 generated by GNU Autoconf 2.60
1543
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548
1549 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1550 _ACEOF
1551   exit
1552 fi
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1556
1557 It was created by LLVM $as_me 3.2svn, which was
1558 generated by GNU Autoconf 2.60.  Invocation command line was
1559
1560   $ $0 $@
1561
1562 _ACEOF
1563 exec 5>>config.log
1564 {
1565 cat <<_ASUNAME
1566 ## --------- ##
1567 ## Platform. ##
1568 ## --------- ##
1569
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1578
1579 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1580 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1583 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1584 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1585 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1586
1587 _ASUNAME
1588
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592   IFS=$as_save_IFS
1593   test -z "$as_dir" && as_dir=.
1594   echo "PATH: $as_dir"
1595 done
1596 IFS=$as_save_IFS
1597
1598 } >&5
1599
1600 cat >&5 <<_ACEOF
1601
1602
1603 ## ----------- ##
1604 ## Core tests. ##
1605 ## ----------- ##
1606
1607 _ACEOF
1608
1609
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1615 ac_configure_args=
1616 ac_configure_args0=
1617 ac_configure_args1=
1618 ac_must_keep_next=false
1619 for ac_pass in 1 2
1620 do
1621   for ac_arg
1622   do
1623     case $ac_arg in
1624     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626     | -silent | --silent | --silen | --sile | --sil)
1627       continue ;;
1628     *\'*)
1629       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1630     esac
1631     case $ac_pass in
1632     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1633     2)
1634       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635       if test $ac_must_keep_next = true; then
1636         ac_must_keep_next=false # Got value, back to normal.
1637       else
1638         case $ac_arg in
1639           *=* | --config-cache | -C | -disable-* | --disable-* \
1640           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642           | -with-* | --with-* | -without-* | --without-* | --x)
1643             case "$ac_configure_args0 " in
1644               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645             esac
1646             ;;
1647           -* ) ac_must_keep_next=true ;;
1648         esac
1649       fi
1650       ac_configure_args="$ac_configure_args '$ac_arg'"
1651       ;;
1652     esac
1653   done
1654 done
1655 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1657
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log.  We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664   # Save into config.log some information that might help in debugging.
1665   {
1666     echo
1667
1668     cat <<\_ASBOX
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1672 _ASBOX
1673     echo
1674     # The following way of writing the cache mishandles newlines in values,
1675 (
1676   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677     eval ac_val=\$$ac_var
1678     case $ac_val in #(
1679     *${as_nl}*)
1680       case $ac_var in #(
1681       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1683       esac
1684       case $ac_var in #(
1685       _ | IFS | as_nl) ;; #(
1686       *) $as_unset $ac_var ;;
1687       esac ;;
1688     esac
1689   done
1690   (set) 2>&1 |
1691     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692     *${as_nl}ac_space=\ *)
1693       sed -n \
1694         "s/'\''/'\''\\\\'\'''\''/g;
1695           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696       ;; #(
1697     *)
1698       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699       ;;
1700     esac |
1701     sort
1702 )
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1709 _ASBOX
1710     echo
1711     for ac_var in $ac_subst_vars
1712     do
1713       eval ac_val=\$$ac_var
1714       case $ac_val in
1715       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716       esac
1717       echo "$ac_var='\''$ac_val'\''"
1718     done | sort
1719     echo
1720
1721     if test -n "$ac_subst_files"; then
1722       cat <<\_ASBOX
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1726 _ASBOX
1727       echo
1728       for ac_var in $ac_subst_files
1729       do
1730         eval ac_val=\$$ac_var
1731         case $ac_val in
1732         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733         esac
1734         echo "$ac_var='\''$ac_val'\''"
1735       done | sort
1736       echo
1737     fi
1738
1739     if test -s confdefs.h; then
1740       cat <<\_ASBOX
1741 ## ----------- ##
1742 ## confdefs.h. ##
1743 ## ----------- ##
1744 _ASBOX
1745       echo
1746       cat confdefs.h
1747       echo
1748     fi
1749     test "$ac_signal" != 0 &&
1750       echo "$as_me: caught signal $ac_signal"
1751     echo "$as_me: exit $exit_status"
1752   } >&5
1753   rm -f core *.core core.conftest.* &&
1754     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1755     exit $exit_status
1756 ' 0
1757 for ac_signal in 1 2 13 15; do
1758   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1759 done
1760 ac_signal=0
1761
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1764
1765 # Predefined preprocessor variables.
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789 _ACEOF
1790
1791
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer explicitly selected file to automatically selected ones.
1794 if test -n "$CONFIG_SITE"; then
1795   set x "$CONFIG_SITE"
1796 elif test "x$prefix" != xNONE; then
1797   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1798 else
1799   set x "$ac_default_prefix/share/config.site" \
1800         "$ac_default_prefix/etc/config.site"
1801 fi
1802 shift
1803 for ac_site_file
1804 do
1805   if test -r "$ac_site_file"; then
1806     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807 echo "$as_me: loading site script $ac_site_file" >&6;}
1808     sed 's/^/| /' "$ac_site_file" >&5
1809     . "$ac_site_file"
1810   fi
1811 done
1812
1813 if test -r "$cache_file"; then
1814   # Some versions of bash will fail to source /dev/null (special
1815   # files actually), so we avoid doing that.
1816   if test -f "$cache_file"; then
1817     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818 echo "$as_me: loading cache $cache_file" >&6;}
1819     case $cache_file in
1820       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821       *)                      . "./$cache_file";;
1822     esac
1823   fi
1824 else
1825   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826 echo "$as_me: creating cache $cache_file" >&6;}
1827   >$cache_file
1828 fi
1829
1830 # Check that the precious variables saved in the cache have kept the same
1831 # value.
1832 ac_cache_corrupted=false
1833 for ac_var in $ac_precious_vars; do
1834   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835   eval ac_new_set=\$ac_env_${ac_var}_set
1836   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837   eval ac_new_val=\$ac_env_${ac_var}_value
1838   case $ac_old_set,$ac_new_set in
1839     set,)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,set)
1844       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1846       ac_cache_corrupted=: ;;
1847     ,);;
1848     *)
1849       if test "x$ac_old_val" != "x$ac_new_val"; then
1850         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1853 echo "$as_me:   former value:  $ac_old_val" >&2;}
1854         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1855 echo "$as_me:   current value: $ac_new_val" >&2;}
1856         ac_cache_corrupted=:
1857       fi;;
1858   esac
1859   # Pass precious variables to config.status.
1860   if test "$ac_new_set" = set; then
1861     case $ac_new_val in
1862     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863     *) ac_arg=$ac_var=$ac_new_val ;;
1864     esac
1865     case " $ac_configure_args " in
1866       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1867       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1868     esac
1869   fi
1870 done
1871 if $ac_cache_corrupted; then
1872   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876    { (exit 1); exit 1; }; }
1877 fi
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910
1911 cat >>confdefs.h <<\_ACEOF
1912 #define LLVM_VERSION_MAJOR 3
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<\_ACEOF
1917 #define LLVM_VERSION_MINOR 2
1918 _ACEOF
1919
1920
1921 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1922
1923
1924
1925
1926
1927
1928
1929 ac_aux_dir=
1930 for ac_dir in autoconf "$srcdir"/autoconf; do
1931   if test -f "$ac_dir/install-sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install-sh -c"
1934     break
1935   elif test -f "$ac_dir/install.sh"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/install.sh -c"
1938     break
1939   elif test -f "$ac_dir/shtool"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/shtool install -c"
1942     break
1943   fi
1944 done
1945 if test -z "$ac_aux_dir"; then
1946   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1958
1959
1960
1961 if test ${srcdir} != "." ; then
1962   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1963     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965    { (exit 1); exit 1; }; }
1966   fi
1967 fi
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975   for ac_prog in clang llvm-gcc gcc
1976   do
1977     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$CC"; then
1985   ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006   { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2008 else
2009   { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2011 fi
2012
2013
2014     test -n "$CC" && break
2015   done
2016 fi
2017 if test -z "$CC"; then
2018   ac_ct_CC=$CC
2019   for ac_prog in clang llvm-gcc gcc
2020 do
2021   # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   if test -n "$ac_ct_CC"; then
2029   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034   IFS=$as_save_IFS
2035   test -z "$as_dir" && as_dir=.
2036   for ac_exec_ext in '' $ac_executable_extensions; do
2037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038     ac_cv_prog_ac_ct_CC="$ac_prog"
2039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040     break 2
2041   fi
2042 done
2043 done
2044 IFS=$as_save_IFS
2045
2046 fi
2047 fi
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2052 else
2053   { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2055 fi
2056
2057
2058   test -n "$ac_ct_CC" && break
2059 done
2060
2061   if test "x$ac_ct_CC" = x; then
2062     CC=""
2063   else
2064     case $cross_compiling:$ac_tool_warned in
2065 yes:)
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet.  If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet.  If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2073 esac
2074     CC=$ac_ct_CC
2075   fi
2076 fi
2077
2078
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler --version >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -v >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2109 case "(($ac_try" in
2110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111   *) ac_try_echo=$ac_try;;
2112 esac
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114   (eval "$ac_compiler -V >&5") 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118
2119 cat >conftest.$ac_ext <<_ACEOF
2120 /* confdefs.h.  */
2121 _ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h.  */
2125
2126 int
2127 main ()
2128 {
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2138 # of exeext.
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142 #
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort.  b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147 #
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions.  Remove them first so a
2150 # subsequent execution test works.
2151 ac_rmfiles=
2152 for ac_file in $ac_files
2153 do
2154   case $ac_file in
2155     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157   esac
2158 done
2159 rm -f $ac_rmfiles
2160
2161 if { (ac_try="$ac_link_default"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167   (eval "$ac_link_default") 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; then
2171   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2175 # Autoconf.
2176 for ac_file in $ac_files
2177 do
2178   test -f "$ac_file" || continue
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2181         ;;
2182     [ab].out )
2183         # We found the default executable, but exeext='' is most
2184         # certainly right.
2185         break;;
2186     *.* )
2187         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2188         then :; else
2189            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190         fi
2191         # We set ac_cv_exeext here because the later test for it is not
2192         # safe: cross compilers may not add the suffix if given an `-o'
2193         # argument, so we may need to know it at that point already.
2194         # Even if this section looks crufty: it has the advantage of
2195         # actually working.
2196         break;;
2197     * )
2198         break;;
2199   esac
2200 done
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2202
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211    { (exit 77); exit 77; }; }
2212 fi
2213
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2217
2218 # Check that the compiler produces executables we can run.  If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225   if { ac_try='./$ac_file'
2226   { (case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231   (eval "$ac_try") 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235     cross_compiling=no
2236   else
2237     if test "$cross_compiling" = maybe; then
2238         cross_compiling=yes
2239     else
2240         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246    { (exit 1); exit 1; }; }
2247     fi
2248   fi
2249 fi
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2252
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run.  If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2261
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_link") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 # `rm'.
2278 for ac_file in conftest.exe conftest conftest.*; do
2279   test -f "$ac_file" || continue
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283           break;;
2284     * ) break;;
2285   esac
2286 done
2287 else
2288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2298
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compile") 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; then
2333   for ac_file in conftest.o conftest.obj conftest.*; do
2334   test -f "$ac_file" || continue;
2335   case $ac_file in
2336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338        break;;
2339   esac
2340 done
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349    { (exit 1); exit 1; }; }
2350 fi
2351
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353 fi
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 int
2371 main ()
2372 {
2373 #ifndef __GNUC__
2374        choke me
2375 #endif
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388   (eval "$ac_compile") 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_compiler_gnu=yes
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420         ac_compiler_gnu=no
2421 fi
2422
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425
2426 fi
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   ac_save_c_werror_flag=$ac_c_werror_flag
2438    ac_c_werror_flag=yes
2439    ac_cv_prog_cc_g=no
2440    CFLAGS="-g"
2441    cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463   (eval "$ac_compile") 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_cv_prog_cc_g=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495         CFLAGS=""
2496       cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502
2503 int
2504 main ()
2505 {
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2513 case "(($ac_try" in
2514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515   *) ac_try_echo=$ac_try;;
2516 esac
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518   (eval "$ac_compile") 2>conftest.er1
2519   ac_status=$?
2520   grep -v '^ *+' conftest.er1 >conftest.err
2521   rm -f conftest.er1
2522   cat conftest.err >&5
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); } &&
2525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; } &&
2535          { ac_try='test -s conftest.$ac_objext'
2536   { (case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_try") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   :
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550         ac_c_werror_flag=$ac_save_c_werror_flag
2551          CFLAGS="-g"
2552          cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2569 case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_compile") 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; } &&
2591          { ac_try='test -s conftest.$ac_objext'
2592   { (case "(($ac_try" in
2593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594   *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597   (eval "$ac_try") 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   ac_cv_prog_cc_g=yes
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606
2607 fi
2608
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616    ac_c_werror_flag=$ac_save_c_werror_flag
2617 fi
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621   CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623   if test "$GCC" = yes; then
2624     CFLAGS="-g -O2"
2625   else
2626     CFLAGS="-g"
2627   fi
2628 else
2629   if test "$GCC" = yes; then
2630     CFLAGS="-O2"
2631   else
2632     CFLAGS=
2633   fi
2634 fi
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   ac_cv_prog_cc_c89=no
2641 ac_save_CC=$CC
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 #include <stdarg.h>
2649 #include <stdio.h>
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2656      char **p;
2657      int i;
2658 {
2659   return p[i];
2660 }
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2662 {
2663   char *s;
2664   va_list v;
2665   va_start (v,p);
2666   s = g (p, va_arg (v,int));
2667   va_end (v);
2668   return s;
2669 }
2670
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2672    function prototypes and stuff, but not '\xHH' hex character constants.
2673    These don't provoke an error unfortunately, instead are silently treated
2674    as 'x'.  The following induces an error, until -std is added to get
2675    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2676    array size at least.  It's necessary to write '\x00'==0 to get something
2677    that's true only with -std.  */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681    inside strings and character constants.  */
2682 #define FOO(x) 'x'
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 int argc;
2690 char **argv;
2691 int
2692 main ()
2693 {
2694 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701 do
2702   CC="$ac_save_CC $ac_arg"
2703   rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compile") 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_try") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   ac_cv_prog_cc_c89=$ac_arg
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742
2743 fi
2744
2745 rm -f core conftest.err conftest.$ac_objext
2746   test "x$ac_cv_prog_cc_c89" != "xno" && break
2747 done
2748 rm -f conftest.$ac_ext
2749 CC=$ac_save_CC
2750
2751 fi
2752 # AC_CACHE_VAL
2753 case "x$ac_cv_prog_cc_c89" in
2754   x)
2755     { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2757   xno)
2758     { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2760   *)
2761     CC="$CC $ac_cv_prog_cc_c89"
2762     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2764 esac
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773 ac_ext=cpp
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779   if test -n "$CCC"; then
2780     CXX=$CCC
2781   else
2782     if test -n "$ac_tool_prefix"; then
2783   for ac_prog in clang++ llvm-g++ g++
2784   do
2785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$CXX"; then
2793   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 CXX=$ac_cv_prog_CXX
2813 if test -n "$CXX"; then
2814   { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2816 else
2817   { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822     test -n "$CXX" && break
2823   done
2824 fi
2825 if test -z "$CXX"; then
2826   ac_ct_CXX=$CXX
2827   for ac_prog in clang++ llvm-g++ g++
2828 do
2829   # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$ac_ct_CXX"; then
2837   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_ac_ct_CXX="$ac_prog"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866   test -n "$ac_ct_CXX" && break
2867 done
2868
2869   if test "x$ac_ct_CXX" = x; then
2870     CXX="g++"
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet.  If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet.  If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882     CXX=$ac_ct_CXX
2883   fi
2884 fi
2885
2886   fi
2887 fi
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler --version >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -v >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_compiler -V >&5") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }
2921
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937 #ifndef __GNUC__
2938        choke me
2939 #endif
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compile") 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002    ac_cxx_werror_flag=yes
3003    ac_cv_prog_cxx_g=no
3004    CXXFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; }; then
3054   ac_cv_prog_cxx_g=yes
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059         CXXFLAGS=""
3060       cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } &&
3089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   :
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115          CXXFLAGS="-g"
3116          cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; } &&
3155          { ac_try='test -s conftest.$ac_objext'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   ac_cv_prog_cxx_g=yes
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181 fi
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185   CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187   if test "$GXX" = yes; then
3188     CXXFLAGS="-g -O2"
3189   else
3190     CXXFLAGS="-g"
3191   fi
3192 else
3193   if test "$GXX" = yes; then
3194     CXXFLAGS="-O2"
3195   else
3196     CXXFLAGS=
3197   fi
3198 fi
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3214   CPP=
3215 fi
3216 if test -z "$CPP"; then
3217   if test "${ac_cv_prog_CPP+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220       # Double quotes because CPP needs to be expanded
3221     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222     do
3223       ac_preproc_ok=false
3224 for ac_c_preproc_warn_flag in '' yes
3225 do
3226   # Use a header file that comes with gcc, so configuring glibc
3227   # with a fresh cross-compiler works.
3228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229   # <limits.h> exists even on freestanding compilers.
3230   # On the NeXT, cc -E runs the code through the compiler's parser,
3231   # not just through cpp. "Syntax error" is here to catch this case.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #ifdef __STDC__
3239 # include <limits.h>
3240 #else
3241 # include <assert.h>
3242 #endif
3243                      Syntax error
3244 _ACEOF
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } >/dev/null; then
3258   if test -s conftest.err; then
3259     ac_cpp_err=$ac_c_preproc_warn_flag
3260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261   else
3262     ac_cpp_err=
3263   fi
3264 else
3265   ac_cpp_err=yes
3266 fi
3267 if test -z "$ac_cpp_err"; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273   # Broken: fails on valid input.
3274 continue
3275 fi
3276
3277 rm -f conftest.err conftest.$ac_ext
3278
3279   # OK, works on sane cases.  Now check whether nonexistent headers
3280   # can be detected and how.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <ac_nonexistent.h>
3288 _ACEOF
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null; then
3302   if test -s conftest.err; then
3303     ac_cpp_err=$ac_c_preproc_warn_flag
3304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305   else
3306     ac_cpp_err=
3307   fi
3308 else
3309   ac_cpp_err=yes
3310 fi
3311 if test -z "$ac_cpp_err"; then
3312   # Broken: success on invalid input.
3313 continue
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318   # Passes both tests.
3319 ac_preproc_ok=:
3320 break
3321 fi
3322
3323 rm -f conftest.err conftest.$ac_ext
3324
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3329   break
3330 fi
3331
3332     done
3333     ac_cv_prog_CPP=$CPP
3334
3335 fi
3336   CPP=$ac_cv_prog_CPP
3337 else
3338   ac_cv_prog_CPP=$CPP
3339 fi
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3342 ac_preproc_ok=false
3343 for ac_c_preproc_warn_flag in '' yes
3344 do
3345   # Use a header file that comes with gcc, so configuring glibc
3346   # with a fresh cross-compiler works.
3347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348   # <limits.h> exists even on freestanding compilers.
3349   # On the NeXT, cc -E runs the code through the compiler's parser,
3350   # not just through cpp. "Syntax error" is here to catch this case.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 #ifdef __STDC__
3358 # include <limits.h>
3359 #else
3360 # include <assert.h>
3361 #endif
3362                      Syntax error
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } >/dev/null; then
3377   if test -s conftest.err; then
3378     ac_cpp_err=$ac_c_preproc_warn_flag
3379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   :
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392   # Broken: fails on valid input.
3393 continue
3394 fi
3395
3396 rm -f conftest.err conftest.$ac_ext
3397
3398   # OK, works on sane cases.  Now check whether nonexistent headers
3399   # can be detected and how.
3400   cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 #include <ac_nonexistent.h>
3407 _ACEOF
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } >/dev/null; then
3421   if test -s conftest.err; then
3422     ac_cpp_err=$ac_c_preproc_warn_flag
3423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424   else
3425     ac_cpp_err=
3426   fi
3427 else
3428   ac_cpp_err=yes
3429 fi
3430 if test -z "$ac_cpp_err"; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465
3466 if test -d ${srcdir}/projects/llvm-gcc ; then
3467   subdirs="$subdirs projects/llvm-gcc"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/test-suite ; then
3472   subdirs="$subdirs projects/test-suite"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/llvm-test ; then
3477   subdirs="$subdirs projects/llvm-test"
3478
3479 fi
3480
3481 if test -d ${srcdir}/projects/poolalloc ; then
3482   subdirs="$subdirs projects/poolalloc"
3483
3484 fi
3485
3486 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3487   subdirs="$subdirs projects/llvm-poolalloc"
3488
3489 fi
3490
3491 for i in `ls ${srcdir}/projects`
3492 do
3493   if test -d ${srcdir}/projects/${i} ; then
3494     case ${i} in
3495       sample)       subdirs="$subdirs projects/sample"
3496     ;;
3497       privbracket)  subdirs="$subdirs projects/privbracket"
3498  ;;
3499       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3500  ;;
3501       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3502 ;;
3503       llvm-java)    subdirs="$subdirs projects/llvm-java"
3504  ;;
3505       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3506    ;;
3507       safecode)     subdirs="$subdirs projects/safecode"
3508  ;;
3509       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3510  ;;
3511       compiler-rt)       ;;
3512       llvm-gcc)       ;;
3513       test-suite)     ;;
3514       llvm-test)      ;;
3515       poolalloc)      ;;
3516       llvm-poolalloc) ;;
3517       *)
3518         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3519 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3520         ;;
3521     esac
3522   fi
3523 done
3524
3525 # Check whether --enable-polly was given.
3526 if test "${enable_polly+set}" = set; then
3527   enableval=$enable_polly;
3528 else
3529   enableval=default
3530 fi
3531
3532 case "$enableval" in
3533   yes) ENABLE_POLLY=1
3534  ;;
3535   no)  ENABLE_POLLY=0
3536  ;;
3537   default) ENABLE_POLLY=1
3538  ;;
3539   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3540 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3541    { (exit 1); exit 1; }; } ;;
3542 esac
3543
3544
3545 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3546   LLVM_HAS_POLLY=1
3547
3548   subdirs="$subdirs tools/polly"
3549
3550 fi
3551
3552
3553 # Make sure we can run config.sub.
3554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3556 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3557    { (exit 1); exit 1; }; }
3558
3559 { echo "$as_me:$LINENO: checking build system type" >&5
3560 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3561 if test "${ac_cv_build+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   ac_build_alias=$build_alias
3565 test "x$ac_build_alias" = x &&
3566   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567 test "x$ac_build_alias" = x &&
3568   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3570    { (exit 1); exit 1; }; }
3571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3572   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3573 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3574    { (exit 1); exit 1; }; }
3575
3576 fi
3577 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3578 echo "${ECHO_T}$ac_cv_build" >&6; }
3579 case $ac_cv_build in
3580 *-*-*) ;;
3581 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3582 echo "$as_me: error: invalid value of canonical build" >&2;}
3583    { (exit 1); exit 1; }; };;
3584 esac
3585 build=$ac_cv_build
3586 ac_save_IFS=$IFS; IFS='-'
3587 set x $ac_cv_build
3588 shift
3589 build_cpu=$1
3590 build_vendor=$2
3591 shift; shift
3592 # Remember, the first character of IFS is used to create $*,
3593 # except with old shells:
3594 build_os=$*
3595 IFS=$ac_save_IFS
3596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3597
3598
3599 { echo "$as_me:$LINENO: checking host system type" >&5
3600 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3601 if test "${ac_cv_host+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   if test "x$host_alias" = x; then
3605   ac_cv_host=$ac_cv_build
3606 else
3607   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3608     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3609 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612
3613 fi
3614 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3615 echo "${ECHO_T}$ac_cv_host" >&6; }
3616 case $ac_cv_host in
3617 *-*-*) ;;
3618 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3619 echo "$as_me: error: invalid value of canonical host" >&2;}
3620    { (exit 1); exit 1; }; };;
3621 esac
3622 host=$ac_cv_host
3623 ac_save_IFS=$IFS; IFS='-'
3624 set x $ac_cv_host
3625 shift
3626 host_cpu=$1
3627 host_vendor=$2
3628 shift; shift
3629 # Remember, the first character of IFS is used to create $*,
3630 # except with old shells:
3631 host_os=$*
3632 IFS=$ac_save_IFS
3633 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634
3635
3636 { echo "$as_me:$LINENO: checking target system type" >&5
3637 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3638 if test "${ac_cv_target+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test "x$target_alias" = x; then
3642   ac_cv_target=$ac_cv_host
3643 else
3644   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3645     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3646 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3647    { (exit 1); exit 1; }; }
3648 fi
3649
3650 fi
3651 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3652 echo "${ECHO_T}$ac_cv_target" >&6; }
3653 case $ac_cv_target in
3654 *-*-*) ;;
3655 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3656 echo "$as_me: error: invalid value of canonical target" >&2;}
3657    { (exit 1); exit 1; }; };;
3658 esac
3659 target=$ac_cv_target
3660 ac_save_IFS=$IFS; IFS='-'
3661 set x $ac_cv_target
3662 shift
3663 target_cpu=$1
3664 target_vendor=$2
3665 shift; shift
3666 # Remember, the first character of IFS is used to create $*,
3667 # except with old shells:
3668 target_os=$*
3669 IFS=$ac_save_IFS
3670 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3671
3672
3673 # The aliases save the names the user supplied, while $host etc.
3674 # will get canonicalized.
3675 test -n "$target_alias" &&
3676   test "$program_prefix$program_suffix$program_transform_name" = \
3677     NONENONEs,x,x, &&
3678   program_prefix=${target_alias}-
3679
3680 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3681 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3682 if test "${llvm_cv_os_type+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   case $host in
3686   *-*-aix*)
3687     llvm_cv_link_all_option="-Wl,--whole-archive"
3688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689     llvm_cv_os_type="AIX"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-irix*)
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="IRIX"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-cygwin*)
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="Cygwin"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-darwin*)
3702     llvm_cv_link_all_option="-Wl,-all_load"
3703     llvm_cv_no_link_all_option="-Wl,-noall_load"
3704     llvm_cv_os_type="Darwin"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-minix*)
3707     llvm_cv_link_all_option="-Wl,-all_load"
3708     llvm_cv_no_link_all_option="-Wl,-noall_load"
3709     llvm_cv_os_type="Minix"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-freebsd* | *-*-kfreebsd-gnu)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="FreeBSD"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-openbsd*)
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="OpenBSD"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-netbsd*)
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="NetBSD"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-dragonfly*)
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="DragonFly"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-hpux*)
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="HP-UX"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-interix*)
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="Interix"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-linux*)
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="Linux"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-gnu*)
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="GNU"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-*-solaris*)
3752     llvm_cv_link_all_option="-Wl,-z,allextract"
3753     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3754     llvm_cv_os_type="SunOS"
3755     llvm_cv_platform_type="Unix" ;;
3756   *-*-auroraux*)
3757     llvm_cv_link_all_option="-Wl,-z,allextract"
3758     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3759     llvm_cv_os_type="AuroraUX"
3760     llvm_cv_platform_type="Unix" ;;
3761   *-*-win32*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="Win32"
3765     llvm_cv_platform_type="Win32" ;;
3766   *-*-mingw*)
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="MingW"
3770     llvm_cv_platform_type="Win32" ;;
3771   *-*-haiku*)
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="Haiku"
3775     llvm_cv_platform_type="Unix" ;;
3776   *-unknown-eabi*)
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="Freestanding"
3780     llvm_cv_platform_type="Unix" ;;
3781   *-unknown-elf*)
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   *)
3787     llvm_cv_link_all_option=""
3788     llvm_cv_no_link_all_option=""
3789     llvm_cv_os_type="Unknown"
3790     llvm_cv_platform_type="Unknown" ;;
3791 esac
3792 fi
3793 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3794 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3795
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3797 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3798 if test "${llvm_cv_target_os_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   case $target in
3802   *-*-aix*)
3803     llvm_cv_target_os_type="AIX" ;;
3804   *-*-irix*)
3805     llvm_cv_target_os_type="IRIX" ;;
3806   *-*-cygwin*)
3807     llvm_cv_target_os_type="Cygwin" ;;
3808   *-*-darwin*)
3809     llvm_cv_target_os_type="Darwin" ;;
3810   *-*-minix*)
3811     llvm_cv_target_os_type="Minix" ;;
3812   *-*-freebsd* | *-*-kfreebsd-gnu)
3813     llvm_cv_target_os_type="FreeBSD" ;;
3814   *-*-openbsd*)
3815     llvm_cv_target_os_type="OpenBSD" ;;
3816   *-*-netbsd*)
3817     llvm_cv_target_os_type="NetBSD" ;;
3818   *-*-dragonfly*)
3819     llvm_cv_target_os_type="DragonFly" ;;
3820   *-*-hpux*)
3821     llvm_cv_target_os_type="HP-UX" ;;
3822   *-*-interix*)
3823     llvm_cv_target_os_type="Interix" ;;
3824   *-*-linux*)
3825     llvm_cv_target_os_type="Linux" ;;
3826   *-*-gnu*)
3827     llvm_cv_target_os_type="GNU" ;;
3828   *-*-solaris*)
3829     llvm_cv_target_os_type="SunOS" ;;
3830   *-*-auroraux*)
3831     llvm_cv_target_os_type="AuroraUX" ;;
3832   *-*-win32*)
3833     llvm_cv_target_os_type="Win32" ;;
3834   *-*-mingw*)
3835     llvm_cv_target_os_type="MingW" ;;
3836   *-*-haiku*)
3837     llvm_cv_target_os_type="Haiku" ;;
3838   *-*-rtems*)
3839     llvm_cv_target_os_type="RTEMS" ;;
3840   *-*-nacl*)
3841     llvm_cv_target_os_type="NativeClient" ;;
3842   *-unknown-eabi*)
3843     llvm_cv_target_os_type="Freestanding" ;;
3844   *)
3845     llvm_cv_target_os_type="Unknown" ;;
3846 esac
3847 fi
3848 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3849 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3850
3851 if test "$llvm_cv_os_type" = "Unknown" ; then
3852   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3853 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3854    { (exit 1); exit 1; }; }
3855 fi
3856
3857 OS=$llvm_cv_os_type
3858
3859 HOST_OS=$llvm_cv_os_type
3860
3861 TARGET_OS=$llvm_cv_target_os_type
3862
3863
3864 LINKALL=$llvm_cv_link_all_option
3865
3866 NOLINKALL=$llvm_cv_no_link_all_option
3867
3868
3869 case $llvm_cv_platform_type in
3870   Unix)
3871
3872 cat >>confdefs.h <<\_ACEOF
3873 #define LLVM_ON_UNIX 1
3874 _ACEOF
3875
3876     LLVM_ON_UNIX=1
3877
3878     LLVM_ON_WIN32=0
3879
3880     ;;
3881   Win32)
3882
3883 cat >>confdefs.h <<\_ACEOF
3884 #define LLVM_ON_WIN32 1
3885 _ACEOF
3886
3887     LLVM_ON_UNIX=0
3888
3889     LLVM_ON_WIN32=1
3890
3891     ;;
3892 esac
3893
3894 { echo "$as_me:$LINENO: checking target architecture" >&5
3895 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3896 if test "${llvm_cv_target_arch+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   case $target in
3900   i?86-*)                 llvm_cv_target_arch="x86" ;;
3901   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3902   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3903   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3904   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3905   mips-*)                 llvm_cv_target_arch="Mips" ;;
3906   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3907   xcore-*)                llvm_cv_target_arch="XCore" ;;
3908   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3909   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3910   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3911   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3912   *)                      llvm_cv_target_arch="Unknown" ;;
3913 esac
3914 fi
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921 fi
3922
3923 case "$llvm_cv_target_arch" in
3924     x86)     LLVM_NATIVE_ARCH="X86" ;;
3925     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3926     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3927 esac
3928
3929 ARCH=$llvm_cv_target_arch
3930
3931
3932 case $host in
3933   i?86-*)                 host_arch="x86" ;;
3934   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3935   sparc*-*)               host_arch="Sparc" ;;
3936   powerpc*-*)             host_arch="PowerPC" ;;
3937   arm*-*)                 host_arch="ARM" ;;
3938   mips-*)                 host_arch="Mips" ;;
3939   mipsel-*)               host_arch="Mips" ;;
3940   xcore-*)                host_arch="XCore" ;;
3941   msp430-*)               host_arch="MSP430" ;;
3942   hexagon-*)              host_arch="Hexagon" ;;
3943   mblaze-*)               host_arch="MBlaze" ;;
3944   *)                      host_arch="Unknown" ;;
3945 esac
3946
3947 if test "$host_arch" = "Unknown" ; then
3948   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3949 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3950 fi
3951
3952 HOST_ARCH=$host_arch
3953
3954
3955
3956
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_prog in grep ggrep; do
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3979     # Check for GNU ac_path_GREP and select it if it is found.
3980   # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3982 *GNU*)
3983   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984 *)
3985   ac_count=0
3986   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987   while :
3988   do
3989     cat "conftest.in" "conftest.in" >"conftest.tmp"
3990     mv "conftest.tmp" "conftest.in"
3991     cp "conftest.in" "conftest.nl"
3992     echo 'GREP' >> "conftest.nl"
3993     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995     ac_count=`expr $ac_count + 1`
3996     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997       # Best one so far, save it but keep looking for a better one
3998       ac_cv_path_GREP="$ac_path_GREP"
3999       ac_path_GREP_max=$ac_count
4000     fi
4001     # 10*(2^10) chars as input seems more than enough
4002     test $ac_count -gt 10 && break
4003   done
4004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 esac
4006
4007
4008     $ac_path_GREP_found && break 3
4009   done
4010 done
4011
4012 done
4013 IFS=$as_save_IFS
4014
4015
4016 fi
4017
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024
4025 else
4026   ac_cv_path_GREP=$GREP
4027 fi
4028
4029
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033  GREP="$ac_cv_path_GREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042    then ac_cv_path_EGREP="$GREP -E"
4043    else
4044      # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_prog in egrep; do
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4061     # Check for GNU ac_path_EGREP and select it if it is found.
4062   # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4064 *GNU*)
4065   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066 *)
4067   ac_count=0
4068   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4069   while :
4070   do
4071     cat "conftest.in" "conftest.in" >"conftest.tmp"
4072     mv "conftest.tmp" "conftest.in"
4073     cp "conftest.in" "conftest.nl"
4074     echo 'EGREP' >> "conftest.nl"
4075     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077     ac_count=`expr $ac_count + 1`
4078     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079       # Best one so far, save it but keep looking for a better one
4080       ac_cv_path_EGREP="$ac_path_EGREP"
4081       ac_path_EGREP_max=$ac_count
4082     fi
4083     # 10*(2^10) chars as input seems more than enough
4084     test $ac_count -gt 10 && break
4085   done
4086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4088
4089
4090     $ac_path_EGREP_found && break 3
4091   done
4092 done
4093
4094 done
4095 IFS=$as_save_IFS
4096
4097
4098 fi
4099
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 else
4108   ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111
4112    fi
4113 fi
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116  EGREP="$ac_cv_path_EGREP"
4117
4118
4119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4121 if test "${ac_cv_header_stdc+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130 #include <stdlib.h>
4131 #include <stdarg.h>
4132 #include <string.h>
4133 #include <float.h>
4134
4135 int
4136 main ()
4137 {
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_compile") 2>conftest.er1
4151   ac_status=$?
4152   grep -v '^ *+' conftest.er1 >conftest.err
4153   rm -f conftest.er1
4154   cat conftest.err >&5
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } &&
4157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158   { (case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163   (eval "$ac_try") 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; } &&
4167          { ac_try='test -s conftest.$ac_objext'
4168   { (case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_try") 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   ac_cv_header_stdc=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182         ac_cv_header_stdc=no
4183 fi
4184
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
4187 if test $ac_cv_header_stdc = yes; then
4188   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4189   cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 #include <string.h>
4196
4197 _ACEOF
4198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199   $EGREP "memchr" >/dev/null 2>&1; then
4200   :
4201 else
4202   ac_cv_header_stdc=no
4203 fi
4204 rm -f conftest*
4205
4206 fi
4207
4208 if test $ac_cv_header_stdc = yes; then
4209   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4210   cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 #include <stdlib.h>
4217
4218 _ACEOF
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220   $EGREP "free" >/dev/null 2>&1; then
4221   :
4222 else
4223   ac_cv_header_stdc=no
4224 fi
4225 rm -f conftest*
4226
4227 fi
4228
4229 if test $ac_cv_header_stdc = yes; then
4230   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4231   if test "$cross_compiling" = yes; then
4232   :
4233 else
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 #include <ctype.h>
4241 #include <stdlib.h>
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245 #else
4246 # define ISLOWER(c) \
4247                    (('a' <= (c) && (c) <= 'i') \
4248                      || ('j' <= (c) && (c) <= 'r') \
4249                      || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #endif
4252
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4254 int
4255 main ()
4256 {
4257   int i;
4258   for (i = 0; i < 256; i++)
4259     if (XOR (islower (i), ISLOWER (i))
4260         || toupper (i) != TOUPPER (i))
4261       return 2;
4262   return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest$ac_exeext
4266 if { (ac_try="$ac_link"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_link") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   :
4286 else
4287   echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ( exit $ac_status )
4292 ac_cv_header_stdc=no
4293 fi
4294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 fi
4296
4297
4298 fi
4299 fi
4300 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4302 if test $ac_cv_header_stdc = yes; then
4303
4304 cat >>confdefs.h <<\_ACEOF
4305 #define STDC_HEADERS 1
4306 _ACEOF
4307
4308 fi
4309
4310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321                   inttypes.h stdint.h unistd.h
4322 do
4323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 $ac_includes_default
4336
4337 #include <$ac_header>
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_compile") 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; } &&
4363          { ac_try='test -s conftest.$ac_objext'
4364   { (case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   eval "$as_ac_Header=yes"
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378         eval "$as_ac_Header=no"
4379 fi
4380
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 ac_res=`eval echo '${'$as_ac_Header'}'`
4384                { echo "$as_me:$LINENO: result: $ac_res" >&5
4385 echo "${ECHO_T}$ac_res" >&6; }
4386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387   cat >>confdefs.h <<_ACEOF
4388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 _ACEOF
4390
4391 fi
4392
4393 done
4394
4395
4396 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4398 if test "${ac_cv_c_bigendian+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   # See if sys/param.h defines the BYTE_ORDER macro.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408 #include <sys/types.h>
4409 #include <sys/param.h>
4410
4411 int
4412 main ()
4413 {
4414 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4415  bogus endian macros
4416 #endif
4417
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4424 case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_compile") 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437   { (case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442   (eval "$ac_try") 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; } &&
4446          { ac_try='test -s conftest.$ac_objext'
4447   { (case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452   (eval "$ac_try") 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   # It does; now see whether it defined to BIG_ENDIAN or not.
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 #include <sys/types.h>
4464 #include <sys/param.h>
4465
4466 int
4467 main ()
4468 {
4469 #if BYTE_ORDER != BIG_ENDIAN
4470  not big endian
4471 #endif
4472
4473   ;
4474   return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (ac_try="$ac_compile"
4479 case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484   (eval "$ac_compile") 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492   { (case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_try") 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; } &&
4501          { ac_try='test -s conftest.$ac_objext'
4502   { (case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507   (eval "$ac_try") 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_cv_c_bigendian=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516         ac_cv_c_bigendian=no
4517 fi
4518
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 else
4521   echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524         # It does not; compile a test program.
4525 if test "$cross_compiling" = yes; then
4526   # try to guess the endianness by grepping values into an object file
4527   ac_cv_c_bigendian=unknown
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4535 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4536 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4537 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4538 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4539 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4540 int
4541 main ()
4542 {
4543  _ascii (); _ebcdic ();
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (ac_try="$ac_compile"
4550 case "(($ac_try" in
4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552   *) ac_try_echo=$ac_try;;
4553 esac
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555   (eval "$ac_compile") 2>conftest.er1
4556   ac_status=$?
4557   grep -v '^ *+' conftest.er1 >conftest.err
4558   rm -f conftest.er1
4559   cat conftest.err >&5
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } &&
4562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4563   { (case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568   (eval "$ac_try") 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (case "(($ac_try" in
4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575   *) ac_try_echo=$ac_try;;
4576 esac
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578   (eval "$ac_try") 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; }; then
4582   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4583   ac_cv_c_bigendian=yes
4584 fi
4585 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4586   if test "$ac_cv_c_bigendian" = unknown; then
4587     ac_cv_c_bigendian=no
4588   else
4589     # finding both strings is unlikely to happen, but who knows?
4590     ac_cv_c_bigendian=unknown
4591   fi
4592 fi
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597
4598 fi
4599
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 else
4602   cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h.  */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h.  */
4608 $ac_includes_default
4609 int
4610 main ()
4611 {
4612
4613   /* Are we little or big endian?  From Harbison&Steele.  */
4614   union
4615   {
4616     long int l;
4617     char c[sizeof (long int)];
4618   } u;
4619   u.l = 1;
4620   return u.c[sizeof (long int) - 1] == 1;
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest$ac_exeext
4627 if { (ac_try="$ac_link"
4628 case "(($ac_try" in
4629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630   *) ac_try_echo=$ac_try;;
4631 esac
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633   (eval "$ac_link") 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4637   { (case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_try") 2>&5
4643   ac_status=$?
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }; }; then
4646   ac_cv_c_bigendian=no
4647 else
4648   echo "$as_me: program exited with status $ac_status" >&5
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 ( exit $ac_status )
4653 ac_cv_c_bigendian=yes
4654 fi
4655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4656 fi
4657
4658
4659 fi
4660
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 fi
4663 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4665 case $ac_cv_c_bigendian in
4666   yes)
4667     ENDIAN=big
4668  ;;
4669   no)
4670     ENDIAN=little
4671  ;;
4672   *)
4673     { { echo "$as_me:$LINENO: error: unknown endianness
4674 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4675 echo "$as_me: error: unknown endianness
4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4677    { (exit 1); exit 1; }; } ;;
4678 esac
4679
4680
4681 if test "$cross_compiling" = yes; then
4682   LLVM_CROSS_COMPILING=1
4683
4684
4685 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4686 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4687 if test "${ac_cv_build_exeext+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4691   ac_cv_build_exeext=.exe
4692 else
4693   ac_build_prefix=${build_alias}-
4694
4695   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4696 set dummy ${ac_build_prefix}gcc; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   if test -n "$BUILD_CC"; then
4703   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 BUILD_CC=$ac_cv_prog_BUILD_CC
4723 if test -n "$BUILD_CC"; then
4724   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4725 echo "${ECHO_T}$BUILD_CC" >&6; }
4726 else
4727   { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 fi
4730
4731
4732   if test -z "$BUILD_CC"; then
4733      # Extract the first word of "gcc", so it can be a program name with args.
4734 set dummy gcc; ac_word=$2
4735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740   if test -n "$BUILD_CC"; then
4741   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     ac_cv_prog_BUILD_CC="gcc"
4751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 BUILD_CC=$ac_cv_prog_BUILD_CC
4761 if test -n "$BUILD_CC"; then
4762   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4763 echo "${ECHO_T}$BUILD_CC" >&6; }
4764 else
4765   { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4767 fi
4768
4769
4770      if test -z "$BUILD_CC"; then
4771        # Extract the first word of "cc", so it can be a program name with args.
4772 set dummy cc; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   if test -n "$BUILD_CC"; then
4779   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4780 else
4781   ac_prog_rejected=no
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787   for ac_exec_ext in '' $ac_executable_extensions; do
4788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4789     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790        ac_prog_rejected=yes
4791        continue
4792      fi
4793     ac_cv_prog_BUILD_CC="cc"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 if test $ac_prog_rejected = yes; then
4802   # We found a bogon in the path, so make sure we never use it.
4803   set dummy $ac_cv_prog_BUILD_CC
4804   shift
4805   if test $# != 0; then
4806     # We chose a different compiler from the bogus one.
4807     # However, it has the same basename, so the bogon will be chosen
4808     # first if we set BUILD_CC to just the basename; use the full file name.
4809     shift
4810     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4811   fi
4812 fi
4813 fi
4814 fi
4815 BUILD_CC=$ac_cv_prog_BUILD_CC
4816 if test -n "$BUILD_CC"; then
4817   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4818 echo "${ECHO_T}$BUILD_CC" >&6; }
4819 else
4820   { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 fi
4823
4824
4825      fi
4826   fi
4827   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4828 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4829    { (exit 1); exit 1; }; }
4830   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4831   rm -f conftest*
4832   echo 'int main () { return 0; }' > conftest.$ac_ext
4833   ac_cv_build_exeext=
4834   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4835   (eval $ac_build_link) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; then
4839     for file in conftest.*; do
4840       case $file in
4841       *.c | *.o | *.obj | *.dSYM) ;;
4842       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4843       esac
4844     done
4845   else
4846     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4847 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4848    { (exit 1); exit 1; }; }
4849   fi
4850   rm -f conftest*
4851   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4852 fi
4853 fi
4854
4855 BUILD_EXEEXT=""
4856 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4857 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4858 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4859 ac_build_exeext=$BUILD_EXEEXT
4860
4861   ac_build_prefix=${build_alias}-
4862   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4863 set dummy ${ac_build_prefix}g++; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   if test -n "$BUILD_CXX"; then
4870   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4890 if test -n "$BUILD_CXX"; then
4891   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4892 echo "${ECHO_T}$BUILD_CXX" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899   if test -z "$BUILD_CXX"; then
4900      # Extract the first word of "g++", so it can be a program name with args.
4901 set dummy g++; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   if test -n "$BUILD_CXX"; then
4908   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_prog_BUILD_CXX="g++"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4928 if test -n "$BUILD_CXX"; then
4929   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4930 echo "${ECHO_T}$BUILD_CXX" >&6; }
4931 else
4932   { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4934 fi
4935
4936
4937      if test -z "$BUILD_CXX"; then
4938        # Extract the first word of "c++", so it can be a program name with args.
4939 set dummy c++; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   if test -n "$BUILD_CXX"; then
4946   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4947 else
4948   ac_prog_rejected=no
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4957        ac_prog_rejected=yes
4958        continue
4959      fi
4960     ac_cv_prog_BUILD_CXX="c++"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968 if test $ac_prog_rejected = yes; then
4969   # We found a bogon in the path, so make sure we never use it.
4970   set dummy $ac_cv_prog_BUILD_CXX
4971   shift
4972   if test $# != 0; then
4973     # We chose a different compiler from the bogus one.
4974     # However, it has the same basename, so the bogon will be chosen
4975     # first if we set BUILD_CXX to just the basename; use the full file name.
4976     shift
4977     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4978   fi
4979 fi
4980 fi
4981 fi
4982 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4983 if test -n "$BUILD_CXX"; then
4984   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4985 echo "${ECHO_T}$BUILD_CXX" >&6; }
4986 else
4987   { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4989 fi
4990
4991
4992      fi
4993   fi
4994 else
4995   LLVM_CROSS_COMPILING=0
4996
4997 fi
4998
4999 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5000   cvsbuild="yes"
5001   optimize="no"
5002   CVSBUILD=CVSBUILD=1
5003
5004 else
5005   cvsbuild="no"
5006   optimize="yes"
5007 fi
5008
5009
5010 # Check whether --enable-libcpp was given.
5011 if test "${enable_libcpp+set}" = set; then
5012   enableval=$enable_libcpp;
5013 else
5014   enableval=default
5015 fi
5016
5017 case "$enableval" in
5018   yes) ENABLE_LIBCPP=1
5019  ;;
5020   no)  ENABLE_LIBCPP=0
5021  ;;
5022   default) ENABLE_LIBCPP=0
5023 ;;
5024   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5025 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5026    { (exit 1); exit 1; }; } ;;
5027 esac
5028
5029 # Check whether --enable-cxx11 was given.
5030 if test "${enable_cxx11+set}" = set; then
5031   enableval=$enable_cxx11;
5032 else
5033   enableval=default
5034 fi
5035
5036 case "$enableval" in
5037   yes) ENABLE_CXX11=1
5038  ;;
5039   no)  ENABLE_CXX11=0
5040  ;;
5041   default) ENABLE_CXX11=0
5042 ;;
5043   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5044 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5045    { (exit 1); exit 1; }; } ;;
5046 esac
5047
5048 # Check whether --enable-optimized was given.
5049 if test "${enable_optimized+set}" = set; then
5050   enableval=$enable_optimized;
5051 else
5052   enableval=$optimize
5053 fi
5054
5055 if test ${enableval} = "no" ; then
5056   ENABLE_OPTIMIZED=
5057
5058 else
5059   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5060
5061 fi
5062
5063 # Check whether --enable-profiling was given.
5064 if test "${enable_profiling+set}" = set; then
5065   enableval=$enable_profiling;
5066 else
5067   enableval="no"
5068 fi
5069
5070 if test ${enableval} = "no" ; then
5071   ENABLE_PROFILING=
5072
5073 else
5074   ENABLE_PROFILING=ENABLE_PROFILING=1
5075
5076 fi
5077
5078 # Check whether --enable-assertions was given.
5079 if test "${enable_assertions+set}" = set; then
5080   enableval=$enable_assertions;
5081 else
5082   enableval="yes"
5083 fi
5084
5085 if test ${enableval} = "yes" ; then
5086   DISABLE_ASSERTIONS=
5087
5088 else
5089   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5090
5091 fi
5092
5093 # Check whether --enable-werror was given.
5094 if test "${enable_werror+set}" = set; then
5095   enableval=$enable_werror;
5096 else
5097   enableval="no"
5098 fi
5099
5100 case "$enableval" in
5101   yes) ENABLE_WERROR=1
5102  ;;
5103   no)  ENABLE_WERROR=0
5104  ;;
5105   default) ENABLE_WERROR=0
5106 ;;
5107   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5109    { (exit 1); exit 1; }; } ;;
5110 esac
5111
5112 # Check whether --enable-expensive-checks was given.
5113 if test "${enable_expensive_checks+set}" = set; then
5114   enableval=$enable_expensive_checks;
5115 else
5116   enableval="no"
5117 fi
5118
5119 if test ${enableval} = "yes" ; then
5120   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5121
5122   EXPENSIVE_CHECKS=yes
5123
5124 else
5125   ENABLE_EXPENSIVE_CHECKS=
5126
5127   EXPENSIVE_CHECKS=no
5128
5129 fi
5130
5131 # Check whether --enable-debug-runtime was given.
5132 if test "${enable_debug_runtime+set}" = set; then
5133   enableval=$enable_debug_runtime;
5134 else
5135   enableval=no
5136 fi
5137
5138 if test ${enableval} = "no" ; then
5139   DEBUG_RUNTIME=
5140
5141 else
5142   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5143
5144 fi
5145
5146 # Check whether --enable-debug-symbols was given.
5147 if test "${enable_debug_symbols+set}" = set; then
5148   enableval=$enable_debug_symbols;
5149 else
5150   enableval=no
5151 fi
5152
5153 if test ${enableval} = "no" ; then
5154   DEBUG_SYMBOLS=
5155
5156 else
5157   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5158
5159 fi
5160
5161 # Check whether --enable-keep-symbols was given.
5162 if test "${enable_keep_symbols+set}" = set; then
5163   enableval=$enable_keep_symbols;
5164 else
5165   enableval=no
5166 fi
5167
5168 if test ${enableval} = "no" ; then
5169   KEEP_SYMBOLS=
5170
5171 else
5172   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5173
5174 fi
5175
5176 # Check whether --enable-jit was given.
5177 if test "${enable_jit+set}" = set; then
5178   enableval=$enable_jit;
5179 else
5180   enableval=default
5181 fi
5182
5183 if test ${enableval} = "no"
5184 then
5185   JIT=
5186
5187 else
5188   case "$llvm_cv_target_arch" in
5189     x86)         TARGET_HAS_JIT=1
5190  ;;
5191     Sparc)       TARGET_HAS_JIT=0
5192  ;;
5193     PowerPC)     TARGET_HAS_JIT=1
5194  ;;
5195     x86_64)      TARGET_HAS_JIT=1
5196  ;;
5197     ARM)         TARGET_HAS_JIT=1
5198  ;;
5199     Mips)        TARGET_HAS_JIT=1
5200  ;;
5201     XCore)       TARGET_HAS_JIT=0
5202  ;;
5203     MSP430)      TARGET_HAS_JIT=0
5204  ;;
5205     Hexagon)     TARGET_HAS_JIT=0
5206  ;;
5207     MBlaze)      TARGET_HAS_JIT=0
5208  ;;
5209     NVPTX)       TARGET_HAS_JIT=0
5210  ;;
5211     *)           TARGET_HAS_JIT=0
5212  ;;
5213   esac
5214 fi
5215
5216 # Check whether --enable-docs was given.
5217 if test "${enable_docs+set}" = set; then
5218   enableval=$enable_docs;
5219 else
5220   enableval=default
5221 fi
5222
5223 case "$enableval" in
5224   yes) ENABLE_DOCS=1
5225  ;;
5226   no)  ENABLE_DOCS=0
5227  ;;
5228   default) ENABLE_DOCS=1
5229  ;;
5230   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5231 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5232    { (exit 1); exit 1; }; } ;;
5233 esac
5234
5235 # Check whether --enable-doxygen was given.
5236 if test "${enable_doxygen+set}" = set; then
5237   enableval=$enable_doxygen;
5238 else
5239   enableval=default
5240 fi
5241
5242 case "$enableval" in
5243   yes) ENABLE_DOXYGEN=1
5244  ;;
5245   no)  ENABLE_DOXYGEN=0
5246  ;;
5247   default) ENABLE_DOXYGEN=0
5248  ;;
5249   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5251    { (exit 1); exit 1; }; } ;;
5252 esac
5253
5254 # Check whether --enable-threads was given.
5255 if test "${enable_threads+set}" = set; then
5256   enableval=$enable_threads;
5257 else
5258   enableval=default
5259 fi
5260
5261 case "$enableval" in
5262   yes) LLVM_ENABLE_THREADS=1
5263  ;;
5264   no)  LLVM_ENABLE_THREADS=0
5265  ;;
5266   default) LLVM_ENABLE_THREADS=1
5267  ;;
5268   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5269 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5270    { (exit 1); exit 1; }; } ;;
5271 esac
5272
5273 cat >>confdefs.h <<_ACEOF
5274 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5275 _ACEOF
5276
5277
5278 # Check whether --enable-pthreads was given.
5279 if test "${enable_pthreads+set}" = set; then
5280   enableval=$enable_pthreads;
5281 else
5282   enableval=default
5283 fi
5284
5285 case "$enableval" in
5286   yes) ENABLE_PTHREADS=1
5287  ;;
5288   no)  ENABLE_PTHREADS=0
5289  ;;
5290   default) ENABLE_PTHREADS=1
5291  ;;
5292   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5294    { (exit 1); exit 1; }; } ;;
5295 esac
5296
5297 # Check whether --enable-pic was given.
5298 if test "${enable_pic+set}" = set; then
5299   enableval=$enable_pic;
5300 else
5301   enableval=default
5302 fi
5303
5304 case "$enableval" in
5305   yes) ENABLE_PIC=1
5306  ;;
5307   no)  ENABLE_PIC=0
5308  ;;
5309   default) ENABLE_PIC=1
5310  ;;
5311   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5313    { (exit 1); exit 1; }; } ;;
5314 esac
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define ENABLE_PIC $ENABLE_PIC
5318 _ACEOF
5319
5320
5321 # Check whether --enable-shared was given.
5322 if test "${enable_shared+set}" = set; then
5323   enableval=$enable_shared;
5324 else
5325   enableval=default
5326 fi
5327
5328 case "$enableval" in
5329   yes) ENABLE_SHARED=1
5330  ;;
5331   no)  ENABLE_SHARED=0
5332  ;;
5333   default) ENABLE_SHARED=0
5334  ;;
5335   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5336 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5337    { (exit 1); exit 1; }; } ;;
5338 esac
5339
5340 # Check whether --enable-embed-stdcxx was given.
5341 if test "${enable_embed_stdcxx+set}" = set; then
5342   enableval=$enable_embed_stdcxx;
5343 else
5344   enableval=default
5345 fi
5346
5347 case "$enableval" in
5348   yes) ENABLE_EMBED_STDCXX=1
5349  ;;
5350   no)  ENABLE_EMBED_STDCXX=0
5351  ;;
5352   default) ENABLE_EMBED_STDCXX=0
5353  ;;
5354   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5355 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5356    { (exit 1); exit 1; }; } ;;
5357 esac
5358
5359 # Check whether --enable-timestamps was given.
5360 if test "${enable_timestamps+set}" = set; then
5361   enableval=$enable_timestamps;
5362 else
5363   enableval=default
5364 fi
5365
5366 case "$enableval" in
5367   yes) ENABLE_TIMESTAMPS=1
5368  ;;
5369   no)  ENABLE_TIMESTAMPS=0
5370  ;;
5371   default) ENABLE_TIMESTAMPS=1
5372  ;;
5373   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5374 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5375    { (exit 1); exit 1; }; } ;;
5376 esac
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5380 _ACEOF
5381
5382
5383
5384 # Check whether --enable-backtraces was given.
5385 if test "${enable_backtraces+set}" = set; then
5386   enableval=$enable_backtraces;
5387 else
5388   enableval=default
5389 fi
5390
5391 case "$enableval" in
5392   yes) ENABLE_TIMESTAMPS=1
5393  ;;
5394   no)  ENABLE_TIMESTAMPS=0
5395  ;;
5396   default) ENABLE_TIMESTAMPS=1
5397  ;;
5398   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5399 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5400    { (exit 1); exit 1; }; } ;;
5401 esac
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5405 _ACEOF
5406
5407
5408 TARGETS_TO_BUILD=""
5409 # Check whether --enable-targets was given.
5410 if test "${enable_targets+set}" = set; then
5411   enableval=$enable_targets;
5412 else
5413   enableval=all
5414 fi
5415
5416 if test "$enableval" = host-only ; then
5417   enableval=host
5418 fi
5419 case "$enableval" in
5420   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5421   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5422       case "$a_target" in
5423         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5424         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5426         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5427         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5428         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5429         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5430         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5431         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5432         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5433         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5434         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5435         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5436         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5437         host) case "$llvm_cv_target_arch" in
5438             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5439             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5440             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5441             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5442             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5443             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5444             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5445             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5446             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5447             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5448             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5449             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5450             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5451 echo "$as_me: error: Can not set target to build" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453           esac ;;
5454         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5455 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5456    { (exit 1); exit 1; }; } ;;
5457       esac
5458   done
5459   ;;
5460 esac
5461
5462 # Check whether --enable-experimental-targets was given.
5463 if test "${enable_experimental_targets+set}" = set; then
5464   enableval=$enable_experimental_targets;
5465 else
5466   enableval=disable
5467 fi
5468
5469
5470 if test ${enableval} != "disable"
5471 then
5472   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5473 fi
5474
5475 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5476
5477
5478 for a_target in $TARGETS_TO_BUILD; do
5479   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5480
5481 cat >>confdefs.h <<_ACEOF
5482 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5483 _ACEOF
5484
5485     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5486     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5487     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5488     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5489     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5490       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5491     fi
5492     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5493       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5494     fi
5495
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5498 _ACEOF
5499
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5503 _ACEOF
5504
5505
5506 cat >>confdefs.h <<_ACEOF
5507 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5508 _ACEOF
5509
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5513 _ACEOF
5514
5515     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5516
5517 cat >>confdefs.h <<_ACEOF
5518 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5519 _ACEOF
5520
5521     fi
5522     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5523
5524 cat >>confdefs.h <<_ACEOF
5525 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5526 _ACEOF
5527
5528     fi
5529   fi
5530 done
5531
5532 LLVM_ENUM_TARGETS=""
5533 LLVM_ENUM_ASM_PRINTERS=""
5534 LLVM_ENUM_ASM_PARSERS=""
5535 LLVM_ENUM_DISASSEMBLERS=""
5536 for target_to_build in $TARGETS_TO_BUILD; do
5537   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5538   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5539     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5540   fi
5541   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5542     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5543   fi
5544   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5545     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5546   fi
5547 done
5548
5549
5550
5551
5552
5553
5554 # Check whether --with-optimize-option was given.
5555 if test "${with_optimize_option+set}" = set; then
5556   withval=$with_optimize_option;
5557 else
5558   withval=default
5559 fi
5560
5561 { echo "$as_me:$LINENO: checking optimization flags" >&5
5562 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5563 case "$withval" in
5564   default)
5565     case "$llvm_cv_os_type" in
5566     FreeBSD) optimize_option=-O2 ;;
5567     MingW) optimize_option=-O2 ;;
5568     *)     optimize_option=-O3 ;;
5569     esac ;;
5570   *) optimize_option="$withval" ;;
5571 esac
5572 OPTIMIZE_OPTION=$optimize_option
5573
5574 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5575 echo "${ECHO_T}$optimize_option" >&6; }
5576
5577
5578 # Check whether --with-extra-options was given.
5579 if test "${with_extra_options+set}" = set; then
5580   withval=$with_extra_options;
5581 else
5582   withval=default
5583 fi
5584
5585 case "$withval" in
5586   default) EXTRA_OPTIONS= ;;
5587   *) EXTRA_OPTIONS=$withval ;;
5588 esac
5589 EXTRA_OPTIONS=$EXTRA_OPTIONS
5590
5591
5592
5593 # Check whether --with-extra-ld-options was given.
5594 if test "${with_extra_ld_options+set}" = set; then
5595   withval=$with_extra_ld_options;
5596 else
5597   withval=default
5598 fi
5599
5600 case "$withval" in
5601   default) EXTRA_LD_OPTIONS= ;;
5602   *) EXTRA_LD_OPTIONS=$withval ;;
5603 esac
5604 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5605
5606
5607 # Check whether --enable-bindings was given.
5608 if test "${enable_bindings+set}" = set; then
5609   enableval=$enable_bindings;
5610 else
5611   enableval=default
5612 fi
5613
5614 BINDINGS_TO_BUILD=""
5615 case "$enableval" in
5616   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5617   all ) BINDINGS_TO_BUILD="ocaml" ;;
5618   none | no) BINDINGS_TO_BUILD="" ;;
5619   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5620       case "$a_binding" in
5621         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5622         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5623 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5624    { (exit 1); exit 1; }; } ;;
5625       esac
5626   done
5627   ;;
5628 esac
5629
5630
5631 # Check whether --with-ocaml-libdir was given.
5632 if test "${with_ocaml_libdir+set}" = set; then
5633   withval=$with_ocaml_libdir;
5634 else
5635   withval=auto
5636 fi
5637
5638 case "$withval" in
5639   auto) with_ocaml_libdir="$withval" ;;
5640   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5641   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5642 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5643    { (exit 1); exit 1; }; } ;;
5644 esac
5645
5646
5647 # Check whether --with-clang-srcdir was given.
5648 if test "${with_clang_srcdir+set}" = set; then
5649   withval=$with_clang_srcdir;
5650 else
5651   withval="-"
5652 fi
5653
5654 case "$withval" in
5655   -) clang_src_root="" ;;
5656   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5657   *) clang_src_root="$ac_pwd/$withval" ;;
5658 esac
5659 CLANG_SRC_ROOT=$clang_src_root
5660
5661
5662
5663 # Check whether --with-clang-resource-dir was given.
5664 if test "${with_clang_resource_dir+set}" = set; then
5665   withval=$with_clang_resource_dir;
5666 else
5667   withval=""
5668 fi
5669
5670
5671 cat >>confdefs.h <<_ACEOF
5672 #define CLANG_RESOURCE_DIR "$withval"
5673 _ACEOF
5674
5675
5676
5677 # Check whether --with-c-include-dirs was given.
5678 if test "${with_c_include_dirs+set}" = set; then
5679   withval=$with_c_include_dirs;
5680 else
5681   withval=""
5682 fi
5683
5684
5685 cat >>confdefs.h <<_ACEOF
5686 #define C_INCLUDE_DIRS "$withval"
5687 _ACEOF
5688
5689
5690 # Clang normally uses the system c++ headers and libraries. With this option,
5691 # clang will use the ones provided by a gcc installation instead. This option should
5692 # be passed the same value that was used with --prefix when configuring gcc.
5693
5694 # Check whether --with-gcc-toolchain was given.
5695 if test "${with_gcc_toolchain+set}" = set; then
5696   withval=$with_gcc_toolchain;
5697 else
5698   withval=""
5699 fi
5700
5701
5702 cat >>confdefs.h <<_ACEOF
5703 #define GCC_INSTALL_PREFIX "$withval"
5704 _ACEOF
5705
5706
5707
5708 # Check whether --with-default-sysroot was given.
5709 if test "${with_default_sysroot+set}" = set; then
5710   withval=$with_default_sysroot;
5711 else
5712   withval=""
5713 fi
5714
5715
5716 cat >>confdefs.h <<_ACEOF
5717 #define DEFAULT_SYSROOT "$withval"
5718 _ACEOF
5719
5720
5721
5722 # Check whether --with-binutils-include was given.
5723 if test "${with_binutils_include+set}" = set; then
5724   withval=$with_binutils_include;
5725 else
5726   withval=default
5727 fi
5728
5729 case "$withval" in
5730   default) WITH_BINUTILS_INCDIR=default ;;
5731   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5732   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5733 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5734    { (exit 1); exit 1; }; } ;;
5735 esac
5736 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5737   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5738
5739   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5740      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5741      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5742 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5743    { (exit 1); exit 1; }; };
5744   fi
5745 fi
5746
5747
5748 # Check whether --with-bug-report-url was given.
5749 if test "${with_bug_report_url+set}" = set; then
5750   withval=$with_bug_report_url;
5751 else
5752   withval="http://llvm.org/bugs/"
5753 fi
5754
5755
5756 cat >>confdefs.h <<_ACEOF
5757 #define BUG_REPORT_URL "$withval"
5758 _ACEOF
5759
5760
5761 # Check whether --enable-libffi was given.
5762 if test "${enable_libffi+set}" = set; then
5763   enableval=$enable_libffi; case "$enableval" in
5764     yes) llvm_cv_enable_libffi="yes" ;;
5765     no)  llvm_cv_enable_libffi="no"  ;;
5766     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5767 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5768    { (exit 1); exit 1; }; } ;;
5769   esac
5770 else
5771   llvm_cv_enable_libffi=no
5772 fi
5773
5774
5775
5776 # Check whether --with-internal-prefix was given.
5777 if test "${with_internal_prefix+set}" = set; then
5778   withval=$with_internal_prefix;
5779 else
5780   withval=""
5781 fi
5782
5783 INTERNAL_PREFIX=$withval
5784
5785
5786
5787 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5788 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5789 if test "${lt_cv_path_NM+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   if test -n "$NM"; then
5793   # Let the user override the test.
5794   lt_cv_path_NM="$NM"
5795 else
5796   lt_nm_to_check="${ac_tool_prefix}nm"
5797   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798     lt_nm_to_check="$lt_nm_to_check nm"
5799   fi
5800   for lt_tmp_nm in $lt_nm_to_check; do
5801     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5803       IFS="$lt_save_ifs"
5804       test -z "$ac_dir" && ac_dir=.
5805       tmp_nm="$ac_dir/$lt_tmp_nm"
5806       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807         # Check to see if the nm accepts a BSD-compat flag.
5808         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809         #   nm: unknown option "B" ignored
5810         # Tru64's nm complains that /dev/null is an invalid object file
5811         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812         */dev/null* | *'Invalid file or object type'*)
5813           lt_cv_path_NM="$tmp_nm -B"
5814           break
5815           ;;
5816         *)
5817           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5818           */dev/null*)
5819             lt_cv_path_NM="$tmp_nm -p"
5820             break
5821             ;;
5822           *)
5823             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824             continue # so that we can try to find one that supports BSD flags
5825             ;;
5826           esac
5827           ;;
5828         esac
5829       fi
5830     done
5831     IFS="$lt_save_ifs"
5832   done
5833   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5834 fi
5835 fi
5836 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5837 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5838 NM="$lt_cv_path_NM"
5839
5840
5841
5842 { echo "$as_me:$LINENO: checking for GNU make" >&5
5843 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5844 if test "${llvm_cv_gnu_make_command+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   llvm_cv_gnu_make_command=''
5848  for a in "$MAKE" make gmake gnumake ; do
5849   if test -z "$a" ; then continue ; fi ;
5850   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5851   then
5852    llvm_cv_gnu_make_command=$a ;
5853    break;
5854   fi
5855  done
5856 fi
5857 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5858 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5859  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5860    ifGNUmake='' ;
5861  else
5862    ifGNUmake='#' ;
5863    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5864 echo "${ECHO_T}\"Not found\"" >&6; };
5865  fi
5866
5867
5868 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5869 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5870 LN_S=$as_ln_s
5871 if test "$LN_S" = "ln -s"; then
5872   { echo "$as_me:$LINENO: result: yes" >&5
5873 echo "${ECHO_T}yes" >&6; }
5874 else
5875   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5876 echo "${ECHO_T}no, using $LN_S" >&6; }
5877 fi
5878
5879 # Extract the first word of "cmp", so it can be a program name with args.
5880 set dummy cmp; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_path_CMP+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   case $CMP in
5887   [\\/]* | ?:[\\/]*)
5888   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5889   ;;
5890   *)
5891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5907   ;;
5908 esac
5909 fi
5910 CMP=$ac_cv_path_CMP
5911 if test -n "$CMP"; then
5912   { echo "$as_me:$LINENO: result: $CMP" >&5
5913 echo "${ECHO_T}$CMP" >&6; }
5914 else
5915   { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5917 fi
5918
5919
5920 # Extract the first word of "cp", so it can be a program name with args.
5921 set dummy cp; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_path_CP+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   case $CP in
5928   [\\/]* | ?:[\\/]*)
5929   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5930   ;;
5931   *)
5932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5948   ;;
5949 esac
5950 fi
5951 CP=$ac_cv_path_CP
5952 if test -n "$CP"; then
5953   { echo "$as_me:$LINENO: result: $CP" >&5
5954 echo "${ECHO_T}$CP" >&6; }
5955 else
5956   { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5958 fi
5959
5960
5961 # Extract the first word of "date", so it can be a program name with args.
5962 set dummy date; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_path_DATE+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   case $DATE in
5969   [\\/]* | ?:[\\/]*)
5970   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5971   ;;
5972   *)
5973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978   for ac_exec_ext in '' $ac_executable_extensions; do
5979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985 done
5986 IFS=$as_save_IFS
5987
5988   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5989   ;;
5990 esac
5991 fi
5992 DATE=$ac_cv_path_DATE
5993 if test -n "$DATE"; then
5994   { echo "$as_me:$LINENO: result: $DATE" >&5
5995 echo "${ECHO_T}$DATE" >&6; }
5996 else
5997   { echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6; }
5999 fi
6000
6001
6002 # Extract the first word of "find", so it can be a program name with args.
6003 set dummy find; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_FIND+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   case $FIND in
6010   [\\/]* | ?:[\\/]*)
6011   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6012   ;;
6013   *)
6014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017   IFS=$as_save_IFS
6018   test -z "$as_dir" && as_dir=.
6019   for ac_exec_ext in '' $ac_executable_extensions; do
6020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6021     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023     break 2
6024   fi
6025 done
6026 done
6027 IFS=$as_save_IFS
6028
6029   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6030   ;;
6031 esac
6032 fi
6033 FIND=$ac_cv_path_FIND
6034 if test -n "$FIND"; then
6035   { echo "$as_me:$LINENO: result: $FIND" >&5
6036 echo "${ECHO_T}$FIND" >&6; }
6037 else
6038   { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6040 fi
6041
6042
6043 # Extract the first word of "grep", so it can be a program name with args.
6044 set dummy grep; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_path_GREP+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   case $GREP in
6051   [\\/]* | ?:[\\/]*)
6052   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6053   ;;
6054   *)
6055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6071   ;;
6072 esac
6073 fi
6074 GREP=$ac_cv_path_GREP
6075 if test -n "$GREP"; then
6076   { echo "$as_me:$LINENO: result: $GREP" >&5
6077 echo "${ECHO_T}$GREP" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083
6084 # Extract the first word of "mkdir", so it can be a program name with args.
6085 set dummy mkdir; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_path_MKDIR+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   case $MKDIR in
6092   [\\/]* | ?:[\\/]*)
6093   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6094   ;;
6095   *)
6096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101   for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6112   ;;
6113 esac
6114 fi
6115 MKDIR=$ac_cv_path_MKDIR
6116 if test -n "$MKDIR"; then
6117   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6118 echo "${ECHO_T}$MKDIR" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6122 fi
6123
6124
6125 # Extract the first word of "mv", so it can be a program name with args.
6126 set dummy mv; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_path_MV+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   case $MV in
6133   [\\/]* | ?:[\\/]*)
6134   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6135   ;;
6136   *)
6137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6153   ;;
6154 esac
6155 fi
6156 MV=$ac_cv_path_MV
6157 if test -n "$MV"; then
6158   { echo "$as_me:$LINENO: result: $MV" >&5
6159 echo "${ECHO_T}$MV" >&6; }
6160 else
6161   { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6164
6165
6166 if test -n "$ac_tool_prefix"; then
6167   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_RANLIB+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   if test -n "$RANLIB"; then
6175   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 RANLIB=$ac_cv_prog_RANLIB
6195 if test -n "$RANLIB"; then
6196   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6197 echo "${ECHO_T}$RANLIB" >&6; }
6198 else
6199   { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6201 fi
6202
6203
6204 fi
6205 if test -z "$ac_cv_prog_RANLIB"; then
6206   ac_ct_RANLIB=$RANLIB
6207   # Extract the first word of "ranlib", so it can be a program name with args.
6208 set dummy ranlib; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   if test -n "$ac_ct_RANLIB"; then
6215   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222   for ac_exec_ext in '' $ac_executable_extensions; do
6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6224     ac_cv_prog_ac_ct_RANLIB="ranlib"
6225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235 if test -n "$ac_ct_RANLIB"; then
6236   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6237 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6238 else
6239   { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6241 fi
6242
6243   if test "x$ac_ct_RANLIB" = x; then
6244     RANLIB=":"
6245   else
6246     case $cross_compiling:$ac_tool_warned in
6247 yes:)
6248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6249 whose name does not start with the host triplet.  If you think this
6250 configuration is useful to you, please write to autoconf@gnu.org." >&5
6251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet.  If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256     RANLIB=$ac_ct_RANLIB
6257   fi
6258 else
6259   RANLIB="$ac_cv_prog_RANLIB"
6260 fi
6261
6262 if test -n "$ac_tool_prefix"; then
6263   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6264 set dummy ${ac_tool_prefix}ar; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_AR+set}" = set; then
6268   echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270   if test -n "$AR"; then
6271   ac_cv_prog_AR="$AR" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278   for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_prog_AR="${ac_tool_prefix}ar"
6281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 AR=$ac_cv_prog_AR
6291 if test -n "$AR"; then
6292   { echo "$as_me:$LINENO: result: $AR" >&5
6293 echo "${ECHO_T}$AR" >&6; }
6294 else
6295   { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6297 fi
6298
6299
6300 fi
6301 if test -z "$ac_cv_prog_AR"; then
6302   ac_ct_AR=$AR
6303   # Extract the first word of "ar", so it can be a program name with args.
6304 set dummy ar; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   if test -n "$ac_ct_AR"; then
6311   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_prog_ac_ct_AR="ar"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331 if test -n "$ac_ct_AR"; then
6332   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6333 echo "${ECHO_T}$ac_ct_AR" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339   if test "x$ac_ct_AR" = x; then
6340     AR="false"
6341   else
6342     case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6345 whose name does not start with the host triplet.  If you think this
6346 configuration is useful to you, please write to autoconf@gnu.org." >&5
6347 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6348 whose name does not start with the host triplet.  If you think this
6349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6350 ac_tool_warned=yes ;;
6351 esac
6352     AR=$ac_ct_AR
6353   fi
6354 else
6355   AR="$ac_cv_prog_AR"
6356 fi
6357
6358 # Extract the first word of "rm", so it can be a program name with args.
6359 set dummy rm; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_path_RM+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   case $RM in
6366   [\\/]* | ?:[\\/]*)
6367   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6368   ;;
6369   *)
6370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373   IFS=$as_save_IFS
6374   test -z "$as_dir" && as_dir=.
6375   for ac_exec_ext in '' $ac_executable_extensions; do
6376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379     break 2
6380   fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6384
6385   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6386   ;;
6387 esac
6388 fi
6389 RM=$ac_cv_path_RM
6390 if test -n "$RM"; then
6391   { echo "$as_me:$LINENO: result: $RM" >&5
6392 echo "${ECHO_T}$RM" >&6; }
6393 else
6394   { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6396 fi
6397
6398
6399 # Extract the first word of "sed", so it can be a program name with args.
6400 set dummy sed; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_SED+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   case $SED in
6407   [\\/]* | ?:[\\/]*)
6408   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6409   ;;
6410   *)
6411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416   for ac_exec_ext in '' $ac_executable_extensions; do
6417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6427   ;;
6428 esac
6429 fi
6430 SED=$ac_cv_path_SED
6431 if test -n "$SED"; then
6432   { echo "$as_me:$LINENO: result: $SED" >&5
6433 echo "${ECHO_T}$SED" >&6; }
6434 else
6435   { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6437 fi
6438
6439
6440 # Extract the first word of "tar", so it can be a program name with args.
6441 set dummy tar; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_path_TAR+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   case $TAR in
6448   [\\/]* | ?:[\\/]*)
6449   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6450   ;;
6451   *)
6452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457   for ac_exec_ext in '' $ac_executable_extensions; do
6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6459     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6468   ;;
6469 esac
6470 fi
6471 TAR=$ac_cv_path_TAR
6472 if test -n "$TAR"; then
6473   { echo "$as_me:$LINENO: result: $TAR" >&5
6474 echo "${ECHO_T}$TAR" >&6; }
6475 else
6476   { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6478 fi
6479
6480
6481 # Extract the first word of "pwd", so it can be a program name with args.
6482 set dummy pwd; ac_word=$2
6483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485 if test "${ac_cv_path_BINPWD+set}" = set; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   case $BINPWD in
6489   [\\/]* | ?:[\\/]*)
6490   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6491   ;;
6492   *)
6493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498   for ac_exec_ext in '' $ac_executable_extensions; do
6499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6500     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6509   ;;
6510 esac
6511 fi
6512 BINPWD=$ac_cv_path_BINPWD
6513 if test -n "$BINPWD"; then
6514   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6515 echo "${ECHO_T}$BINPWD" >&6; }
6516 else
6517   { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6519 fi
6520
6521
6522
6523 # Extract the first word of "Graphviz", so it can be a program name with args.
6524 set dummy Graphviz; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   case $GRAPHVIZ in
6531   [\\/]* | ?:[\\/]*)
6532   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6533   ;;
6534   *)
6535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540   for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6551   ;;
6552 esac
6553 fi
6554 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6555 if test -n "$GRAPHVIZ"; then
6556   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6557 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6561 fi
6562
6563
6564 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6565
6566 cat >>confdefs.h <<\_ACEOF
6567 #define HAVE_GRAPHVIZ 1
6568 _ACEOF
6569
6570     if test "$llvm_cv_os_type" = "MingW" ; then
6571     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6572   fi
6573
6574 cat >>confdefs.h <<_ACEOF
6575 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6576 _ACEOF
6577
6578 fi
6579 # Extract the first word of "dot", so it can be a program name with args.
6580 set dummy dot; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_DOT+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   case $DOT in
6587   [\\/]* | ?:[\\/]*)
6588   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6589   ;;
6590   *)
6591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6607   ;;
6608 esac
6609 fi
6610 DOT=$ac_cv_path_DOT
6611 if test -n "$DOT"; then
6612   { echo "$as_me:$LINENO: result: $DOT" >&5
6613 echo "${ECHO_T}$DOT" >&6; }
6614 else
6615   { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619
6620 if test "$DOT" != "echo dot" ; then
6621
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_DOT 1
6624 _ACEOF
6625
6626     if test "$llvm_cv_os_type" = "MingW" ; then
6627     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6628   fi
6629
6630 cat >>confdefs.h <<_ACEOF
6631 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6632 _ACEOF
6633
6634 fi
6635 # Extract the first word of "fdp", so it can be a program name with args.
6636 set dummy fdp; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_FDP+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   case $FDP in
6643   [\\/]* | ?:[\\/]*)
6644   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6645   ;;
6646   *)
6647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652   for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6663   ;;
6664 esac
6665 fi
6666 FDP=$ac_cv_path_FDP
6667 if test -n "$FDP"; then
6668   { echo "$as_me:$LINENO: result: $FDP" >&5
6669 echo "${ECHO_T}$FDP" >&6; }
6670 else
6671   { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673 fi
6674
6675
6676 if test "$FDP" != "echo fdp" ; then
6677
6678 cat >>confdefs.h <<\_ACEOF
6679 #define HAVE_FDP 1
6680 _ACEOF
6681
6682     if test "$llvm_cv_os_type" = "MingW" ; then
6683     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6684   fi
6685
6686 cat >>confdefs.h <<_ACEOF
6687 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6688 _ACEOF
6689
6690 fi
6691 # Extract the first word of "neato", so it can be a program name with args.
6692 set dummy neato; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_path_NEATO+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   case $NEATO in
6699   [\\/]* | ?:[\\/]*)
6700   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6701   ;;
6702   *)
6703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708   for ac_exec_ext in '' $ac_executable_extensions; do
6709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6710     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6719   ;;
6720 esac
6721 fi
6722 NEATO=$ac_cv_path_NEATO
6723 if test -n "$NEATO"; then
6724   { echo "$as_me:$LINENO: result: $NEATO" >&5
6725 echo "${ECHO_T}$NEATO" >&6; }
6726 else
6727   { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6729 fi
6730
6731
6732 if test "$NEATO" != "echo neato" ; then
6733
6734 cat >>confdefs.h <<\_ACEOF
6735 #define HAVE_NEATO 1
6736 _ACEOF
6737
6738     if test "$llvm_cv_os_type" = "MingW" ; then
6739     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6740   fi
6741
6742 cat >>confdefs.h <<_ACEOF
6743 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6744 _ACEOF
6745
6746 fi
6747 # Extract the first word of "twopi", so it can be a program name with args.
6748 set dummy twopi; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_TWOPI+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   case $TWOPI in
6755   [\\/]* | ?:[\\/]*)
6756   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6757   ;;
6758   *)
6759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6775   ;;
6776 esac
6777 fi
6778 TWOPI=$ac_cv_path_TWOPI
6779 if test -n "$TWOPI"; then
6780   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6781 echo "${ECHO_T}$TWOPI" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788 if test "$TWOPI" != "echo twopi" ; then
6789
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_TWOPI 1
6792 _ACEOF
6793
6794     if test "$llvm_cv_os_type" = "MingW" ; then
6795     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6796   fi
6797
6798 cat >>confdefs.h <<_ACEOF
6799 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6800 _ACEOF
6801
6802 fi
6803 # Extract the first word of "circo", so it can be a program name with args.
6804 set dummy circo; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_CIRCO+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   case $CIRCO in
6811   [\\/]* | ?:[\\/]*)
6812   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6813   ;;
6814   *)
6815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820   for ac_exec_ext in '' $ac_executable_extensions; do
6821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6831   ;;
6832 esac
6833 fi
6834 CIRCO=$ac_cv_path_CIRCO
6835 if test -n "$CIRCO"; then
6836   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6837 echo "${ECHO_T}$CIRCO" >&6; }
6838 else
6839   { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6841 fi
6842
6843
6844 if test "$CIRCO" != "echo circo" ; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_CIRCO 1
6848 _ACEOF
6849
6850     if test "$llvm_cv_os_type" = "MingW" ; then
6851     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6852   fi
6853
6854 cat >>confdefs.h <<_ACEOF
6855 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6856 _ACEOF
6857
6858 fi
6859 for ac_prog in gv gsview32
6860 do
6861   # Extract the first word of "$ac_prog", so it can be a program name with args.
6862 set dummy $ac_prog; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_GV+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   case $GV in
6869   [\\/]* | ?:[\\/]*)
6870   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6871   ;;
6872   *)
6873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878   for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888   ;;
6889 esac
6890 fi
6891 GV=$ac_cv_path_GV
6892 if test -n "$GV"; then
6893   { echo "$as_me:$LINENO: result: $GV" >&5
6894 echo "${ECHO_T}$GV" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900
6901   test -n "$GV" && break
6902 done
6903 test -n "$GV" || GV="echo gv"
6904
6905 if test "$GV" != "echo gv" ; then
6906
6907 cat >>confdefs.h <<\_ACEOF
6908 #define HAVE_GV 1
6909 _ACEOF
6910
6911     if test "$llvm_cv_os_type" = "MingW" ; then
6912     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6913   fi
6914
6915 cat >>confdefs.h <<_ACEOF
6916 #define LLVM_PATH_GV "$GV${EXEEXT}"
6917 _ACEOF
6918
6919 fi
6920 # Extract the first word of "dotty", so it can be a program name with args.
6921 set dummy dotty; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_path_DOTTY+set}" = set; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   case $DOTTY in
6928   [\\/]* | ?:[\\/]*)
6929   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6930   ;;
6931   *)
6932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937   for ac_exec_ext in '' $ac_executable_extensions; do
6938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6939     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6948   ;;
6949 esac
6950 fi
6951 DOTTY=$ac_cv_path_DOTTY
6952 if test -n "$DOTTY"; then
6953   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6954 echo "${ECHO_T}$DOTTY" >&6; }
6955 else
6956   { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6958 fi
6959
6960
6961 if test "$DOTTY" != "echo dotty" ; then
6962
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_DOTTY 1
6965 _ACEOF
6966
6967     if test "$llvm_cv_os_type" = "MingW" ; then
6968     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6969   fi
6970
6971 cat >>confdefs.h <<_ACEOF
6972 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6973 _ACEOF
6974
6975 fi
6976 # Extract the first word of "xdot.py", so it can be a program name with args.
6977 set dummy xdot.py; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   case $XDOT_PY in
6984   [\\/]* | ?:[\\/]*)
6985   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6986   ;;
6987   *)
6988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993   for ac_exec_ext in '' $ac_executable_extensions; do
6994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7004   ;;
7005 esac
7006 fi
7007 XDOT_PY=$ac_cv_path_XDOT_PY
7008 if test -n "$XDOT_PY"; then
7009   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7010 echo "${ECHO_T}$XDOT_PY" >&6; }
7011 else
7012   { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7014 fi
7015
7016
7017 if test "$XDOT_PY" != "echo xdot.py" ; then
7018
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_XDOT_PY 1
7021 _ACEOF
7022
7023     if test "$llvm_cv_os_type" = "MingW" ; then
7024     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7025   fi
7026
7027 cat >>confdefs.h <<_ACEOF
7028 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7029 _ACEOF
7030
7031 fi
7032
7033 # Find a good install program.  We prefer a C program (faster),
7034 # so one script is as good as another.  But avoid the broken or
7035 # incompatible versions:
7036 # SysV /etc/install, /usr/sbin/install
7037 # SunOS /usr/etc/install
7038 # IRIX /sbin/install
7039 # AIX /bin/install
7040 # AmigaOS /C/install, which installs bootblocks on floppy discs
7041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7044 # OS/2's system install, which has a completely different semantic
7045 # ./install, which can be erroneously created by make from ./install.sh.
7046 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7047 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7048 if test -z "$INSTALL"; then
7049 if test "${ac_cv_path_install+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057   # Account for people who put trailing slashes in PATH elements.
7058 case $as_dir/ in
7059   ./ | .// | /cC/* | \
7060   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7061   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7062   /usr/ucb/* ) ;;
7063   *)
7064     # OSF1 and SCO ODT 3.0 have their own names for install.
7065     # Don't use installbsd from OSF since it installs stuff as root
7066     # by default.
7067     for ac_prog in ginstall scoinst install; do
7068       for ac_exec_ext in '' $ac_executable_extensions; do
7069         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7070           if test $ac_prog = install &&
7071             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7072             # AIX install.  It has an incompatible calling convention.
7073             :
7074           elif test $ac_prog = install &&
7075             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076             # program-specific install script used by HP pwplus--don't use.
7077             :
7078           else
7079             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7080             break 3
7081           fi
7082         fi
7083       done
7084     done
7085     ;;
7086 esac
7087 done
7088 IFS=$as_save_IFS
7089
7090
7091 fi
7092   if test "${ac_cv_path_install+set}" = set; then
7093     INSTALL=$ac_cv_path_install
7094   else
7095     # As a last resort, use the slow shell script.  Don't cache a
7096     # value for INSTALL within a source directory, because that will
7097     # break other packages using the cache if that directory is
7098     # removed, or if the value is a relative name.
7099     INSTALL=$ac_install_sh
7100   fi
7101 fi
7102 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7103 echo "${ECHO_T}$INSTALL" >&6; }
7104
7105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7106 # It thinks the first close brace ends the variable substitution.
7107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7108
7109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7110
7111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7112
7113 case "$INSTALL" in
7114  [\\/$]* | ?:[\\/]* ) ;;
7115  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7116 esac
7117
7118 # Extract the first word of "bzip2", so it can be a program name with args.
7119 set dummy bzip2; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_BZIP2+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   case $BZIP2 in
7126   [\\/]* | ?:[\\/]*)
7127   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7128   ;;
7129   *)
7130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135   for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145   ;;
7146 esac
7147 fi
7148 BZIP2=$ac_cv_path_BZIP2
7149 if test -n "$BZIP2"; then
7150   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7151 echo "${ECHO_T}$BZIP2" >&6; }
7152 else
7153   { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7155 fi
7156
7157
7158 # Extract the first word of "cat", so it can be a program name with args.
7159 set dummy cat; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_CAT+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   case $CAT in
7166   [\\/]* | ?:[\\/]*)
7167   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7168   ;;
7169   *)
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175   for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185   ;;
7186 esac
7187 fi
7188 CAT=$ac_cv_path_CAT
7189 if test -n "$CAT"; then
7190   { echo "$as_me:$LINENO: result: $CAT" >&5
7191 echo "${ECHO_T}$CAT" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198 # Extract the first word of "doxygen", so it can be a program name with args.
7199 set dummy doxygen; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   case $DOXYGEN in
7206   [\\/]* | ?:[\\/]*)
7207   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7208   ;;
7209   *)
7210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215   for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225   ;;
7226 esac
7227 fi
7228 DOXYGEN=$ac_cv_path_DOXYGEN
7229 if test -n "$DOXYGEN"; then
7230   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7231 echo "${ECHO_T}$DOXYGEN" >&6; }
7232 else
7233   { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235 fi
7236
7237
7238 # Extract the first word of "groff", so it can be a program name with args.
7239 set dummy groff; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_GROFF+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   case $GROFF in
7246   [\\/]* | ?:[\\/]*)
7247   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7248   ;;
7249   *)
7250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255   for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265   ;;
7266 esac
7267 fi
7268 GROFF=$ac_cv_path_GROFF
7269 if test -n "$GROFF"; then
7270   { echo "$as_me:$LINENO: result: $GROFF" >&5
7271 echo "${ECHO_T}$GROFF" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 # Extract the first word of "gzip", so it can be a program name with args.
7279 set dummy gzip; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   case $GZIPBIN in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305   ;;
7306 esac
7307 fi
7308 GZIPBIN=$ac_cv_path_GZIPBIN
7309 if test -n "$GZIPBIN"; then
7310   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7311 echo "${ECHO_T}$GZIPBIN" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317
7318 # Extract the first word of "pdfroff", so it can be a program name with args.
7319 set dummy pdfroff; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_PDFROFF+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   case $PDFROFF in
7326   [\\/]* | ?:[\\/]*)
7327   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7328   ;;
7329   *)
7330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345   ;;
7346 esac
7347 fi
7348 PDFROFF=$ac_cv_path_PDFROFF
7349 if test -n "$PDFROFF"; then
7350   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7351 echo "${ECHO_T}$PDFROFF" >&6; }
7352 else
7353   { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7355 fi
7356
7357
7358 # Extract the first word of "zip", so it can be a program name with args.
7359 set dummy zip; ac_word=$2
7360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362 if test "${ac_cv_path_ZIP+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   case $ZIP in
7366   [\\/]* | ?:[\\/]*)
7367   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7368   ;;
7369   *)
7370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373   IFS=$as_save_IFS
7374   test -z "$as_dir" && as_dir=.
7375   for ac_exec_ext in '' $ac_executable_extensions; do
7376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7377     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379     break 2
7380   fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385   ;;
7386 esac
7387 fi
7388 ZIP=$ac_cv_path_ZIP
7389 if test -n "$ZIP"; then
7390   { echo "$as_me:$LINENO: result: $ZIP" >&5
7391 echo "${ECHO_T}$ZIP" >&6; }
7392 else
7393   { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7395 fi
7396
7397
7398 for ac_prog in ocamlc
7399 do
7400   # Extract the first word of "$ac_prog", so it can be a program name with args.
7401 set dummy $ac_prog; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_OCAMLC+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407   case $OCAMLC in
7408   [\\/]* | ?:[\\/]*)
7409   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7410   ;;
7411   *)
7412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417   for ac_exec_ext in '' $ac_executable_extensions; do
7418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427   ;;
7428 esac
7429 fi
7430 OCAMLC=$ac_cv_path_OCAMLC
7431 if test -n "$OCAMLC"; then
7432   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7433 echo "${ECHO_T}$OCAMLC" >&6; }
7434 else
7435   { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7437 fi
7438
7439
7440   test -n "$OCAMLC" && break
7441 done
7442
7443 for ac_prog in ocamlopt
7444 do
7445   # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy $ac_prog; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7450   echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452   case $OCAMLOPT in
7453   [\\/]* | ?:[\\/]*)
7454   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7455   ;;
7456   *)
7457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472   ;;
7473 esac
7474 fi
7475 OCAMLOPT=$ac_cv_path_OCAMLOPT
7476 if test -n "$OCAMLOPT"; then
7477   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7478 echo "${ECHO_T}$OCAMLOPT" >&6; }
7479 else
7480   { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7482 fi
7483
7484
7485   test -n "$OCAMLOPT" && break
7486 done
7487
7488 for ac_prog in ocamldep
7489 do
7490   # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   case $OCAMLDEP in
7498   [\\/]* | ?:[\\/]*)
7499   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7500   ;;
7501   *)
7502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517   ;;
7518 esac
7519 fi
7520 OCAMLDEP=$ac_cv_path_OCAMLDEP
7521 if test -n "$OCAMLDEP"; then
7522   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7523 echo "${ECHO_T}$OCAMLDEP" >&6; }
7524 else
7525   { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7528
7529
7530   test -n "$OCAMLDEP" && break
7531 done
7532
7533 for ac_prog in ocamldoc
7534 do
7535   # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   case $OCAMLDOC in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562   ;;
7563 esac
7564 fi
7565 OCAMLDOC=$ac_cv_path_OCAMLDOC
7566 if test -n "$OCAMLDOC"; then
7567   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7568 echo "${ECHO_T}$OCAMLDOC" >&6; }
7569 else
7570   { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7572 fi
7573
7574
7575   test -n "$OCAMLDOC" && break
7576 done
7577
7578 for ac_prog in gas as
7579 do
7580   # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_GAS+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   case $GAS in
7588   [\\/]* | ?:[\\/]*)
7589   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7590   ;;
7591   *)
7592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595   IFS=$as_save_IFS
7596   test -z "$as_dir" && as_dir=.
7597   for ac_exec_ext in '' $ac_executable_extensions; do
7598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607   ;;
7608 esac
7609 fi
7610 GAS=$ac_cv_path_GAS
7611 if test -n "$GAS"; then
7612   { echo "$as_me:$LINENO: result: $GAS" >&5
7613 echo "${ECHO_T}$GAS" >&6; }
7614 else
7615   { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7617 fi
7618
7619
7620   test -n "$GAS" && break
7621 done
7622
7623
7624 { echo "$as_me:$LINENO: checking for linker version" >&5
7625 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7626 if test "${llvm_cv_link_version+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629
7630    version_string="$(ld -v 2>&1 | head -1)"
7631
7632    # Check for ld64.
7633    if (echo "$version_string" | grep -q "ld64"); then
7634      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7635    else
7636      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7637    fi
7638
7639 fi
7640 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7641 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7645 _ACEOF
7646
7647
7648
7649 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7650 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7651 if test "${llvm_cv_link_use_r+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654    ac_ext=c
7655 ac_cpp='$CPP $CPPFLAGS'
7656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659
7660   oldcflags="$CFLAGS"
7661   CFLAGS="$CFLAGS -Wl,-R."
7662   cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h.  */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h.  */
7668
7669 int
7670 main ()
7671 {
7672
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (ac_try="$ac_link"
7679 case "(($ac_try" in
7680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681   *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684   (eval "$ac_link") 2>conftest.er1
7685   ac_status=$?
7686   grep -v '^ *+' conftest.er1 >conftest.err
7687   rm -f conftest.er1
7688   cat conftest.err >&5
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); } &&
7691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7692   { (case "(($ac_try" in
7693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694   *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697   (eval "$ac_try") 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; } &&
7701          { ac_try='test -s conftest$ac_exeext'
7702   { (case "(($ac_try" in
7703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704   *) ac_try_echo=$ac_try;;
7705 esac
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707   (eval "$ac_try") 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); }; }; then
7711   llvm_cv_link_use_r=yes
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716         llvm_cv_link_use_r=no
7717 fi
7718
7719 rm -f core conftest.err conftest.$ac_objext \
7720       conftest$ac_exeext conftest.$ac_ext
7721   CFLAGS="$oldcflags"
7722   ac_ext=c
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7727
7728
7729 fi
7730 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7731 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7732 if test "$llvm_cv_link_use_r" = yes ; then
7733
7734 cat >>confdefs.h <<\_ACEOF
7735 #define HAVE_LINK_R 1
7736 _ACEOF
7737
7738   fi
7739
7740
7741 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7742 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7743 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746    ac_ext=c
7747 ac_cpp='$CPP $CPPFLAGS'
7748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751
7752   oldcflags="$CFLAGS"
7753   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7754   cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760
7761 int
7762 main ()
7763 {
7764
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (ac_try="$ac_link"
7771 case "(($ac_try" in
7772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773   *) ac_try_echo=$ac_try;;
7774 esac
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776   (eval "$ac_link") 2>conftest.er1
7777   ac_status=$?
7778   grep -v '^ *+' conftest.er1 >conftest.err
7779   rm -f conftest.er1
7780   cat conftest.err >&5
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); } &&
7783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7784   { (case "(($ac_try" in
7785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786   *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789   (eval "$ac_try") 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest$ac_exeext'
7794   { (case "(($ac_try" in
7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796   *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799   (eval "$ac_try") 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   llvm_cv_link_use_export_dynamic=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808         llvm_cv_link_use_export_dynamic=no
7809 fi
7810
7811 rm -f core conftest.err conftest.$ac_objext \
7812       conftest$ac_exeext conftest.$ac_ext
7813   CFLAGS="$oldcflags"
7814   ac_ext=c
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819
7820
7821 fi
7822 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7823 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7824 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7825
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_LINK_EXPORT_DYNAMIC 1
7828 _ACEOF
7829
7830   fi
7831
7832
7833 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7834 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7835 if test "${llvm_cv_link_use_version_script+set}" = set; then
7836   echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838    ac_ext=c
7839 ac_cpp='$CPP $CPPFLAGS'
7840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843
7844   oldcflags="$CFLAGS"
7845
7846   # The following code is from the autoconf manual,
7847   # "11.13: Limitations of Usual Tools".
7848   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7849   # Use mktemp if possible; otherwise fall back on mkdir,
7850   # with $RANDOM to make collisions less likely.
7851   : ${TMPDIR=/tmp}
7852   {
7853     tmp=`
7854       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7855     ` &&
7856     test -n "$tmp" && test -d "$tmp"
7857   } || {
7858     tmp=$TMPDIR/foo$$-$RANDOM
7859     (umask 077 && mkdir "$tmp")
7860   } || exit $?
7861
7862   echo "{" > "$tmp/export.map"
7863   echo "  global: main;" >> "$tmp/export.map"
7864   echo "  local: *;" >> "$tmp/export.map"
7865   echo "};" >> "$tmp/export.map"
7866
7867   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874
7875 int
7876 main ()
7877 {
7878
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7885 case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890   (eval "$ac_link") 2>conftest.er1
7891   ac_status=$?
7892   grep -v '^ *+' conftest.er1 >conftest.err
7893   rm -f conftest.er1
7894   cat conftest.err >&5
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); } &&
7897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7898   { (case "(($ac_try" in
7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900   *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903   (eval "$ac_try") 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); }; } &&
7907          { ac_try='test -s conftest$ac_exeext'
7908   { (case "(($ac_try" in
7909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910   *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913   (eval "$ac_try") 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; }; then
7917   llvm_cv_link_use_version_script=yes
7918 else
7919   echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922         llvm_cv_link_use_version_script=no
7923 fi
7924
7925 rm -f core conftest.err conftest.$ac_objext \
7926       conftest$ac_exeext conftest.$ac_ext
7927   rm "$tmp/export.map"
7928   rmdir "$tmp"
7929   CFLAGS="$oldcflags"
7930   ac_ext=c
7931 ac_cpp='$CPP $CPPFLAGS'
7932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935
7936
7937 fi
7938 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7939 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7940 if test "$llvm_cv_link_use_version_script" = yes ; then
7941   HAVE_LINK_VERSION_SCRIPT=1
7942
7943   fi
7944
7945
7946
7947
7948 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7949 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7950 if test "${ac_cv_c_const+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959
7960 int
7961 main ()
7962 {
7963 /* FIXME: Include the comments suggested by Paul. */
7964 #ifndef __cplusplus
7965   /* Ultrix mips cc rejects this.  */
7966   typedef int charset[2];
7967   const charset x;
7968   /* SunOS 4.1.1 cc rejects this.  */
7969   char const *const *ccp;
7970   char **p;
7971   /* NEC SVR4.0.2 mips cc rejects this.  */
7972   struct point {int x, y;};
7973   static struct point const zero = {0,0};
7974   /* AIX XL C 1.02.0.0 rejects this.
7975      It does not let you subtract one const X* pointer from another in
7976      an arm of an if-expression whose if-part is not a constant
7977      expression */
7978   const char *g = "string";
7979   ccp = &g + (g ? g-g : 0);
7980   /* HPUX 7.0 cc rejects these. */
7981   ++ccp;
7982   p = (char**) ccp;
7983   ccp = (char const *const *) p;
7984   { /* SCO 3.2v4 cc rejects this.  */
7985     char *t;
7986     char const *s = 0 ? (char *) 0 : (char const *) 0;
7987
7988     *t++ = 0;
7989     if (s) return 0;
7990   }
7991   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7992     int x[] = {25, 17};
7993     const int *foo = &x[0];
7994     ++foo;
7995   }
7996   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7997     typedef const int *iptr;
7998     iptr p = 0;
7999     ++p;
8000   }
8001   { /* AIX XL C 1.02.0.0 rejects this saying
8002        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8003     struct s { int j; const int *ap[3]; };
8004     struct s *b; b->j = 5;
8005   }
8006   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8007     const int foo = 10;
8008     if (!foo) return 0;
8009   }
8010   return !x[0] && !zero.x;
8011 #endif
8012
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (ac_try="$ac_compile"
8019 case "(($ac_try" in
8020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021   *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024   (eval "$ac_compile") 2>conftest.er1
8025   ac_status=$?
8026   grep -v '^ *+' conftest.er1 >conftest.err
8027   rm -f conftest.er1
8028   cat conftest.err >&5
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032   { (case "(($ac_try" in
8033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034   *) ac_try_echo=$ac_try;;
8035 esac
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037   (eval "$ac_try") 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; } &&
8041          { ac_try='test -s conftest.$ac_objext'
8042   { (case "(($ac_try" in
8043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044   *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047   (eval "$ac_try") 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051   ac_cv_c_const=yes
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056         ac_cv_c_const=no
8057 fi
8058
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 fi
8061 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8062 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8063 if test $ac_cv_c_const = no; then
8064
8065 cat >>confdefs.h <<\_ACEOF
8066 #define const
8067 _ACEOF
8068
8069 fi
8070
8071
8072
8073
8074
8075
8076 ac_header_dirent=no
8077 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8078   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8079 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8080 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 #include <sys/types.h>
8091 #include <$ac_hdr>
8092
8093 int
8094 main ()
8095 {
8096 if ((DIR *) 0)
8097 return 0;
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8104 case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109   (eval "$ac_compile") 2>conftest.er1
8110   ac_status=$?
8111   grep -v '^ *+' conftest.er1 >conftest.err
8112   rm -f conftest.er1
8113   cat conftest.err >&5
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); } &&
8116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8117   { (case "(($ac_try" in
8118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119   *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122   (eval "$ac_try") 2>&5
8123   ac_status=$?
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); }; } &&
8126          { ac_try='test -s conftest.$ac_objext'
8127   { (case "(($ac_try" in
8128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129   *) ac_try_echo=$ac_try;;
8130 esac
8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132   (eval "$ac_try") 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   eval "$as_ac_Header=yes"
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141         eval "$as_ac_Header=no"
8142 fi
8143
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 fi
8146 ac_res=`eval echo '${'$as_ac_Header'}'`
8147                { echo "$as_me:$LINENO: result: $ac_res" >&5
8148 echo "${ECHO_T}$ac_res" >&6; }
8149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8150   cat >>confdefs.h <<_ACEOF
8151 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8152 _ACEOF
8153
8154 ac_header_dirent=$ac_hdr; break
8155 fi
8156
8157 done
8158 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8159 if test $ac_header_dirent = dirent.h; then
8160   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8162 if test "${ac_cv_search_opendir+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   ac_func_search_save_LIBS=$LIBS
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 /* Override any GCC internal prototype to avoid an error.
8174    Use char because int might match the return type of a GCC
8175    builtin and then its argument prototype would still apply.  */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 char opendir ();
8180 int
8181 main ()
8182 {
8183 return opendir ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 for ac_lib in '' dir; do
8189   if test -z "$ac_lib"; then
8190     ac_res="none required"
8191   else
8192     ac_res=-l$ac_lib
8193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8194   fi
8195   rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8197 case "(($ac_try" in
8198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199   *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202   (eval "$ac_link") 2>conftest.er1
8203   ac_status=$?
8204   grep -v '^ *+' conftest.er1 >conftest.err
8205   rm -f conftest.er1
8206   cat conftest.err >&5
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); } &&
8209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210   { (case "(($ac_try" in
8211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212   *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215   (eval "$ac_try") 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; } &&
8219          { ac_try='test -s conftest$ac_exeext'
8220   { (case "(($ac_try" in
8221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222   *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225   (eval "$ac_try") 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; }; then
8229   ac_cv_search_opendir=$ac_res
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234
8235 fi
8236
8237 rm -f core conftest.err conftest.$ac_objext \
8238       conftest$ac_exeext
8239   if test "${ac_cv_search_opendir+set}" = set; then
8240   break
8241 fi
8242 done
8243 if test "${ac_cv_search_opendir+set}" = set; then
8244   :
8245 else
8246   ac_cv_search_opendir=no
8247 fi
8248 rm conftest.$ac_ext
8249 LIBS=$ac_func_search_save_LIBS
8250 fi
8251 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8252 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8253 ac_res=$ac_cv_search_opendir
8254 if test "$ac_res" != no; then
8255   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8256
8257 fi
8258
8259 else
8260   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8262 if test "${ac_cv_search_opendir+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   ac_func_search_save_LIBS=$LIBS
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272
8273 /* Override any GCC internal prototype to avoid an error.
8274    Use char because int might match the return type of a GCC
8275    builtin and then its argument prototype would still apply.  */
8276 #ifdef __cplusplus
8277 extern "C"
8278 #endif
8279 char opendir ();
8280 int
8281 main ()
8282 {
8283 return opendir ();
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 for ac_lib in '' x; do
8289   if test -z "$ac_lib"; then
8290     ac_res="none required"
8291   else
8292     ac_res=-l$ac_lib
8293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8294   fi
8295   rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8297 case "(($ac_try" in
8298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299   *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302   (eval "$ac_link") 2>conftest.er1
8303   ac_status=$?
8304   grep -v '^ *+' conftest.er1 >conftest.err
8305   rm -f conftest.er1
8306   cat conftest.err >&5
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_try") 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; } &&
8319          { ac_try='test -s conftest$ac_exeext'
8320   { (case "(($ac_try" in
8321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322   *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325   (eval "$ac_try") 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_cv_search_opendir=$ac_res
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334
8335 fi
8336
8337 rm -f core conftest.err conftest.$ac_objext \
8338       conftest$ac_exeext
8339   if test "${ac_cv_search_opendir+set}" = set; then
8340   break
8341 fi
8342 done
8343 if test "${ac_cv_search_opendir+set}" = set; then
8344   :
8345 else
8346   ac_cv_search_opendir=no
8347 fi
8348 rm conftest.$ac_ext
8349 LIBS=$ac_func_search_save_LIBS
8350 fi
8351 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8352 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8353 ac_res=$ac_cv_search_opendir
8354 if test "$ac_res" != no; then
8355   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8356
8357 fi
8358
8359 fi
8360
8361
8362 for ac_header in dlfcn.h
8363 do
8364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 fi
8371 ac_res=`eval echo '${'$as_ac_Header'}'`
8372                { echo "$as_me:$LINENO: result: $ac_res" >&5
8373 echo "${ECHO_T}$ac_res" >&6; }
8374 else
8375   # Is the header compilable?
8376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h.  */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h.  */
8384 $ac_includes_default
8385 #include <$ac_header>
8386 _ACEOF
8387 rm -f conftest.$ac_objext
8388 if { (ac_try="$ac_compile"
8389 case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394   (eval "$ac_compile") 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } &&
8401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402   { (case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_try") 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; } &&
8411          { ac_try='test -s conftest.$ac_objext'
8412   { (case "(($ac_try" in
8413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414   *) ac_try_echo=$ac_try;;
8415 esac
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417   (eval "$ac_try") 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; }; then
8421   ac_header_compiler=yes
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426         ac_header_compiler=no
8427 fi
8428
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431 echo "${ECHO_T}$ac_header_compiler" >&6; }
8432
8433 # Is the header present?
8434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442 #include <$ac_header>
8443 _ACEOF
8444 if { (ac_try="$ac_cpp conftest.$ac_ext"
8445 case "(($ac_try" in
8446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447   *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8451   ac_status=$?
8452   grep -v '^ *+' conftest.er1 >conftest.err
8453   rm -f conftest.er1
8454   cat conftest.err >&5
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } >/dev/null; then
8457   if test -s conftest.err; then
8458     ac_cpp_err=$ac_c_preproc_warn_flag
8459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8460   else
8461     ac_cpp_err=
8462   fi
8463 else
8464   ac_cpp_err=yes
8465 fi
8466 if test -z "$ac_cpp_err"; then
8467   ac_header_preproc=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472   ac_header_preproc=no
8473 fi
8474
8475 rm -f conftest.err conftest.$ac_ext
8476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8477 echo "${ECHO_T}$ac_header_preproc" >&6; }
8478
8479 # So?  What about this header?
8480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8481   yes:no: )
8482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8486     ac_header_preproc=yes
8487     ;;
8488   no:yes:* )
8489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8501     ( cat <<\_ASBOX
8502 ## ------------------------------------ ##
8503 ## Report this to http://llvm.org/bugs/ ##
8504 ## ------------------------------------ ##
8505 _ASBOX
8506      ) | sed "s/^/$as_me: WARNING:     /" >&2
8507     ;;
8508 esac
8509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512   echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514   eval "$as_ac_Header=\$ac_header_preproc"
8515 fi
8516 ac_res=`eval echo '${'$as_ac_Header'}'`
8517                { echo "$as_me:$LINENO: result: $ac_res" >&5
8518 echo "${ECHO_T}$ac_res" >&6; }
8519
8520 fi
8521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8522   cat >>confdefs.h <<_ACEOF
8523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8524 _ACEOF
8525
8526 fi
8527
8528 done
8529
8530 # Check whether --enable-ltdl-install was given.
8531 if test "${enable_ltdl_install+set}" = set; then
8532   enableval=$enable_ltdl_install;
8533 fi
8534
8535
8536
8537
8538 if test x"${enable_ltdl_install-no}" != xno; then
8539   INSTALL_LTDL_TRUE=
8540   INSTALL_LTDL_FALSE='#'
8541 else
8542   INSTALL_LTDL_TRUE='#'
8543   INSTALL_LTDL_FALSE=
8544 fi
8545
8546
8547
8548 if test x"${enable_ltdl_convenience-no}" != xno; then
8549   CONVENIENCE_LTDL_TRUE=
8550   CONVENIENCE_LTDL_FALSE='#'
8551 else
8552   CONVENIENCE_LTDL_TRUE='#'
8553   CONVENIENCE_LTDL_FALSE=
8554 fi
8555
8556
8557 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8558 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8559 library_names_spec=
8560 libname_spec='lib$name'
8561 soname_spec=
8562 shrext_cmds=".so"
8563 postinstall_cmds=
8564 postuninstall_cmds=
8565 finish_cmds=
8566 finish_eval=
8567 shlibpath_var=
8568 shlibpath_overrides_runpath=unknown
8569 version_type=none
8570 dynamic_linker="$host_os ld.so"
8571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8572 if test "$GCC" = yes; then
8573   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8574   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8575     # if the path contains ";" then we assume it to be the separator
8576     # otherwise default to the standard path separator (i.e. ":") - it is
8577     # assumed that no part of a normal pathname contains ";" but that should
8578     # okay in the real world where ";" in dirpaths is itself problematic.
8579     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8580   else
8581     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8582   fi
8583 else
8584   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8585 fi
8586 need_lib_prefix=unknown
8587 hardcode_into_libs=no
8588
8589 # when you set need_version to no, make sure it does not cause -set_version
8590 # flags to be left without arguments
8591 need_version=unknown
8592
8593 case $host_os in
8594 aix3*)
8595   version_type=linux
8596   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8597   shlibpath_var=LIBPATH
8598
8599   # AIX 3 has no versioning support, so we append a major version to the name.
8600   soname_spec='${libname}${release}${shared_ext}$major'
8601   ;;
8602
8603 aix4* | aix5*)
8604   version_type=linux
8605   need_lib_prefix=no
8606   need_version=no
8607   hardcode_into_libs=yes
8608   if test "$host_cpu" = ia64; then
8609     # AIX 5 supports IA64
8610     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8611     shlibpath_var=LD_LIBRARY_PATH
8612   else
8613     # With GCC up to 2.95.x, collect2 would create an import file
8614     # for dependence libraries.  The import file would start with
8615     # the line `#! .'.  This would cause the generated library to
8616     # depend on `.', always an invalid library.  This was fixed in
8617     # development snapshots of GCC prior to 3.0.
8618     case $host_os in
8619       aix4 | aix4.[01] | aix4.[01].*)
8620       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8621            echo ' yes '
8622            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8623         :
8624       else
8625         can_build_shared=no
8626       fi
8627       ;;
8628     esac
8629     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8630     # soname into executable. Probably we can add versioning support to
8631     # collect2, so additional links can be useful in future.
8632     if test "$aix_use_runtimelinking" = yes; then
8633       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8634       # instead of lib<name>.a to let people know that these are not
8635       # typical AIX shared libraries.
8636       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8637     else
8638       # We preserve .a as extension for shared libraries through AIX4.2
8639       # and later when we are not doing run time linking.
8640       library_names_spec='${libname}${release}.a $libname.a'
8641       soname_spec='${libname}${release}${shared_ext}$major'
8642     fi
8643     shlibpath_var=LIBPATH
8644   fi
8645   ;;
8646
8647 amigaos*)
8648   library_names_spec='$libname.ixlibrary $libname.a'
8649   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8650   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'
8651   ;;
8652
8653 beos*)
8654   library_names_spec='${libname}${shared_ext}'
8655   dynamic_linker="$host_os ld.so"
8656   shlibpath_var=LIBRARY_PATH
8657   ;;
8658
8659 bsdi[45]*)
8660   version_type=linux
8661   need_version=no
8662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8663   soname_spec='${libname}${release}${shared_ext}$major'
8664   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8665   shlibpath_var=LD_LIBRARY_PATH
8666   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8667   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8668   # the default ld.so.conf also contains /usr/contrib/lib and
8669   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8670   # libtool to hard-code these into programs
8671   ;;
8672
8673 cygwin* | mingw* | pw32*)
8674   version_type=windows
8675   shrext_cmds=".dll"
8676   need_version=no
8677   need_lib_prefix=no
8678
8679   case $GCC,$host_os in
8680   yes,cygwin* | yes,mingw* | yes,pw32*)
8681     library_names_spec='$libname.dll.a'
8682     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8683     postinstall_cmds='base_file=`basename \${file}`~
8684       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8685       dldir=$destdir/`dirname \$dlpath`~
8686       test -d \$dldir || mkdir -p \$dldir~
8687       $install_prog $dir/$dlname \$dldir/$dlname~
8688       chmod a+x \$dldir/$dlname'
8689     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8690       dlpath=$dir/\$dldll~
8691        $rm \$dlpath'
8692     shlibpath_overrides_runpath=yes
8693
8694     case $host_os in
8695     cygwin*)
8696       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8697       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8698       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8699       ;;
8700     mingw*)
8701       # MinGW DLLs use traditional 'lib' prefix
8702       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8704       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8705         # It is most probably a Windows format PATH printed by
8706         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8707         # path with ; separators, and with drive letters. We can handle the
8708         # drive letters (cygwin fileutils understands them), so leave them,
8709         # especially as we might pass files found there to a mingw objdump,
8710         # which wouldn't understand a cygwinified path. Ahh.
8711         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8712       else
8713         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8714       fi
8715       ;;
8716     pw32*)
8717       # pw32 DLLs use 'pw' prefix rather than 'lib'
8718       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8719       ;;
8720     esac
8721     ;;
8722
8723   *)
8724     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8725     ;;
8726   esac
8727   dynamic_linker='Win32 ld.exe'
8728   # FIXME: first we should search . and the directory the executable is in
8729   shlibpath_var=PATH
8730   ;;
8731
8732 darwin* | rhapsody*)
8733   dynamic_linker="$host_os dyld"
8734   version_type=darwin
8735   need_lib_prefix=no
8736   need_version=no
8737   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8738   soname_spec='${libname}${release}${major}$shared_ext'
8739   shlibpath_overrides_runpath=yes
8740   shlibpath_var=DYLD_LIBRARY_PATH
8741   shrext_cmds='.dylib'
8742   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8743   if test "$GCC" = yes; then
8744     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"`
8745   else
8746     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8747   fi
8748   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8749   ;;
8750
8751 dgux*)
8752   version_type=linux
8753   need_lib_prefix=no
8754   need_version=no
8755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8756   soname_spec='${libname}${release}${shared_ext}$major'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   ;;
8759
8760 freebsd1.*)
8761   dynamic_linker=no
8762   ;;
8763
8764 kfreebsd*-gnu)
8765   version_type=linux
8766   need_lib_prefix=no
8767   need_version=no
8768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8769   soname_spec='${libname}${release}${shared_ext}$major'
8770   shlibpath_var=LD_LIBRARY_PATH
8771   shlibpath_overrides_runpath=no
8772   hardcode_into_libs=yes
8773   dynamic_linker='GNU ld.so'
8774   ;;
8775
8776 freebsd* | dragonfly*)
8777   # DragonFly does not have aout.  When/if they implement a new
8778   # versioning mechanism, adjust this.
8779   if test -x /usr/bin/objformat; then
8780     objformat=`/usr/bin/objformat`
8781   else
8782     case $host_os in
8783     freebsd[123].*) objformat=aout ;;
8784     *) objformat=elf ;;
8785     esac
8786   fi
8787   version_type=freebsd-$objformat
8788   case $version_type in
8789     freebsd-elf*)
8790       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8791       need_version=no
8792       need_lib_prefix=no
8793       ;;
8794     freebsd-*)
8795       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8796       need_version=yes
8797       ;;
8798   esac
8799   shlibpath_var=LD_LIBRARY_PATH
8800   case $host_os in
8801   freebsd2.*)
8802     shlibpath_overrides_runpath=yes
8803     ;;
8804   freebsd3.[01]* | freebsdelf3.[01]*)
8805     shlibpath_overrides_runpath=yes
8806     hardcode_into_libs=yes
8807     ;;
8808   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8809   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8810     shlibpath_overrides_runpath=no
8811     hardcode_into_libs=yes
8812     ;;
8813   freebsd*) # from 4.6 on
8814     shlibpath_overrides_runpath=yes
8815     hardcode_into_libs=yes
8816     ;;
8817   esac
8818   ;;
8819
8820 gnu*)
8821   version_type=linux
8822   need_lib_prefix=no
8823   need_version=no
8824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8825   soname_spec='${libname}${release}${shared_ext}$major'
8826   shlibpath_var=LD_LIBRARY_PATH
8827   hardcode_into_libs=yes
8828   ;;
8829
8830 hpux9* | hpux10* | hpux11*)
8831   # Give a soname corresponding to the major version so that dld.sl refuses to
8832   # link against other versions.
8833   version_type=sunos
8834   need_lib_prefix=no
8835   need_version=no
8836   case $host_cpu in
8837   ia64*)
8838     shrext_cmds='.so'
8839     hardcode_into_libs=yes
8840     dynamic_linker="$host_os dld.so"
8841     shlibpath_var=LD_LIBRARY_PATH
8842     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844     soname_spec='${libname}${release}${shared_ext}$major'
8845     if test "X$HPUX_IA64_MODE" = X32; then
8846       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8847     else
8848       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8849     fi
8850     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8851     ;;
8852    hppa*64*)
8853      shrext_cmds='.sl'
8854      hardcode_into_libs=yes
8855      dynamic_linker="$host_os dld.sl"
8856      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8857      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859      soname_spec='${libname}${release}${shared_ext}$major'
8860      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8861      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862      ;;
8863    *)
8864     shrext_cmds='.sl'
8865     dynamic_linker="$host_os dld.sl"
8866     shlibpath_var=SHLIB_PATH
8867     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869     soname_spec='${libname}${release}${shared_ext}$major'
8870     ;;
8871   esac
8872   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8873   postinstall_cmds='chmod 555 $lib'
8874   ;;
8875
8876 interix3*)
8877   version_type=linux
8878   need_lib_prefix=no
8879   need_version=no
8880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881   soname_spec='${libname}${release}${shared_ext}$major'
8882   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8883   shlibpath_var=LD_LIBRARY_PATH
8884   shlibpath_overrides_runpath=no
8885   hardcode_into_libs=yes
8886   ;;
8887
8888 irix5* | irix6* | nonstopux*)
8889   case $host_os in
8890     nonstopux*) version_type=nonstopux ;;
8891     *)
8892         if test "$lt_cv_prog_gnu_ld" = yes; then
8893                 version_type=linux
8894         else
8895                 version_type=irix
8896         fi ;;
8897   esac
8898   need_lib_prefix=no
8899   need_version=no
8900   soname_spec='${libname}${release}${shared_ext}$major'
8901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8902   case $host_os in
8903   irix5* | nonstopux*)
8904     libsuff= shlibsuff=
8905     ;;
8906   *)
8907     case $LD in # libtool.m4 will add one of these switches to LD
8908     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8909       libsuff= shlibsuff= libmagic=32-bit;;
8910     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8911       libsuff=32 shlibsuff=N32 libmagic=N32;;
8912     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8913       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8914     *) libsuff= shlibsuff= libmagic=never-match;;
8915     esac
8916     ;;
8917   esac
8918   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8919   shlibpath_overrides_runpath=no
8920   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8921   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8922   hardcode_into_libs=yes
8923   ;;
8924
8925 # No shared lib support for Linux oldld, aout, or coff.
8926 linux*oldld* | linux*aout* | linux*coff*)
8927   dynamic_linker=no
8928   ;;
8929
8930 # This must be Linux ELF.
8931 linux*)
8932   version_type=linux
8933   need_lib_prefix=no
8934   need_version=no
8935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936   soname_spec='${libname}${release}${shared_ext}$major'
8937   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8938   shlibpath_var=LD_LIBRARY_PATH
8939   shlibpath_overrides_runpath=no
8940   # This implies no fast_install, which is unacceptable.
8941   # Some rework will be needed to allow for fast_install
8942   # before this can be enabled.
8943   hardcode_into_libs=yes
8944
8945   # Append ld.so.conf contents to the search path
8946   if test -f /etc/ld.so.conf; then
8947     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' ' '`
8948     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8949   fi
8950
8951   # We used to test for /lib/ld.so.1 and disable shared libraries on
8952   # powerpc, because MkLinux only supported shared libraries with the
8953   # GNU dynamic linker.  Since this was broken with cross compilers,
8954   # most powerpc-linux boxes support dynamic linking these days and
8955   # people can always --disable-shared, the test was removed, and we
8956   # assume the GNU/Linux dynamic linker is in use.
8957   dynamic_linker='GNU/Linux ld.so'
8958   ;;
8959
8960 knetbsd*-gnu)
8961   version_type=linux
8962   need_lib_prefix=no
8963   need_version=no
8964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8965   soname_spec='${libname}${release}${shared_ext}$major'
8966   shlibpath_var=LD_LIBRARY_PATH
8967   shlibpath_overrides_runpath=no
8968   hardcode_into_libs=yes
8969   dynamic_linker='GNU ld.so'
8970   ;;
8971
8972 netbsd*)
8973   version_type=sunos
8974   need_lib_prefix=no
8975   need_version=no
8976   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8978     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8979     dynamic_linker='NetBSD (a.out) ld.so'
8980   else
8981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8982     soname_spec='${libname}${release}${shared_ext}$major'
8983     dynamic_linker='NetBSD ld.elf_so'
8984   fi
8985   shlibpath_var=LD_LIBRARY_PATH
8986   shlibpath_overrides_runpath=yes
8987   hardcode_into_libs=yes
8988   ;;
8989
8990 newsos6)
8991   version_type=linux
8992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993   shlibpath_var=LD_LIBRARY_PATH
8994   shlibpath_overrides_runpath=yes
8995   ;;
8996
8997 nto-qnx*)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002   soname_spec='${libname}${release}${shared_ext}$major'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   shlibpath_overrides_runpath=yes
9005   ;;
9006
9007 openbsd* | bitrig*)
9008   version_type=sunos
9009   sys_lib_dlsearch_path_spec="/usr/lib"
9010   need_lib_prefix=no
9011   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9012   case $host_os in
9013     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9014     *)                         need_version=no  ;;
9015   esac
9016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9018   shlibpath_var=LD_LIBRARY_PATH
9019   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9020     case $host_os in
9021       openbsd2.[89] | openbsd2.[89].*)
9022         shlibpath_overrides_runpath=no
9023         ;;
9024       *)
9025         shlibpath_overrides_runpath=yes
9026         ;;
9027       esac
9028   else
9029     shlibpath_overrides_runpath=yes
9030   fi
9031   ;;
9032
9033 os2*)
9034   libname_spec='$name'
9035   shrext_cmds=".dll"
9036   need_lib_prefix=no
9037   library_names_spec='$libname${shared_ext} $libname.a'
9038   dynamic_linker='OS/2 ld.exe'
9039   shlibpath_var=LIBPATH
9040   ;;
9041
9042 osf3* | osf4* | osf5*)
9043   version_type=osf
9044   need_lib_prefix=no
9045   need_version=no
9046   soname_spec='${libname}${release}${shared_ext}$major'
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048   shlibpath_var=LD_LIBRARY_PATH
9049   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9050   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9051   ;;
9052
9053 solaris*)
9054   version_type=linux
9055   need_lib_prefix=no
9056   need_version=no
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058   soname_spec='${libname}${release}${shared_ext}$major'
9059   shlibpath_var=LD_LIBRARY_PATH
9060   shlibpath_overrides_runpath=yes
9061   hardcode_into_libs=yes
9062   # ldd complains unless libraries are executable
9063   postinstall_cmds='chmod +x $lib'
9064   ;;
9065
9066 sunos4*)
9067   version_type=sunos
9068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9069   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9070   shlibpath_var=LD_LIBRARY_PATH
9071   shlibpath_overrides_runpath=yes
9072   if test "$with_gnu_ld" = yes; then
9073     need_lib_prefix=no
9074   fi
9075   need_version=yes
9076   ;;
9077
9078 sysv4 | sysv4.3*)
9079   version_type=linux
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081   soname_spec='${libname}${release}${shared_ext}$major'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   case $host_vendor in
9084     sni)
9085       shlibpath_overrides_runpath=no
9086       need_lib_prefix=no
9087       export_dynamic_flag_spec='${wl}-Blargedynsym'
9088       runpath_var=LD_RUN_PATH
9089       ;;
9090     siemens)
9091       need_lib_prefix=no
9092       ;;
9093     motorola)
9094       need_lib_prefix=no
9095       need_version=no
9096       shlibpath_overrides_runpath=no
9097       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9098       ;;
9099   esac
9100   ;;
9101
9102 sysv4*MP*)
9103   if test -d /usr/nec ;then
9104     version_type=linux
9105     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9106     soname_spec='$libname${shared_ext}.$major'
9107     shlibpath_var=LD_LIBRARY_PATH
9108   fi
9109   ;;
9110
9111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9112   version_type=freebsd-elf
9113   need_lib_prefix=no
9114   need_version=no
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   shlibpath_var=LD_LIBRARY_PATH
9118   hardcode_into_libs=yes
9119   if test "$with_gnu_ld" = yes; then
9120     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9121     shlibpath_overrides_runpath=no
9122   else
9123     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9124     shlibpath_overrides_runpath=yes
9125     case $host_os in
9126       sco3.2v5*)
9127         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9128         ;;
9129     esac
9130   fi
9131   sys_lib_dlsearch_path_spec='/usr/lib'
9132   ;;
9133
9134 uts4*)
9135   version_type=linux
9136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137   soname_spec='${libname}${release}${shared_ext}$major'
9138   shlibpath_var=LD_LIBRARY_PATH
9139   ;;
9140
9141 *)
9142   dynamic_linker=no
9143   ;;
9144 esac
9145 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9146 echo "${ECHO_T}$dynamic_linker" >&6; }
9147 test "$dynamic_linker" = no && can_build_shared=no
9148
9149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9150 if test "$GCC" = yes; then
9151   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9152 fi
9153
9154
9155 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9156 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9157 if test "${libltdl_cv_shlibext+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160
9161 module=yes
9162 eval libltdl_cv_shlibext=$shrext_cmds
9163
9164 fi
9165 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9166 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9167 if test -n "$libltdl_cv_shlibext"; then
9168
9169 cat >>confdefs.h <<_ACEOF
9170 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9171 _ACEOF
9172
9173 fi
9174
9175
9176 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9177 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9178 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   libltdl_cv_shlibpath_var="$shlibpath_var"
9182 fi
9183 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9184 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9185 if test -n "$libltdl_cv_shlibpath_var"; then
9186
9187 cat >>confdefs.h <<_ACEOF
9188 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9189 _ACEOF
9190
9191 fi
9192
9193
9194 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9195 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9196 if test "${libltdl_cv_sys_search_path+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9200 fi
9201 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9202 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9203 if test -n "$libltdl_cv_sys_search_path"; then
9204   sys_search_path=
9205   for dir in $libltdl_cv_sys_search_path; do
9206     if test -z "$sys_search_path"; then
9207       sys_search_path="$dir"
9208     else
9209       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9210     fi
9211   done
9212
9213 cat >>confdefs.h <<_ACEOF
9214 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9215 _ACEOF
9216
9217 fi
9218
9219 { echo "$as_me:$LINENO: checking for objdir" >&5
9220 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9221 if test "${libltdl_cv_objdir+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   libltdl_cv_objdir="$objdir"
9225   if test -n "$objdir"; then
9226     :
9227   else
9228     rm -f .libs 2>/dev/null
9229     mkdir .libs 2>/dev/null
9230     if test -d .libs; then
9231       libltdl_cv_objdir=.libs
9232     else
9233       # MS-DOS does not allow filenames that begin with a dot.
9234       libltdl_cv_objdir=_libs
9235     fi
9236   rmdir .libs 2>/dev/null
9237   fi
9238
9239 fi
9240 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9241 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9242
9243 cat >>confdefs.h <<_ACEOF
9244 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9245 _ACEOF
9246
9247
9248
9249
9250
9251
9252 # Check for command to grab the raw symbol name followed by C symbol from nm.
9253 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9254 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9255 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9256   echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258
9259 # These are sane defaults that work on at least a few old systems.
9260 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9261
9262 # Character class describing NM global symbol codes.
9263 symcode='[BCDEGRST]'
9264
9265 # Regexp to match symbols that can be accessed directly from C.
9266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9267
9268 # Transform an extracted symbol line into a proper C declaration
9269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9270
9271 # Transform an extracted symbol line into symbol name and symbol address
9272 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'"
9273
9274 # Define system-specific variables.
9275 case $host_os in
9276 aix*)
9277   symcode='[BCDT]'
9278   ;;
9279 cygwin* | mingw* | pw32*)
9280   symcode='[ABCDGISTW]'
9281   ;;
9282 hpux*) # Its linker distinguishes data from code symbols
9283   if test "$host_cpu" = ia64; then
9284     symcode='[ABCDEGRST]'
9285   fi
9286   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9287   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'"
9288   ;;
9289 linux*)
9290   if test "$host_cpu" = ia64; then
9291     symcode='[ABCDGIRSTW]'
9292     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9293     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'"
9294   fi
9295   ;;
9296 irix* | nonstopux*)
9297   symcode='[BCDEGRST]'
9298   ;;
9299 osf*)
9300   symcode='[BCDEGQRST]'
9301   ;;
9302 solaris*)
9303   symcode='[BDRT]'
9304   ;;
9305 sco3.2v5*)
9306   symcode='[DT]'
9307   ;;
9308 sysv4.2uw2*)
9309   symcode='[DT]'
9310   ;;
9311 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9312   symcode='[ABDT]'
9313   ;;
9314 sysv4)
9315   symcode='[DFNSTU]'
9316   ;;
9317 esac
9318
9319 # Handle CRLF in mingw tool chain
9320 opt_cr=
9321 case $build_os in
9322 mingw*)
9323   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9324   ;;
9325 esac
9326
9327 # If we're using GNU nm, then use its standard symbol codes.
9328 case `$NM -V 2>&1` in
9329 *GNU* | *'with BFD'*)
9330   symcode='[ABCDGIRSTW]' ;;
9331 esac
9332
9333 # Try without a prefix undercore, then with it.
9334 for ac_symprfx in "" "_"; do
9335
9336   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9337   symxfrm="\\1 $ac_symprfx\\2 \\2"
9338
9339   # Write the raw and C identifiers.
9340   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9341
9342   # Check to see that the pipe works correctly.
9343   pipe_works=no
9344
9345   rm -f conftest*
9346   cat > conftest.$ac_ext <<EOF
9347 #ifdef __cplusplus
9348 extern "C" {
9349 #endif
9350 char nm_test_var;
9351 void nm_test_func(){}
9352 #ifdef __cplusplus
9353 }
9354 #endif
9355 int main(){nm_test_var='a';nm_test_func();return(0);}
9356 EOF
9357
9358   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9359   (eval $ac_compile) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; then
9363     # Now try to grab the symbols.
9364     nlist=conftest.nm
9365     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9366   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } && test -s "$nlist"; then
9370       # Try sorting and uniquifying the output.
9371       if sort "$nlist" | uniq > "$nlist"T; then
9372         mv -f "$nlist"T "$nlist"
9373       else
9374         rm -f "$nlist"T
9375       fi
9376
9377       # Make sure that we snagged all the symbols we need.
9378       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9379         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9380           cat <<EOF > conftest.$ac_ext
9381 #ifdef __cplusplus
9382 extern "C" {
9383 #endif
9384
9385 EOF
9386           # Now generate the symbol file.
9387           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9388
9389           cat <<EOF >> conftest.$ac_ext
9390 #if defined (__STDC__) && __STDC__
9391 # define lt_ptr_t void *
9392 #else
9393 # define lt_ptr_t char *
9394 # define const
9395 #endif
9396
9397 /* The mapping between symbol names and symbols. */
9398 const struct {
9399   const char *name;
9400   lt_ptr_t address;
9401 }
9402 lt_preloaded_symbols[] =
9403 {
9404 EOF
9405           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9406           cat <<\EOF >> conftest.$ac_ext
9407   {0, (lt_ptr_t) 0}
9408 };
9409
9410 #ifdef __cplusplus
9411 }
9412 #endif
9413 EOF
9414           # Now try linking the two files.
9415           mv conftest.$ac_objext conftstm.$ac_objext
9416           lt_save_LIBS="$LIBS"
9417           lt_save_CFLAGS="$CFLAGS"
9418           LIBS="conftstm.$ac_objext"
9419           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9420           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421   (eval $ac_link) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9425             pipe_works=yes
9426           fi
9427           LIBS="$lt_save_LIBS"
9428           CFLAGS="$lt_save_CFLAGS"
9429         else
9430           echo "cannot find nm_test_func in $nlist" >&5
9431         fi
9432       else
9433         echo "cannot find nm_test_var in $nlist" >&5
9434       fi
9435     else
9436       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9437     fi
9438   else
9439     echo "$progname: failed program was:" >&5
9440     cat conftest.$ac_ext >&5
9441   fi
9442   rm -f conftest* conftst*
9443
9444   # Do not use the global_symbol_pipe unless it works.
9445   if test "$pipe_works" = yes; then
9446     break
9447   else
9448     lt_cv_sys_global_symbol_pipe=
9449   fi
9450 done
9451
9452 fi
9453
9454 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9455   lt_cv_sys_global_symbol_to_cdecl=
9456 fi
9457 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9458   { echo "$as_me:$LINENO: result: failed" >&5
9459 echo "${ECHO_T}failed" >&6; }
9460 else
9461   { echo "$as_me:$LINENO: result: ok" >&5
9462 echo "${ECHO_T}ok" >&6; }
9463 fi
9464
9465
9466 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9467 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9468 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9472     libltdl_cv_preloaded_symbols=yes
9473   else
9474     libltdl_cv_preloaded_symbols=no
9475   fi
9476
9477 fi
9478 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9479 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9480 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9481
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_PRELOADED_SYMBOLS 1
9484 _ACEOF
9485
9486 fi
9487
9488 LIBADD_DL=
9489
9490 ac_ext=c
9491 ac_cpp='$CPP $CPPFLAGS'
9492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9495
9496
9497 { echo "$as_me:$LINENO: checking for shl_load" >&5
9498 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9499 if test "${ac_cv_func_shl_load+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h.  */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h.  */
9508 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9510 #define shl_load innocuous_shl_load
9511
9512 /* System header to define __stub macros and hopefully few prototypes,
9513     which can conflict with char shl_load (); below.
9514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9515     <limits.h> exists even on freestanding compilers.  */
9516
9517 #ifdef __STDC__
9518 # include <limits.h>
9519 #else
9520 # include <assert.h>
9521 #endif
9522
9523 #undef shl_load
9524
9525 /* Override any GCC internal prototype to avoid an error.
9526    Use char because int might match the return type of a GCC
9527    builtin and then its argument prototype would still apply.  */
9528 #ifdef __cplusplus
9529 extern "C"
9530 #endif
9531 char shl_load ();
9532 /* The GNU C library defines this for functions which it implements
9533     to always fail with ENOSYS.  Some functions are actually named
9534     something starting with __ and the normal name is an alias.  */
9535 #if defined __stub_shl_load || defined __stub___shl_load
9536 choke me
9537 #endif
9538
9539 int
9540 main ()
9541 {
9542 return shl_load ();
9543   ;
9544   return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (ac_try="$ac_link"
9549 case "(($ac_try" in
9550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551   *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554   (eval "$ac_link") 2>conftest.er1
9555   ac_status=$?
9556   grep -v '^ *+' conftest.er1 >conftest.err
9557   rm -f conftest.er1
9558   cat conftest.err >&5
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); } &&
9561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9562   { (case "(($ac_try" in
9563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564   *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567   (eval "$ac_try") 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; } &&
9571          { ac_try='test -s conftest$ac_exeext'
9572   { (case "(($ac_try" in
9573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574   *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577   (eval "$ac_try") 2>&5
9578   ac_status=$?
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); }; }; then
9581   ac_cv_func_shl_load=yes
9582 else
9583   echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586         ac_cv_func_shl_load=no
9587 fi
9588
9589 rm -f core conftest.err conftest.$ac_objext \
9590       conftest$ac_exeext conftest.$ac_ext
9591 fi
9592 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9593 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9594 if test $ac_cv_func_shl_load = yes; then
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_SHL_LOAD 1
9598 _ACEOF
9599
9600 else
9601   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606   ac_check_lib_save_LIBS=$LIBS
9607 LIBS="-ldld  $LIBS"
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614
9615 /* Override any GCC internal prototype to avoid an error.
9616    Use char because int might match the return type of a GCC
9617    builtin and then its argument prototype would still apply.  */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char shl_load ();
9622 int
9623 main ()
9624 {
9625 return shl_load ();
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9632 case "(($ac_try" in
9633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634   *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637   (eval "$ac_link") 2>conftest.er1
9638   ac_status=$?
9639   grep -v '^ *+' conftest.er1 >conftest.err
9640   rm -f conftest.er1
9641   cat conftest.err >&5
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); } &&
9644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645   { (case "(($ac_try" in
9646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647   *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650   (eval "$ac_try") 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); }; } &&
9654          { ac_try='test -s conftest$ac_exeext'
9655   { (case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_try") 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_cv_lib_dld_shl_load=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669         ac_cv_lib_dld_shl_load=no
9670 fi
9671
9672 rm -f core conftest.err conftest.$ac_objext \
9673       conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9678 if test $ac_cv_lib_dld_shl_load = yes; then
9679
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_SHL_LOAD 1
9682 _ACEOF
9683
9684         LIBADD_DL="$LIBADD_DL -ldld"
9685 else
9686   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   ac_check_lib_save_LIBS=$LIBS
9692 LIBS="-ldl  $LIBS"
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h.  */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h.  */
9699
9700 /* Override any GCC internal prototype to avoid an error.
9701    Use char because int might match the return type of a GCC
9702    builtin and then its argument prototype would still apply.  */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 char dlopen ();
9707 int
9708 main ()
9709 {
9710 return dlopen ();
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (ac_try="$ac_link"
9717 case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_link") 2>conftest.er1
9723   ac_status=$?
9724   grep -v '^ *+' conftest.er1 >conftest.err
9725   rm -f conftest.er1
9726   cat conftest.err >&5
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } &&
9729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9730   { (case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_try") 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; } &&
9739          { ac_try='test -s conftest$ac_exeext'
9740   { (case "(($ac_try" in
9741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742   *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745   (eval "$ac_try") 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; }; then
9749   ac_cv_lib_dl_dlopen=yes
9750 else
9751   echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9753
9754         ac_cv_lib_dl_dlopen=no
9755 fi
9756
9757 rm -f core conftest.err conftest.$ac_objext \
9758       conftest$ac_exeext conftest.$ac_ext
9759 LIBS=$ac_check_lib_save_LIBS
9760 fi
9761 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9762 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9763 if test $ac_cv_lib_dl_dlopen = yes; then
9764
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_LIBDL 1
9767 _ACEOF
9768
9769                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9770 else
9771   cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h.  */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h.  */
9777 #if HAVE_DLFCN_H
9778 #  include <dlfcn.h>
9779 #endif
9780
9781 int
9782 main ()
9783 {
9784 dlopen(0, 0);
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_link") 2>conftest.er1
9797   ac_status=$?
9798   grep -v '^ *+' conftest.er1 >conftest.err
9799   rm -f conftest.er1
9800   cat conftest.err >&5
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } &&
9803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804   { (case "(($ac_try" in
9805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806   *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809   (eval "$ac_try") 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); }; } &&
9813          { ac_try='test -s conftest$ac_exeext'
9814   { (case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_try") 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823
9824 cat >>confdefs.h <<\_ACEOF
9825 #define HAVE_LIBDL 1
9826 _ACEOF
9827  libltdl_cv_func_dlopen="yes"
9828 else
9829   echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9831
9832         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   ac_check_lib_save_LIBS=$LIBS
9838 LIBS="-lsvld  $LIBS"
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847    Use char because int might match the return type of a GCC
9848    builtin and then its argument prototype would still apply.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char dlopen ();
9853 int
9854 main ()
9855 {
9856 return dlopen ();
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_link") 2>conftest.er1
9869   ac_status=$?
9870   grep -v '^ *+' conftest.er1 >conftest.err
9871   rm -f conftest.er1
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; } &&
9885          { ac_try='test -s conftest$ac_exeext'
9886   { (case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_try") 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; }; then
9895   ac_cv_lib_svld_dlopen=yes
9896 else
9897   echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900         ac_cv_lib_svld_dlopen=no
9901 fi
9902
9903 rm -f core conftest.err conftest.$ac_objext \
9904       conftest$ac_exeext conftest.$ac_ext
9905 LIBS=$ac_check_lib_save_LIBS
9906 fi
9907 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9909 if test $ac_cv_lib_svld_dlopen = yes; then
9910
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_LIBDL 1
9913 _ACEOF
9914
9915                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9916 else
9917   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-ldld  $LIBS"
9924 cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h.  */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h.  */
9930
9931 /* Override any GCC internal prototype to avoid an error.
9932    Use char because int might match the return type of a GCC
9933    builtin and then its argument prototype would still apply.  */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 char dld_link ();
9938 int
9939 main ()
9940 {
9941 return dld_link ();
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_link") 2>conftest.er1
9954   ac_status=$?
9955   grep -v '^ *+' conftest.er1 >conftest.err
9956   rm -f conftest.er1
9957   cat conftest.err >&5
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } &&
9960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961   { (case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_try") 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (case "(($ac_try" in
9972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973   *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976   (eval "$ac_try") 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_cv_lib_dld_dld_link=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985         ac_cv_lib_dld_dld_link=no
9986 fi
9987
9988 rm -f core conftest.err conftest.$ac_objext \
9989       conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9991 fi
9992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9993 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9994 if test $ac_cv_lib_dld_dld_link = yes; then
9995
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_DLD 1
9998 _ACEOF
9999
10000                 LIBADD_DL="$LIBADD_DL -ldld"
10001 else
10002   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10003 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10004 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10005   echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007   cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10015 #define _dyld_func_lookup innocuous__dyld_func_lookup
10016
10017 /* System header to define __stub macros and hopefully few prototypes,
10018     which can conflict with char _dyld_func_lookup (); below.
10019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10020     <limits.h> exists even on freestanding compilers.  */
10021
10022 #ifdef __STDC__
10023 # include <limits.h>
10024 #else
10025 # include <assert.h>
10026 #endif
10027
10028 #undef _dyld_func_lookup
10029
10030 /* Override any GCC internal prototype to avoid an error.
10031    Use char because int might match the return type of a GCC
10032    builtin and then its argument prototype would still apply.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char _dyld_func_lookup ();
10037 /* The GNU C library defines this for functions which it implements
10038     to always fail with ENOSYS.  Some functions are actually named
10039     something starting with __ and the normal name is an alias.  */
10040 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10041 choke me
10042 #endif
10043
10044 int
10045 main ()
10046 {
10047 return _dyld_func_lookup ();
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_link") 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10067   { (case "(($ac_try" in
10068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069   *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072   (eval "$ac_try") 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; } &&
10076          { ac_try='test -s conftest$ac_exeext'
10077   { (case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_try") 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; }; then
10086   ac_cv_func__dyld_func_lookup=yes
10087 else
10088   echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091         ac_cv_func__dyld_func_lookup=no
10092 fi
10093
10094 rm -f core conftest.err conftest.$ac_objext \
10095       conftest$ac_exeext conftest.$ac_ext
10096 fi
10097 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10098 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10099 if test $ac_cv_func__dyld_func_lookup = yes; then
10100
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_DYLD 1
10103 _ACEOF
10104
10105 fi
10106
10107
10108 fi
10109
10110
10111 fi
10112
10113
10114 fi
10115
10116 rm -f core conftest.err conftest.$ac_objext \
10117       conftest$ac_exeext conftest.$ac_ext
10118
10119 fi
10120
10121
10122 fi
10123
10124
10125 fi
10126
10127
10128 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10129 then
10130   lt_save_LIBS="$LIBS"
10131   LIBS="$LIBS $LIBADD_DL"
10132
10133 for ac_func in dlerror
10134 do
10135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10139   echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141   cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h.  */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h.  */
10147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10149 #define $ac_func innocuous_$ac_func
10150
10151 /* System header to define __stub macros and hopefully few prototypes,
10152     which can conflict with char $ac_func (); below.
10153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10154     <limits.h> exists even on freestanding compilers.  */
10155
10156 #ifdef __STDC__
10157 # include <limits.h>
10158 #else
10159 # include <assert.h>
10160 #endif
10161
10162 #undef $ac_func
10163
10164 /* Override any GCC internal prototype to avoid an error.
10165    Use char because int might match the return type of a GCC
10166    builtin and then its argument prototype would still apply.  */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char $ac_func ();
10171 /* The GNU C library defines this for functions which it implements
10172     to always fail with ENOSYS.  Some functions are actually named
10173     something starting with __ and the normal name is an alias.  */
10174 #if defined __stub_$ac_func || defined __stub___$ac_func
10175 choke me
10176 #endif
10177
10178 int
10179 main ()
10180 {
10181 return $ac_func ();
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193   (eval "$ac_link") 2>conftest.er1
10194   ac_status=$?
10195   grep -v '^ *+' conftest.er1 >conftest.err
10196   rm -f conftest.er1
10197   cat conftest.err >&5
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10201   { (case "(($ac_try" in
10202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203   *) ac_try_echo=$ac_try;;
10204 esac
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206   (eval "$ac_try") 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }; } &&
10210          { ac_try='test -s conftest$ac_exeext'
10211   { (case "(($ac_try" in
10212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213   *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216   (eval "$ac_try") 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; }; then
10220   eval "$as_ac_var=yes"
10221 else
10222   echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225         eval "$as_ac_var=no"
10226 fi
10227
10228 rm -f core conftest.err conftest.$ac_objext \
10229       conftest$ac_exeext conftest.$ac_ext
10230 fi
10231 ac_res=`eval echo '${'$as_ac_var'}'`
10232                { echo "$as_me:$LINENO: result: $ac_res" >&5
10233 echo "${ECHO_T}$ac_res" >&6; }
10234 if test `eval echo '${'$as_ac_var'}'` = yes; then
10235   cat >>confdefs.h <<_ACEOF
10236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10237 _ACEOF
10238
10239 fi
10240 done
10241
10242   LIBS="$lt_save_LIBS"
10243 fi
10244 ac_ext=c
10245 ac_cpp='$CPP $CPPFLAGS'
10246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10249
10250
10251
10252 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10253 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10254 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10255   echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257   ac_cv_sys_symbol_underscore=no
10258   cat > conftest.$ac_ext <<EOF
10259 void nm_test_func(){}
10260 int main(){nm_test_func;return 0;}
10261 EOF
10262   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263   (eval $ac_compile) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; then
10267     # Now try to grab the symbols.
10268     ac_nlist=conftest.nm
10269     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10270   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); } && test -s "$ac_nlist"; then
10274       # See whether the symbols have a leading underscore.
10275       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10276         ac_cv_sys_symbol_underscore=yes
10277       else
10278         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10279           :
10280         else
10281           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10282         fi
10283       fi
10284     else
10285       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10286     fi
10287   else
10288     echo "configure: failed program was:" >&5
10289     cat conftest.c >&5
10290   fi
10291   rm -rf conftest*
10292
10293 fi
10294 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10295 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10296
10297
10298 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10299   if test x"$libltdl_cv_func_dlopen" = xyes ||
10300      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10301         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10302 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10303 if test "${libltdl_cv_need_uscore+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   libltdl_cv_need_uscore=unknown
10307           save_LIBS="$LIBS"
10308           LIBS="$LIBS $LIBADD_DL"
10309           if test "$cross_compiling" = yes; then :
10310   libltdl_cv_need_uscore=cross
10311 else
10312   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313   lt_status=$lt_dlunknown
10314   cat > conftest.$ac_ext <<EOF
10315 #line 10315 "configure"
10316 #include "confdefs.h"
10317
10318 #if HAVE_DLFCN_H
10319 #include <dlfcn.h>
10320 #endif
10321
10322 #include <stdio.h>
10323
10324 #ifdef RTLD_GLOBAL
10325 #  define LT_DLGLOBAL           RTLD_GLOBAL
10326 #else
10327 #  ifdef DL_GLOBAL
10328 #    define LT_DLGLOBAL         DL_GLOBAL
10329 #  else
10330 #    define LT_DLGLOBAL         0
10331 #  endif
10332 #endif
10333
10334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10335    find out it does not work in some platform. */
10336 #ifndef LT_DLLAZY_OR_NOW
10337 #  ifdef RTLD_LAZY
10338 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10339 #  else
10340 #    ifdef DL_LAZY
10341 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10342 #    else
10343 #      ifdef RTLD_NOW
10344 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10345 #      else
10346 #        ifdef DL_NOW
10347 #          define LT_DLLAZY_OR_NOW      DL_NOW
10348 #        else
10349 #          define LT_DLLAZY_OR_NOW      0
10350 #        endif
10351 #      endif
10352 #    endif
10353 #  endif
10354 #endif
10355
10356 #ifdef __cplusplus
10357 extern "C" void exit (int);
10358 #endif
10359
10360 void fnord() { int i=42;}
10361 int main ()
10362 {
10363   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10364   int status = $lt_dlunknown;
10365
10366   if (self)
10367     {
10368       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10369       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370       /* dlclose (self); */
10371     }
10372   else
10373     puts (dlerror ());
10374
10375     exit (status);
10376 }
10377 EOF
10378   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379   (eval $ac_link) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10383     (./conftest; exit; ) >&5 2>/dev/null
10384     lt_status=$?
10385     case x$lt_status in
10386       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10387       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10388       x$lt_dlunknown|x*)  ;;
10389     esac
10390   else :
10391     # compilation failed
10392
10393   fi
10394 fi
10395 rm -fr conftest*
10396
10397           LIBS="$save_LIBS"
10398
10399 fi
10400 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10401 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10402   fi
10403 fi
10404
10405 if test x"$libltdl_cv_need_uscore" = xyes; then
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define NEED_USCORE 1
10409 _ACEOF
10410
10411 fi
10412
10413
10414 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10415 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10416 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   # PORTME does your system automatically load deplibs for dlopen?
10420   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10421   # For now, we just catch OSes we know something about -- in the
10422   # future, we'll try test this programmatically.
10423   libltdl_cv_sys_dlopen_deplibs=unknown
10424   case "$host_os" in
10425   aix3*|aix4.1.*|aix4.2.*)
10426     # Unknown whether this is true for these versions of AIX, but
10427     # we want this `case' here to explicitly catch those versions.
10428     libltdl_cv_sys_dlopen_deplibs=unknown
10429     ;;
10430   aix[45]*)
10431     libltdl_cv_sys_dlopen_deplibs=yes
10432     ;;
10433   darwin*)
10434     # Assuming the user has installed a libdl from somewhere, this is true
10435     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10436     libltdl_cv_sys_dlopen_deplibs=yes
10437     ;;
10438   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10439     # GNU and its variants, using gnu ld.so (Glibc)
10440     libltdl_cv_sys_dlopen_deplibs=yes
10441     ;;
10442   hpux10*|hpux11*)
10443     libltdl_cv_sys_dlopen_deplibs=yes
10444     ;;
10445   interix*)
10446     libltdl_cv_sys_dlopen_deplibs=yes
10447     ;;
10448   irix[12345]*|irix6.[01]*)
10449     # Catch all versions of IRIX before 6.2, and indicate that we don't
10450     # know how it worked for any of those versions.
10451     libltdl_cv_sys_dlopen_deplibs=unknown
10452     ;;
10453   irix*)
10454     # The case above catches anything before 6.2, and it's known that
10455     # at 6.2 and later dlopen does load deplibs.
10456     libltdl_cv_sys_dlopen_deplibs=yes
10457     ;;
10458   netbsd*)
10459     libltdl_cv_sys_dlopen_deplibs=yes
10460     ;;
10461   openbsd*)
10462     libltdl_cv_sys_dlopen_deplibs=yes
10463     ;;
10464   osf[1234]*)
10465     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10466     # it did *not* use an RPATH in a shared library to find objects the
10467     # library depends on, so we explicitly say `no'.
10468     libltdl_cv_sys_dlopen_deplibs=no
10469     ;;
10470   osf5.0|osf5.0a|osf5.1)
10471     # dlopen *does* load deplibs and with the right loader patch applied
10472     # it even uses RPATH in a shared library to search for shared objects
10473     # that the library depends on, but there's no easy way to know if that
10474     # patch is installed.  Since this is the case, all we can really
10475     # say is unknown -- it depends on the patch being installed.  If
10476     # it is, this changes to `yes'.  Without it, it would be `no'.
10477     libltdl_cv_sys_dlopen_deplibs=unknown
10478     ;;
10479   osf*)
10480     # the two cases above should catch all versions of osf <= 5.1.  Read
10481     # the comments above for what we know about them.
10482     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10483     # is used to find them so we can finally say `yes'.
10484     libltdl_cv_sys_dlopen_deplibs=yes
10485     ;;
10486   solaris*)
10487     libltdl_cv_sys_dlopen_deplibs=yes
10488     ;;
10489   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10490     libltdl_cv_sys_dlopen_deplibs=yes
10491     ;;
10492   esac
10493
10494 fi
10495 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10496 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10497 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10498
10499 cat >>confdefs.h <<\_ACEOF
10500 #define LTDL_DLOPEN_DEPLIBS 1
10501 _ACEOF
10502
10503 fi
10504
10505
10506 for ac_header in argz.h
10507 do
10508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10510   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10513   echo $ECHO_N "(cached) $ECHO_C" >&6
10514 fi
10515 ac_res=`eval echo '${'$as_ac_Header'}'`
10516                { echo "$as_me:$LINENO: result: $ac_res" >&5
10517 echo "${ECHO_T}$ac_res" >&6; }
10518 else
10519   # Is the header compilable?
10520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528 $ac_includes_default
10529 #include <$ac_header>
10530 _ACEOF
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535   *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538   (eval "$ac_compile") 2>conftest.er1
10539   ac_status=$?
10540   grep -v '^ *+' conftest.er1 >conftest.err
10541   rm -f conftest.er1
10542   cat conftest.err >&5
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546   { (case "(($ac_try" in
10547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548   *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551   (eval "$ac_try") 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; } &&
10555          { ac_try='test -s conftest.$ac_objext'
10556   { (case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_try") 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565   ac_header_compiler=yes
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570         ac_header_compiler=no
10571 fi
10572
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575 echo "${ECHO_T}$ac_header_compiler" >&6; }
10576
10577 # Is the header present?
10578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586 #include <$ac_header>
10587 _ACEOF
10588 if { (ac_try="$ac_cpp conftest.$ac_ext"
10589 case "(($ac_try" in
10590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591   *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10595   ac_status=$?
10596   grep -v '^ *+' conftest.er1 >conftest.err
10597   rm -f conftest.er1
10598   cat conftest.err >&5
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } >/dev/null; then
10601   if test -s conftest.err; then
10602     ac_cpp_err=$ac_c_preproc_warn_flag
10603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10604   else
10605     ac_cpp_err=
10606   fi
10607 else
10608   ac_cpp_err=yes
10609 fi
10610 if test -z "$ac_cpp_err"; then
10611   ac_header_preproc=yes
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616   ac_header_preproc=no
10617 fi
10618
10619 rm -f conftest.err conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621 echo "${ECHO_T}$ac_header_preproc" >&6; }
10622
10623 # So?  What about this header?
10624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10625   yes:no: )
10626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10630     ac_header_preproc=yes
10631     ;;
10632   no:yes:* )
10633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10645     ( cat <<\_ASBOX
10646 ## ------------------------------------ ##
10647 ## Report this to http://llvm.org/bugs/ ##
10648 ## ------------------------------------ ##
10649 _ASBOX
10650      ) | sed "s/^/$as_me: WARNING:     /" >&2
10651     ;;
10652 esac
10653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   eval "$as_ac_Header=\$ac_header_preproc"
10659 fi
10660 ac_res=`eval echo '${'$as_ac_Header'}'`
10661                { echo "$as_me:$LINENO: result: $ac_res" >&5
10662 echo "${ECHO_T}$ac_res" >&6; }
10663
10664 fi
10665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10666   cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10668 _ACEOF
10669
10670 fi
10671
10672 done
10673
10674
10675 { echo "$as_me:$LINENO: checking for error_t" >&5
10676 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10677 if test "${ac_cv_type_error_t+set}" = set; then
10678   echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680   cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h.  */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h.  */
10686 #if HAVE_ARGZ_H
10687 #  include <argz.h>
10688 #endif
10689
10690 typedef error_t ac__type_new_;
10691 int
10692 main ()
10693 {
10694 if ((ac__type_new_ *) 0)
10695   return 0;
10696 if (sizeof (ac__type_new_))
10697   return 0;
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext
10703 if { (ac_try="$ac_compile"
10704 case "(($ac_try" in
10705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706   *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709   (eval "$ac_compile") 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } &&
10716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717   { (case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722   (eval "$ac_try") 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; } &&
10726          { ac_try='test -s conftest.$ac_objext'
10727   { (case "(($ac_try" in
10728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729   *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732   (eval "$ac_try") 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; }; then
10736   ac_cv_type_error_t=yes
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741         ac_cv_type_error_t=no
10742 fi
10743
10744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10745 fi
10746 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10747 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10748 if test $ac_cv_type_error_t = yes; then
10749
10750 cat >>confdefs.h <<_ACEOF
10751 #define HAVE_ERROR_T 1
10752 _ACEOF
10753
10754
10755 else
10756
10757 cat >>confdefs.h <<\_ACEOF
10758 #define error_t int
10759 _ACEOF
10760
10761 fi
10762
10763
10764
10765
10766
10767
10768
10769 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10770 do
10771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10785 #define $ac_func innocuous_$ac_func
10786
10787 /* System header to define __stub macros and hopefully few prototypes,
10788     which can conflict with char $ac_func (); below.
10789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10790     <limits.h> exists even on freestanding compilers.  */
10791
10792 #ifdef __STDC__
10793 # include <limits.h>
10794 #else
10795 # include <assert.h>
10796 #endif
10797
10798 #undef $ac_func
10799
10800 /* Override any GCC internal prototype to avoid an error.
10801    Use char because int might match the return type of a GCC
10802    builtin and then its argument prototype would still apply.  */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 char $ac_func ();
10807 /* The GNU C library defines this for functions which it implements
10808     to always fail with ENOSYS.  Some functions are actually named
10809     something starting with __ and the normal name is an alias.  */
10810 #if defined __stub_$ac_func || defined __stub___$ac_func
10811 choke me
10812 #endif
10813
10814 int
10815 main ()
10816 {
10817 return $ac_func ();
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826   *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829   (eval "$ac_link") 2>conftest.er1
10830   ac_status=$?
10831   grep -v '^ *+' conftest.er1 >conftest.err
10832   rm -f conftest.er1
10833   cat conftest.err >&5
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } &&
10836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10837   { (case "(($ac_try" in
10838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839   *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842   (eval "$ac_try") 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; } &&
10846          { ac_try='test -s conftest$ac_exeext'
10847   { (case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852   (eval "$ac_try") 2>&5
10853   ac_status=$?
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); }; }; then
10856   eval "$as_ac_var=yes"
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861         eval "$as_ac_var=no"
10862 fi
10863
10864 rm -f core conftest.err conftest.$ac_objext \
10865       conftest$ac_exeext conftest.$ac_ext
10866 fi
10867 ac_res=`eval echo '${'$as_ac_var'}'`
10868                { echo "$as_me:$LINENO: result: $ac_res" >&5
10869 echo "${ECHO_T}$ac_res" >&6; }
10870 if test `eval echo '${'$as_ac_var'}'` = yes; then
10871   cat >>confdefs.h <<_ACEOF
10872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10873 _ACEOF
10874
10875 fi
10876 done
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10906                   stdio.h unistd.h
10907 do
10908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913   echo $ECHO_N "(cached) $ECHO_C" >&6
10914 fi
10915 ac_res=`eval echo '${'$as_ac_Header'}'`
10916                { echo "$as_me:$LINENO: result: $ac_res" >&5
10917 echo "${ECHO_T}$ac_res" >&6; }
10918 else
10919   # Is the header compilable?
10920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 $ac_includes_default
10929 #include <$ac_header>
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938   (eval "$ac_compile") 2>conftest.er1
10939   ac_status=$?
10940   grep -v '^ *+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } &&
10945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946   { (case "(($ac_try" in
10947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948   *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951   (eval "$ac_try") 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; } &&
10955          { ac_try='test -s conftest.$ac_objext'
10956   { (case "(($ac_try" in
10957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958   *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961   (eval "$ac_try") 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }; }; then
10965   ac_header_compiler=yes
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970         ac_header_compiler=no
10971 fi
10972
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10975 echo "${ECHO_T}$ac_header_compiler" >&6; }
10976
10977 # Is the header present?
10978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986 #include <$ac_header>
10987 _ACEOF
10988 if { (ac_try="$ac_cpp conftest.$ac_ext"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } >/dev/null; then
11001   if test -s conftest.err; then
11002     ac_cpp_err=$ac_c_preproc_warn_flag
11003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11004   else
11005     ac_cpp_err=
11006   fi
11007 else
11008   ac_cpp_err=yes
11009 fi
11010 if test -z "$ac_cpp_err"; then
11011   ac_header_preproc=yes
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016   ac_header_preproc=no
11017 fi
11018
11019 rm -f conftest.err conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021 echo "${ECHO_T}$ac_header_preproc" >&6; }
11022
11023 # So?  What about this header?
11024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025   yes:no: )
11026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11030     ac_header_preproc=yes
11031     ;;
11032   no:yes:* )
11033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11045     ( cat <<\_ASBOX
11046 ## ------------------------------------ ##
11047 ## Report this to http://llvm.org/bugs/ ##
11048 ## ------------------------------------ ##
11049 _ASBOX
11050      ) | sed "s/^/$as_me: WARNING:     /" >&2
11051     ;;
11052 esac
11053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   eval "$as_ac_Header=\$ac_header_preproc"
11059 fi
11060 ac_res=`eval echo '${'$as_ac_Header'}'`
11061                { echo "$as_me:$LINENO: result: $ac_res" >&5
11062 echo "${ECHO_T}$ac_res" >&6; }
11063
11064 fi
11065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11066   cat >>confdefs.h <<_ACEOF
11067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11068 _ACEOF
11069
11070 fi
11071
11072 done
11073
11074
11075
11076
11077
11078 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11079 do
11080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11082   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 fi
11087 ac_res=`eval echo '${'$as_ac_Header'}'`
11088                { echo "$as_me:$LINENO: result: $ac_res" >&5
11089 echo "${ECHO_T}$ac_res" >&6; }
11090 else
11091   # Is the header compilable?
11092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h.  */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h.  */
11100 $ac_includes_default
11101 #include <$ac_header>
11102 _ACEOF
11103 rm -f conftest.$ac_objext
11104 if { (ac_try="$ac_compile"
11105 case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_compile") 2>conftest.er1
11111   ac_status=$?
11112   grep -v '^ *+' conftest.er1 >conftest.err
11113   rm -f conftest.er1
11114   cat conftest.err >&5
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); } &&
11117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11118   { (case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_try") 2>&5
11124   ac_status=$?
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); }; } &&
11127          { ac_try='test -s conftest.$ac_objext'
11128   { (case "(($ac_try" in
11129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130   *) ac_try_echo=$ac_try;;
11131 esac
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133   (eval "$ac_try") 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; }; then
11137   ac_header_compiler=yes
11138 else
11139   echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142         ac_header_compiler=no
11143 fi
11144
11145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11147 echo "${ECHO_T}$ac_header_compiler" >&6; }
11148
11149 # Is the header present?
11150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h.  */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h.  */
11158 #include <$ac_header>
11159 _ACEOF
11160 if { (ac_try="$ac_cpp conftest.$ac_ext"
11161 case "(($ac_try" in
11162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163   *) ac_try_echo=$ac_try;;
11164 esac
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11167   ac_status=$?
11168   grep -v '^ *+' conftest.er1 >conftest.err
11169   rm -f conftest.er1
11170   cat conftest.err >&5
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); } >/dev/null; then
11173   if test -s conftest.err; then
11174     ac_cpp_err=$ac_c_preproc_warn_flag
11175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11176   else
11177     ac_cpp_err=
11178   fi
11179 else
11180   ac_cpp_err=yes
11181 fi
11182 if test -z "$ac_cpp_err"; then
11183   ac_header_preproc=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188   ac_header_preproc=no
11189 fi
11190
11191 rm -f conftest.err conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11193 echo "${ECHO_T}$ac_header_preproc" >&6; }
11194
11195 # So?  What about this header?
11196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11197   yes:no: )
11198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11202     ac_header_preproc=yes
11203     ;;
11204   no:yes:* )
11205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11217     ( cat <<\_ASBOX
11218 ## ------------------------------------ ##
11219 ## Report this to http://llvm.org/bugs/ ##
11220 ## ------------------------------------ ##
11221 _ASBOX
11222      ) | sed "s/^/$as_me: WARNING:     /" >&2
11223     ;;
11224 esac
11225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228   echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230   eval "$as_ac_Header=\$ac_header_preproc"
11231 fi
11232 ac_res=`eval echo '${'$as_ac_Header'}'`
11233                { echo "$as_me:$LINENO: result: $ac_res" >&5
11234 echo "${ECHO_T}$ac_res" >&6; }
11235
11236 fi
11237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11238   cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11240 _ACEOF
11241
11242 fi
11243
11244 done
11245
11246
11247
11248 for ac_header in string.h strings.h
11249 do
11250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 fi
11257 ac_res=`eval echo '${'$as_ac_Header'}'`
11258                { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11260 else
11261   # Is the header compilable?
11262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 $ac_includes_default
11271 #include <$ac_header>
11272 _ACEOF
11273 rm -f conftest.$ac_objext
11274 if { (ac_try="$ac_compile"
11275 case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_compile") 2>conftest.er1
11281   ac_status=$?
11282   grep -v '^ *+' conftest.er1 >conftest.err
11283   rm -f conftest.er1
11284   cat conftest.err >&5
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); } &&
11287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11288   { (case "(($ac_try" in
11289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290   *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293   (eval "$ac_try") 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; } &&
11297          { ac_try='test -s conftest.$ac_objext'
11298   { (case "(($ac_try" in
11299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300   *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303   (eval "$ac_try") 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; }; then
11307   ac_header_compiler=yes
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312         ac_header_compiler=no
11313 fi
11314
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11318
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 #include <$ac_header>
11329 _ACEOF
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333   *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } >/dev/null; then
11343   if test -s conftest.err; then
11344     ac_cpp_err=$ac_c_preproc_warn_flag
11345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11346   else
11347     ac_cpp_err=
11348   fi
11349 else
11350   ac_cpp_err=yes
11351 fi
11352 if test -z "$ac_cpp_err"; then
11353   ac_header_preproc=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358   ac_header_preproc=no
11359 fi
11360
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11364
11365 # So?  What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11367   yes:no: )
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372     ac_header_preproc=yes
11373     ;;
11374   no:yes:* )
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11387     ( cat <<\_ASBOX
11388 ## ------------------------------------ ##
11389 ## Report this to http://llvm.org/bugs/ ##
11390 ## ------------------------------------ ##
11391 _ASBOX
11392      ) | sed "s/^/$as_me: WARNING:     /" >&2
11393     ;;
11394 esac
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   eval "$as_ac_Header=\$ac_header_preproc"
11401 fi
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403                { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11405
11406 fi
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408   cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11410 _ACEOF
11411  break
11412 fi
11413
11414 done
11415
11416
11417
11418
11419 for ac_func in strchr index
11420 do
11421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427   cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11435 #define $ac_func innocuous_$ac_func
11436
11437 /* System header to define __stub macros and hopefully few prototypes,
11438     which can conflict with char $ac_func (); below.
11439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11440     <limits.h> exists even on freestanding compilers.  */
11441
11442 #ifdef __STDC__
11443 # include <limits.h>
11444 #else
11445 # include <assert.h>
11446 #endif
11447
11448 #undef $ac_func
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451    Use char because int might match the return type of a GCC
11452    builtin and then its argument prototype would still apply.  */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char $ac_func ();
11457 /* The GNU C library defines this for functions which it implements
11458     to always fail with ENOSYS.  Some functions are actually named
11459     something starting with __ and the normal name is an alias.  */
11460 #if defined __stub_$ac_func || defined __stub___$ac_func
11461 choke me
11462 #endif
11463
11464 int
11465 main ()
11466 {
11467 return $ac_func ();
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (ac_try="$ac_link"
11474 case "(($ac_try" in
11475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476   *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479   (eval "$ac_link") 2>conftest.er1
11480   ac_status=$?
11481   grep -v '^ *+' conftest.er1 >conftest.err
11482   rm -f conftest.er1
11483   cat conftest.err >&5
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11487   { (case "(($ac_try" in
11488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489   *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492   (eval "$ac_try") 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }; } &&
11496          { ac_try='test -s conftest$ac_exeext'
11497   { (case "(($ac_try" in
11498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499   *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502   (eval "$ac_try") 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   eval "$as_ac_var=yes"
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11510
11511         eval "$as_ac_var=no"
11512 fi
11513
11514 rm -f core conftest.err conftest.$ac_objext \
11515       conftest$ac_exeext conftest.$ac_ext
11516 fi
11517 ac_res=`eval echo '${'$as_ac_var'}'`
11518                { echo "$as_me:$LINENO: result: $ac_res" >&5
11519 echo "${ECHO_T}$ac_res" >&6; }
11520 if test `eval echo '${'$as_ac_var'}'` = yes; then
11521   cat >>confdefs.h <<_ACEOF
11522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11523 _ACEOF
11524  break
11525 fi
11526 done
11527
11528
11529
11530 for ac_func in strrchr rindex
11531 do
11532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11546 #define $ac_func innocuous_$ac_func
11547
11548 /* System header to define __stub macros and hopefully few prototypes,
11549     which can conflict with char $ac_func (); below.
11550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11551     <limits.h> exists even on freestanding compilers.  */
11552
11553 #ifdef __STDC__
11554 # include <limits.h>
11555 #else
11556 # include <assert.h>
11557 #endif
11558
11559 #undef $ac_func
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562    Use char because int might match the return type of a GCC
11563    builtin and then its argument prototype would still apply.  */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char $ac_func ();
11568 /* The GNU C library defines this for functions which it implements
11569     to always fail with ENOSYS.  Some functions are actually named
11570     something starting with __ and the normal name is an alias.  */
11571 #if defined __stub_$ac_func || defined __stub___$ac_func
11572 choke me
11573 #endif
11574
11575 int
11576 main ()
11577 {
11578 return $ac_func ();
11579   ;
11580   return 0;
11581 }
11582 _ACEOF
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (ac_try="$ac_link"
11585 case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_link") 2>conftest.er1
11591   ac_status=$?
11592   grep -v '^ *+' conftest.er1 >conftest.err
11593   rm -f conftest.er1
11594   cat conftest.err >&5
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); } &&
11597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11598   { (case "(($ac_try" in
11599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600   *) ac_try_echo=$ac_try;;
11601 esac
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603   (eval "$ac_try") 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; } &&
11607          { ac_try='test -s conftest$ac_exeext'
11608   { (case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_try") 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; }; then
11617   eval "$as_ac_var=yes"
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622         eval "$as_ac_var=no"
11623 fi
11624
11625 rm -f core conftest.err conftest.$ac_objext \
11626       conftest$ac_exeext conftest.$ac_ext
11627 fi
11628 ac_res=`eval echo '${'$as_ac_var'}'`
11629                { echo "$as_me:$LINENO: result: $ac_res" >&5
11630 echo "${ECHO_T}$ac_res" >&6; }
11631 if test `eval echo '${'$as_ac_var'}'` = yes; then
11632   cat >>confdefs.h <<_ACEOF
11633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11634 _ACEOF
11635  break
11636 fi
11637 done
11638
11639
11640
11641 for ac_func in memcpy bcopy
11642 do
11643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11647   echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649   cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11657 #define $ac_func innocuous_$ac_func
11658
11659 /* System header to define __stub macros and hopefully few prototypes,
11660     which can conflict with char $ac_func (); below.
11661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11662     <limits.h> exists even on freestanding compilers.  */
11663
11664 #ifdef __STDC__
11665 # include <limits.h>
11666 #else
11667 # include <assert.h>
11668 #endif
11669
11670 #undef $ac_func
11671
11672 /* Override any GCC internal prototype to avoid an error.
11673    Use char because int might match the return type of a GCC
11674    builtin and then its argument prototype would still apply.  */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 char $ac_func ();
11679 /* The GNU C library defines this for functions which it implements
11680     to always fail with ENOSYS.  Some functions are actually named
11681     something starting with __ and the normal name is an alias.  */
11682 #if defined __stub_$ac_func || defined __stub___$ac_func
11683 choke me
11684 #endif
11685
11686 int
11687 main ()
11688 {
11689 return $ac_func ();
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (ac_try="$ac_link"
11696 case "(($ac_try" in
11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698   *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701   (eval "$ac_link") 2>conftest.er1
11702   ac_status=$?
11703   grep -v '^ *+' conftest.er1 >conftest.err
11704   rm -f conftest.er1
11705   cat conftest.err >&5
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11709   { (case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714   (eval "$ac_try") 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); }; } &&
11718          { ac_try='test -s conftest$ac_exeext'
11719   { (case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_try") 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   eval "$as_ac_var=yes"
11729 else
11730   echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733         eval "$as_ac_var=no"
11734 fi
11735
11736 rm -f core conftest.err conftest.$ac_objext \
11737       conftest$ac_exeext conftest.$ac_ext
11738 fi
11739 ac_res=`eval echo '${'$as_ac_var'}'`
11740                { echo "$as_me:$LINENO: result: $ac_res" >&5
11741 echo "${ECHO_T}$ac_res" >&6; }
11742 if test `eval echo '${'$as_ac_var'}'` = yes; then
11743   cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 _ACEOF
11746  break
11747 fi
11748 done
11749
11750
11751
11752 for ac_func in memmove strcmp
11753 do
11754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11758   echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760   cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11768 #define $ac_func innocuous_$ac_func
11769
11770 /* System header to define __stub macros and hopefully few prototypes,
11771     which can conflict with char $ac_func (); below.
11772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11773     <limits.h> exists even on freestanding compilers.  */
11774
11775 #ifdef __STDC__
11776 # include <limits.h>
11777 #else
11778 # include <assert.h>
11779 #endif
11780
11781 #undef $ac_func
11782
11783 /* Override any GCC internal prototype to avoid an error.
11784    Use char because int might match the return type of a GCC
11785    builtin and then its argument prototype would still apply.  */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char $ac_func ();
11790 /* The GNU C library defines this for functions which it implements
11791     to always fail with ENOSYS.  Some functions are actually named
11792     something starting with __ and the normal name is an alias.  */
11793 #if defined __stub_$ac_func || defined __stub___$ac_func
11794 choke me
11795 #endif
11796
11797 int
11798 main ()
11799 {
11800 return $ac_func ();
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (ac_try="$ac_link"
11807 case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_link") 2>conftest.er1
11813   ac_status=$?
11814   grep -v '^ *+' conftest.er1 >conftest.err
11815   rm -f conftest.er1
11816   cat conftest.err >&5
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); } &&
11819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11820   { (case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825   (eval "$ac_try") 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; } &&
11829          { ac_try='test -s conftest$ac_exeext'
11830   { (case "(($ac_try" in
11831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832   *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835   (eval "$ac_try") 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; }; then
11839   eval "$as_ac_var=yes"
11840 else
11841   echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844         eval "$as_ac_var=no"
11845 fi
11846
11847 rm -f core conftest.err conftest.$ac_objext \
11848       conftest$ac_exeext conftest.$ac_ext
11849 fi
11850 ac_res=`eval echo '${'$as_ac_var'}'`
11851                { echo "$as_me:$LINENO: result: $ac_res" >&5
11852 echo "${ECHO_T}$ac_res" >&6; }
11853 if test `eval echo '${'$as_ac_var'}'` = yes; then
11854   cat >>confdefs.h <<_ACEOF
11855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11856 _ACEOF
11857
11858 fi
11859 done
11860
11861
11862
11863
11864 for ac_func in closedir opendir readdir
11865 do
11866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870   echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872   cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11880 #define $ac_func innocuous_$ac_func
11881
11882 /* System header to define __stub macros and hopefully few prototypes,
11883     which can conflict with char $ac_func (); below.
11884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885     <limits.h> exists even on freestanding compilers.  */
11886
11887 #ifdef __STDC__
11888 # include <limits.h>
11889 #else
11890 # include <assert.h>
11891 #endif
11892
11893 #undef $ac_func
11894
11895 /* Override any GCC internal prototype to avoid an error.
11896    Use char because int might match the return type of a GCC
11897    builtin and then its argument prototype would still apply.  */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char $ac_func ();
11902 /* The GNU C library defines this for functions which it implements
11903     to always fail with ENOSYS.  Some functions are actually named
11904     something starting with __ and the normal name is an alias.  */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11906 choke me
11907 #endif
11908
11909 int
11910 main ()
11911 {
11912 return $ac_func ();
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924   (eval "$ac_link") 2>conftest.er1
11925   ac_status=$?
11926   grep -v '^ *+' conftest.er1 >conftest.err
11927   rm -f conftest.er1
11928   cat conftest.err >&5
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); } &&
11931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11932   { (case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_try") 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; } &&
11941          { ac_try='test -s conftest$ac_exeext'
11942   { (case "(($ac_try" in
11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944   *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947   (eval "$ac_try") 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; }; then
11951   eval "$as_ac_var=yes"
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956         eval "$as_ac_var=no"
11957 fi
11958
11959 rm -f core conftest.err conftest.$ac_objext \
11960       conftest$ac_exeext conftest.$ac_ext
11961 fi
11962 ac_res=`eval echo '${'$as_ac_var'}'`
11963                { echo "$as_me:$LINENO: result: $ac_res" >&5
11964 echo "${ECHO_T}$ac_res" >&6; }
11965 if test `eval echo '${'$as_ac_var'}'` = yes; then
11966   cat >>confdefs.h <<_ACEOF
11967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11968 _ACEOF
11969
11970 fi
11971 done
11972
11973
11974
11975 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11976 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11977
11978 ICC=no
11979 IXX=no
11980 case $CC in
11981   icc*|icpc*)
11982     ICC=yes
11983     IXX=yes
11984     ;;
11985    *)
11986     ;;
11987 esac
11988
11989 if test "$GCC" != "yes" && test "$ICC" != "yes"
11990 then
11991   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11992 echo "$as_me: error: gcc|icc required but not found" >&2;}
11993    { (exit 1); exit 1; }; }
11994 fi
11995
11996 if test "$GXX" != "yes" && test "$IXX" != "yes"
11997 then
11998   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11999 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12000    { (exit 1); exit 1; }; }
12001 fi
12002
12003 if test "$GCC" = "yes"
12004 then
12005   cat >conftest.$ac_ext <<_ACEOF
12006 #if !defined(__GNUC__) || __GNUC__ < 3
12007 #error Unsupported GCC version
12008 #endif
12009
12010 _ACEOF
12011 rm -f conftest.$ac_objext
12012 if { (ac_try="$ac_compile"
12013 case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_compile") 2>conftest.er1
12019   ac_status=$?
12020   grep -v '^ *+' conftest.er1 >conftest.err
12021   rm -f conftest.er1
12022   cat conftest.err >&5
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } &&
12025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026   { (case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_try") 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest.$ac_objext'
12036   { (case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_try") 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   :
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12051 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12052    { (exit 1); exit 1; }; }
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 fi
12057
12058 if test -z "$llvm_cv_gnu_make_command"
12059 then
12060   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12061 echo "$as_me: error: GNU Make required but not found" >&2;}
12062    { (exit 1); exit 1; }; }
12063 fi
12064
12065 { echo "$as_me:$LINENO: result: ok" >&5
12066 echo "${ECHO_T}ok" >&6; }
12067
12068 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12069 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12070 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12071
12072 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12073
12074 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12075
12076 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12077 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12078
12079
12080
12081 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12082 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12083 if test "${ac_cv_lib_m_sin+set}" = set; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   ac_check_lib_save_LIBS=$LIBS
12087 LIBS="-lm  $LIBS"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h.  */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h.  */
12094
12095 /* Override any GCC internal prototype to avoid an error.
12096    Use char because int might match the return type of a GCC
12097    builtin and then its argument prototype would still apply.  */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char sin ();
12102 int
12103 main ()
12104 {
12105 return sin ();
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 rm -f conftest.$ac_objext conftest$ac_exeext
12111 if { (ac_try="$ac_link"
12112 case "(($ac_try" in
12113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114   *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117   (eval "$ac_link") 2>conftest.er1
12118   ac_status=$?
12119   grep -v '^ *+' conftest.er1 >conftest.err
12120   rm -f conftest.er1
12121   cat conftest.err >&5
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } &&
12124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12125   { (case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130   (eval "$ac_try") 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; } &&
12134          { ac_try='test -s conftest$ac_exeext'
12135   { (case "(($ac_try" in
12136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137   *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140   (eval "$ac_try") 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; }; then
12144   ac_cv_lib_m_sin=yes
12145 else
12146   echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149         ac_cv_lib_m_sin=no
12150 fi
12151
12152 rm -f core conftest.err conftest.$ac_objext \
12153       conftest$ac_exeext conftest.$ac_ext
12154 LIBS=$ac_check_lib_save_LIBS
12155 fi
12156 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12157 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12158 if test $ac_cv_lib_m_sin = yes; then
12159   cat >>confdefs.h <<_ACEOF
12160 #define HAVE_LIBM 1
12161 _ACEOF
12162
12163   LIBS="-lm $LIBS"
12164
12165 fi
12166
12167 if test "$llvm_cv_os_type" = "MingW" ; then
12168
12169 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12170 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12171 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12172   echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174   ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-limagehlp  $LIBS"
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h.  */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h.  */
12182
12183
12184 int
12185 main ()
12186 {
12187 return main ();
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (ac_try="$ac_link"
12194 case "(($ac_try" in
12195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196   *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199   (eval "$ac_link") 2>conftest.er1
12200   ac_status=$?
12201   grep -v '^ *+' conftest.er1 >conftest.err
12202   rm -f conftest.er1
12203   cat conftest.err >&5
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207   { (case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_try") 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; } &&
12216          { ac_try='test -s conftest$ac_exeext'
12217   { (case "(($ac_try" in
12218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219   *) ac_try_echo=$ac_try;;
12220 esac
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222   (eval "$ac_try") 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   ac_cv_lib_imagehlp_main=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         ac_cv_lib_imagehlp_main=no
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext \
12235       conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12237 fi
12238 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12239 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12240 if test $ac_cv_lib_imagehlp_main = yes; then
12241   cat >>confdefs.h <<_ACEOF
12242 #define HAVE_LIBIMAGEHLP 1
12243 _ACEOF
12244
12245   LIBS="-limagehlp $LIBS"
12246
12247 fi
12248
12249
12250 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12251 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12252 if test "${ac_cv_lib_psapi_main+set}" = set; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-lpsapi  $LIBS"
12257 cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263
12264
12265 int
12266 main ()
12267 {
12268 return main ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_link") 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } &&
12287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12288   { (case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293   (eval "$ac_try") 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; } &&
12297          { ac_try='test -s conftest$ac_exeext'
12298   { (case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303   (eval "$ac_try") 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; }; then
12307   ac_cv_lib_psapi_main=yes
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312         ac_cv_lib_psapi_main=no
12313 fi
12314
12315 rm -f core conftest.err conftest.$ac_objext \
12316       conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12320 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12321 if test $ac_cv_lib_psapi_main = yes; then
12322   cat >>confdefs.h <<_ACEOF
12323 #define HAVE_LIBPSAPI 1
12324 _ACEOF
12325
12326   LIBS="-lpsapi $LIBS"
12327
12328 fi
12329
12330 fi
12331
12332 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12333 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12334 if test "${ac_cv_search_dlopen+set}" = set; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   ac_func_search_save_LIBS=$LIBS
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344
12345 /* Override any GCC internal prototype to avoid an error.
12346    Use char because int might match the return type of a GCC
12347    builtin and then its argument prototype would still apply.  */
12348 #ifdef __cplusplus
12349 extern "C"
12350 #endif
12351 char dlopen ();
12352 int
12353 main ()
12354 {
12355 return dlopen ();
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 for ac_lib in '' dl; do
12361   if test -z "$ac_lib"; then
12362     ac_res="none required"
12363   else
12364     ac_res=-l$ac_lib
12365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12366   fi
12367   rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_link") 2>conftest.er1
12375   ac_status=$?
12376   grep -v '^ *+' conftest.er1 >conftest.err
12377   rm -f conftest.er1
12378   cat conftest.err >&5
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); } &&
12381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382   { (case "(($ac_try" in
12383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384   *) ac_try_echo=$ac_try;;
12385 esac
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387   (eval "$ac_try") 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; } &&
12391          { ac_try='test -s conftest$ac_exeext'
12392   { (case "(($ac_try" in
12393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394   *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397   (eval "$ac_try") 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_search_dlopen=$ac_res
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406
12407 fi
12408
12409 rm -f core conftest.err conftest.$ac_objext \
12410       conftest$ac_exeext
12411   if test "${ac_cv_search_dlopen+set}" = set; then
12412   break
12413 fi
12414 done
12415 if test "${ac_cv_search_dlopen+set}" = set; then
12416   :
12417 else
12418   ac_cv_search_dlopen=no
12419 fi
12420 rm conftest.$ac_ext
12421 LIBS=$ac_func_search_save_LIBS
12422 fi
12423 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12424 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12425 ac_res=$ac_cv_search_dlopen
12426 if test "$ac_res" != no; then
12427   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12428
12429 cat >>confdefs.h <<\_ACEOF
12430 #define HAVE_DLOPEN 1
12431 _ACEOF
12432
12433 else
12434   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12435 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12436 fi
12437
12438
12439 if test "$llvm_cv_enable_libffi" = "yes" ; then
12440   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12441 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12442 if test "${ac_cv_search_ffi_call+set}" = set; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   ac_func_search_save_LIBS=$LIBS
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h.  */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h.  */
12452
12453 /* Override any GCC internal prototype to avoid an error.
12454    Use char because int might match the return type of a GCC
12455    builtin and then its argument prototype would still apply.  */
12456 #ifdef __cplusplus
12457 extern "C"
12458 #endif
12459 char ffi_call ();
12460 int
12461 main ()
12462 {
12463 return ffi_call ();
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 for ac_lib in '' ffi; do
12469   if test -z "$ac_lib"; then
12470     ac_res="none required"
12471   else
12472     ac_res=-l$ac_lib
12473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12474   fi
12475   rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (ac_try="$ac_link"
12477 case "(($ac_try" in
12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479   *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482   (eval "$ac_link") 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12490   { (case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_try") 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); }; } &&
12499          { ac_try='test -s conftest$ac_exeext'
12500   { (case "(($ac_try" in
12501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502   *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505   (eval "$ac_try") 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; }; then
12509   ac_cv_search_ffi_call=$ac_res
12510 else
12511   echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514
12515 fi
12516
12517 rm -f core conftest.err conftest.$ac_objext \
12518       conftest$ac_exeext
12519   if test "${ac_cv_search_ffi_call+set}" = set; then
12520   break
12521 fi
12522 done
12523 if test "${ac_cv_search_ffi_call+set}" = set; then
12524   :
12525 else
12526   ac_cv_search_ffi_call=no
12527 fi
12528 rm conftest.$ac_ext
12529 LIBS=$ac_func_search_save_LIBS
12530 fi
12531 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12532 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12533 ac_res=$ac_cv_search_ffi_call
12534 if test "$ac_res" != no; then
12535   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_FFI_CALL 1
12539 _ACEOF
12540
12541 else
12542   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12543 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12544    { (exit 1); exit 1; }; }
12545 fi
12546
12547 fi
12548
12549 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12550 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12551 if test "${ac_cv_search_mallinfo+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   ac_func_search_save_LIBS=$LIBS
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h.  */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h.  */
12561
12562 /* Override any GCC internal prototype to avoid an error.
12563    Use char because int might match the return type of a GCC
12564    builtin and then its argument prototype would still apply.  */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 char mallinfo ();
12569 int
12570 main ()
12571 {
12572 return mallinfo ();
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 for ac_lib in '' malloc; do
12578   if test -z "$ac_lib"; then
12579     ac_res="none required"
12580   else
12581     ac_res=-l$ac_lib
12582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12583   fi
12584   rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_link") 2>conftest.er1
12592   ac_status=$?
12593   grep -v '^ *+' conftest.er1 >conftest.err
12594   rm -f conftest.er1
12595   cat conftest.err >&5
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); } &&
12598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599   { (case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_try") 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest$ac_exeext'
12609   { (case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_try") 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; }; then
12618   ac_cv_search_mallinfo=$ac_res
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623
12624 fi
12625
12626 rm -f core conftest.err conftest.$ac_objext \
12627       conftest$ac_exeext
12628   if test "${ac_cv_search_mallinfo+set}" = set; then
12629   break
12630 fi
12631 done
12632 if test "${ac_cv_search_mallinfo+set}" = set; then
12633   :
12634 else
12635   ac_cv_search_mallinfo=no
12636 fi
12637 rm conftest.$ac_ext
12638 LIBS=$ac_func_search_save_LIBS
12639 fi
12640 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12641 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12642 ac_res=$ac_cv_search_mallinfo
12643 if test "$ac_res" != no; then
12644   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_MALLINFO 1
12648 _ACEOF
12649
12650 fi
12651
12652
12653 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12654
12655 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12656 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12657 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660   ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-lpthread  $LIBS"
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h.  */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h.  */
12668
12669 /* Override any GCC internal prototype to avoid an error.
12670    Use char because int might match the return type of a GCC
12671    builtin and then its argument prototype would still apply.  */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 char pthread_mutex_init ();
12676 int
12677 main ()
12678 {
12679 return pthread_mutex_init ();
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 if { (ac_try="$ac_link"
12686 case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_link") 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
12695   cat conftest.err >&5
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } &&
12698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699   { (case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_try") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; } &&
12708          { ac_try='test -s conftest$ac_exeext'
12709   { (case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714   (eval "$ac_try") 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; }; then
12718   ac_cv_lib_pthread_pthread_mutex_init=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723         ac_cv_lib_pthread_pthread_mutex_init=no
12724 fi
12725
12726 rm -f core conftest.err conftest.$ac_objext \
12727       conftest$ac_exeext conftest.$ac_ext
12728 LIBS=$ac_check_lib_save_LIBS
12729 fi
12730 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12731 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12732 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12733   cat >>confdefs.h <<_ACEOF
12734 #define HAVE_LIBPTHREAD 1
12735 _ACEOF
12736
12737   LIBS="-lpthread $LIBS"
12738
12739 fi
12740
12741   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12742 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12743 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12744   echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746   ac_func_search_save_LIBS=$LIBS
12747 cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h.  */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h.  */
12753
12754 /* Override any GCC internal prototype to avoid an error.
12755    Use char because int might match the return type of a GCC
12756    builtin and then its argument prototype would still apply.  */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char pthread_mutex_lock ();
12761 int
12762 main ()
12763 {
12764 return pthread_mutex_lock ();
12765   ;
12766   return 0;
12767 }
12768 _ACEOF
12769 for ac_lib in '' pthread; do
12770   if test -z "$ac_lib"; then
12771     ac_res="none required"
12772   else
12773     ac_res=-l$ac_lib
12774     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12775   fi
12776   rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783   (eval "$ac_link") 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791   { (case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796   (eval "$ac_try") 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; } &&
12800          { ac_try='test -s conftest$ac_exeext'
12801   { (case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806   (eval "$ac_try") 2>&5
12807   ac_status=$?
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); }; }; then
12810   ac_cv_search_pthread_mutex_lock=$ac_res
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815
12816 fi
12817
12818 rm -f core conftest.err conftest.$ac_objext \
12819       conftest$ac_exeext
12820   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12821   break
12822 fi
12823 done
12824 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12825   :
12826 else
12827   ac_cv_search_pthread_mutex_lock=no
12828 fi
12829 rm conftest.$ac_ext
12830 LIBS=$ac_func_search_save_LIBS
12831 fi
12832 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12833 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12834 ac_res=$ac_cv_search_pthread_mutex_lock
12835 if test "$ac_res" != no; then
12836   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12837
12838 cat >>confdefs.h <<\_ACEOF
12839 #define HAVE_PTHREAD_MUTEX_LOCK 1
12840 _ACEOF
12841
12842 fi
12843
12844   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12845 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12846 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12847   echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849   ac_func_search_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856
12857 /* Override any GCC internal prototype to avoid an error.
12858    Use char because int might match the return type of a GCC
12859    builtin and then its argument prototype would still apply.  */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char pthread_rwlock_init ();
12864 int
12865 main ()
12866 {
12867 return pthread_rwlock_init ();
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 for ac_lib in '' pthread; do
12873   if test -z "$ac_lib"; then
12874     ac_res="none required"
12875   else
12876     ac_res=-l$ac_lib
12877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12878   fi
12879   rm -f conftest.$ac_objext conftest$ac_exeext
12880 if { (ac_try="$ac_link"
12881 case "(($ac_try" in
12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883   *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886   (eval "$ac_link") 2>conftest.er1
12887   ac_status=$?
12888   grep -v '^ *+' conftest.er1 >conftest.err
12889   rm -f conftest.er1
12890   cat conftest.err >&5
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); } &&
12893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894   { (case "(($ac_try" in
12895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896   *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899   (eval "$ac_try") 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; } &&
12903          { ac_try='test -s conftest$ac_exeext'
12904   { (case "(($ac_try" in
12905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906   *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909   (eval "$ac_try") 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; }; then
12913   ac_cv_search_pthread_rwlock_init=$ac_res
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918
12919 fi
12920
12921 rm -f core conftest.err conftest.$ac_objext \
12922       conftest$ac_exeext
12923   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12924   break
12925 fi
12926 done
12927 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12928   :
12929 else
12930   ac_cv_search_pthread_rwlock_init=no
12931 fi
12932 rm conftest.$ac_ext
12933 LIBS=$ac_func_search_save_LIBS
12934 fi
12935 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12936 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12937 ac_res=$ac_cv_search_pthread_rwlock_init
12938 if test "$ac_res" != no; then
12939   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12940
12941 cat >>confdefs.h <<\_ACEOF
12942 #define HAVE_PTHREAD_RWLOCK_INIT 1
12943 _ACEOF
12944
12945 fi
12946
12947   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12948 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12949 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12950   echo $ECHO_N "(cached) $ECHO_C" >&6
12951 else
12952   ac_func_search_save_LIBS=$LIBS
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h.  */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h.  */
12959
12960 /* Override any GCC internal prototype to avoid an error.
12961    Use char because int might match the return type of a GCC
12962    builtin and then its argument prototype would still apply.  */
12963 #ifdef __cplusplus
12964 extern "C"
12965 #endif
12966 char pthread_getspecific ();
12967 int
12968 main ()
12969 {
12970 return pthread_getspecific ();
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 for ac_lib in '' pthread; do
12976   if test -z "$ac_lib"; then
12977     ac_res="none required"
12978   else
12979     ac_res=-l$ac_lib
12980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12981   fi
12982   rm -f conftest.$ac_objext conftest$ac_exeext
12983 if { (ac_try="$ac_link"
12984 case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_link") 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } &&
12996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997   { (case "(($ac_try" in
12998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999   *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002   (eval "$ac_try") 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); }; } &&
13006          { ac_try='test -s conftest$ac_exeext'
13007   { (case "(($ac_try" in
13008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009   *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012   (eval "$ac_try") 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; }; then
13016   ac_cv_search_pthread_getspecific=$ac_res
13017 else
13018   echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13020
13021
13022 fi
13023
13024 rm -f core conftest.err conftest.$ac_objext \
13025       conftest$ac_exeext
13026   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13027   break
13028 fi
13029 done
13030 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13031   :
13032 else
13033   ac_cv_search_pthread_getspecific=no
13034 fi
13035 rm conftest.$ac_ext
13036 LIBS=$ac_func_search_save_LIBS
13037 fi
13038 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13039 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13040 ac_res=$ac_cv_search_pthread_getspecific
13041 if test "$ac_res" != no; then
13042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13043
13044 cat >>confdefs.h <<\_ACEOF
13045 #define HAVE_PTHREAD_GETSPECIFIC 1
13046 _ACEOF
13047
13048 fi
13049
13050 fi
13051
13052
13053 # Check whether --with-udis86 was given.
13054 if test "${with_udis86+set}" = set; then
13055   withval=$with_udis86;
13056       USE_UDIS86=1
13057
13058       case "$withval" in
13059         /usr/lib|yes) ;;
13060         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13061       esac
13062
13063 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13064 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13065 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-ludis86  $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h.  */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h.  */
13076
13077 /* Override any GCC internal prototype to avoid an error.
13078    Use char because int might match the return type of a GCC
13079    builtin and then its argument prototype would still apply.  */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char ud_init ();
13084 int
13085 main ()
13086 {
13087 return ud_init ();
13088   ;
13089   return 0;
13090 }
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096   *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099   (eval "$ac_link") 2>conftest.er1
13100   ac_status=$?
13101   grep -v '^ *+' conftest.er1 >conftest.err
13102   rm -f conftest.er1
13103   cat conftest.err >&5
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); } &&
13106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13107   { (case "(($ac_try" in
13108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109   *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112   (eval "$ac_try") 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; } &&
13116          { ac_try='test -s conftest$ac_exeext'
13117   { (case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_try") 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); }; }; then
13126   ac_cv_lib_udis86_ud_init=yes
13127 else
13128   echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13130
13131         ac_cv_lib_udis86_ud_init=no
13132 fi
13133
13134 rm -f core conftest.err conftest.$ac_objext \
13135       conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13137 fi
13138 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13139 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13140 if test $ac_cv_lib_udis86_ud_init = yes; then
13141   cat >>confdefs.h <<_ACEOF
13142 #define HAVE_LIBUDIS86 1
13143 _ACEOF
13144
13145   LIBS="-ludis86 $LIBS"
13146
13147 else
13148
13149         echo "Error! You need to have libudis86 around."
13150         exit -1
13151
13152 fi
13153
13154
13155 else
13156   USE_UDIS86=0
13157
13158 fi
13159
13160
13161 cat >>confdefs.h <<_ACEOF
13162 #define USE_UDIS86 $USE_UDIS86
13163 _ACEOF
13164
13165
13166
13167 # Check whether --with-oprofile was given.
13168 if test "${with_oprofile+set}" = set; then
13169   withval=$with_oprofile;
13170       USE_OPROFILE=1
13171
13172       case "$withval" in
13173         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13174         no) llvm_cv_oppath=
13175             USE_OPROFILE=0
13176  ;;
13177         *) llvm_cv_oppath="${withval}/lib/oprofile"
13178            CPPFLAGS="-I${withval}/include";;
13179       esac
13180       case $llvm_cv_os_type in
13181         Linux)
13182           if test -n "$llvm_cv_oppath" ; then
13183             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13184                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13185 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13186 if test "${ac_cv_search_bfd_init+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   ac_func_search_save_LIBS=$LIBS
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h.  */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h.  */
13196
13197 /* Override any GCC internal prototype to avoid an error.
13198    Use char because int might match the return type of a GCC
13199    builtin and then its argument prototype would still apply.  */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char bfd_init ();
13204 int
13205 main ()
13206 {
13207 return bfd_init ();
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 for ac_lib in '' bfd; do
13213   if test -z "$ac_lib"; then
13214     ac_res="none required"
13215   else
13216     ac_res=-l$ac_lib
13217     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13218   fi
13219   rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_link") 2>conftest.er1
13227   ac_status=$?
13228   grep -v '^ *+' conftest.er1 >conftest.err
13229   rm -f conftest.er1
13230   cat conftest.err >&5
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); } &&
13233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234   { (case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_try") 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; } &&
13243          { ac_try='test -s conftest$ac_exeext'
13244   { (case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_try") 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; }; then
13253   ac_cv_search_bfd_init=$ac_res
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258
13259 fi
13260
13261 rm -f core conftest.err conftest.$ac_objext \
13262       conftest$ac_exeext
13263   if test "${ac_cv_search_bfd_init+set}" = set; then
13264   break
13265 fi
13266 done
13267 if test "${ac_cv_search_bfd_init+set}" = set; then
13268   :
13269 else
13270   ac_cv_search_bfd_init=no
13271 fi
13272 rm conftest.$ac_ext
13273 LIBS=$ac_func_search_save_LIBS
13274 fi
13275 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13276 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13277 ac_res=$ac_cv_search_bfd_init
13278 if test "$ac_res" != no; then
13279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13280
13281 fi
13282
13283             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13284 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13285 if test "${ac_cv_search_op_open_agent+set}" = set; then
13286   echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288   ac_func_search_save_LIBS=$LIBS
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295
13296 /* Override any GCC internal prototype to avoid an error.
13297    Use char because int might match the return type of a GCC
13298    builtin and then its argument prototype would still apply.  */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char op_open_agent ();
13303 int
13304 main ()
13305 {
13306 return op_open_agent ();
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 for ac_lib in '' opagent; do
13312   if test -z "$ac_lib"; then
13313     ac_res="none required"
13314   else
13315     ac_res=-l$ac_lib
13316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13317   fi
13318   rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322   *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325   (eval "$ac_link") 2>conftest.er1
13326   ac_status=$?
13327   grep -v '^ *+' conftest.er1 >conftest.err
13328   rm -f conftest.er1
13329   cat conftest.err >&5
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } &&
13332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333   { (case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_try") 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; } &&
13342          { ac_try='test -s conftest$ac_exeext'
13343   { (case "(($ac_try" in
13344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345   *) ac_try_echo=$ac_try;;
13346 esac
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348   (eval "$ac_try") 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_cv_search_op_open_agent=$ac_res
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357
13358 fi
13359
13360 rm -f core conftest.err conftest.$ac_objext \
13361       conftest$ac_exeext
13362   if test "${ac_cv_search_op_open_agent+set}" = set; then
13363   break
13364 fi
13365 done
13366 if test "${ac_cv_search_op_open_agent+set}" = set; then
13367   :
13368 else
13369   ac_cv_search_op_open_agent=no
13370 fi
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13373 fi
13374 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13375 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13376 ac_res=$ac_cv_search_op_open_agent
13377 if test "$ac_res" != no; then
13378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379
13380 else
13381
13382               echo "Error! You need to have libopagent around."
13383               exit -1
13384
13385 fi
13386
13387             if test "${ac_cv_header_opagent_h+set}" = set; then
13388   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13389 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13390 if test "${ac_cv_header_opagent_h+set}" = set; then
13391   echo $ECHO_N "(cached) $ECHO_C" >&6
13392 fi
13393 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13394 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13395 else
13396   # Is the header compilable?
13397 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13398 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 $ac_includes_default
13406 #include <opagent.h>
13407 _ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_compile") 2>conftest.er1
13416   ac_status=$?
13417   grep -v '^ *+' conftest.er1 >conftest.err
13418   rm -f conftest.er1
13419   cat conftest.err >&5
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } &&
13422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13423   { (case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_try") 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; } &&
13432          { ac_try='test -s conftest.$ac_objext'
13433   { (case "(($ac_try" in
13434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435   *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438   (eval "$ac_try") 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442   ac_header_compiler=yes
13443 else
13444   echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13446
13447         ac_header_compiler=no
13448 fi
13449
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13452 echo "${ECHO_T}$ac_header_compiler" >&6; }
13453
13454 # Is the header present?
13455 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13456 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h.  */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h.  */
13463 #include <opagent.h>
13464 _ACEOF
13465 if { (ac_try="$ac_cpp conftest.$ac_ext"
13466 case "(($ac_try" in
13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468   *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } >/dev/null; then
13478   if test -s conftest.err; then
13479     ac_cpp_err=$ac_c_preproc_warn_flag
13480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13481   else
13482     ac_cpp_err=
13483   fi
13484 else
13485   ac_cpp_err=yes
13486 fi
13487 if test -z "$ac_cpp_err"; then
13488   ac_header_preproc=yes
13489 else
13490   echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13492
13493   ac_header_preproc=no
13494 fi
13495
13496 rm -f conftest.err conftest.$ac_ext
13497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13498 echo "${ECHO_T}$ac_header_preproc" >&6; }
13499
13500 # So?  What about this header?
13501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13502   yes:no: )
13503     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13504 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13505     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13506 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13507     ac_header_preproc=yes
13508     ;;
13509   no:yes:* )
13510     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13511 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13512     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13513 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13514     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13515 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13516     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13517 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13518     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13519 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13520     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13521 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13522     ( cat <<\_ASBOX
13523 ## ------------------------------------ ##
13524 ## Report this to http://llvm.org/bugs/ ##
13525 ## ------------------------------------ ##
13526 _ASBOX
13527      ) | sed "s/^/$as_me: WARNING:     /" >&2
13528     ;;
13529 esac
13530 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13531 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13532 if test "${ac_cv_header_opagent_h+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   ac_cv_header_opagent_h=$ac_header_preproc
13536 fi
13537 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13538 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13539
13540 fi
13541 if test $ac_cv_header_opagent_h = yes; then
13542   :
13543 else
13544
13545               echo "Error! You need to have opagent.h around."
13546               exit -1
13547
13548 fi
13549
13550
13551           fi ;;
13552         *)
13553           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13554 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13555    { (exit 1); exit 1; }; } ;;
13556       esac
13557
13558 else
13559
13560       USE_OPROFILE=0
13561
13562
13563 fi
13564
13565
13566 cat >>confdefs.h <<_ACEOF
13567 #define LLVM_USE_OPROFILE $USE_OPROFILE
13568 _ACEOF
13569
13570
13571
13572 # Check whether --with-intel-jitevents was given.
13573 if test "${with_intel_jitevents+set}" = set; then
13574   withval=$with_intel_jitevents;
13575        case "$withval" in
13576           yes) USE_INTEL_JITEVENTS=1
13577 ;;
13578           no)  USE_INTEL_JITEVENTS=0
13579 ;;
13580           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13581 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13582    { (exit 1); exit 1; }; };;
13583        esac
13584
13585       case $llvm_cv_os_type in
13586         Linux|Win32|Cygwin|MingW) ;;
13587         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13588 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13589    { (exit 1); exit 1; }; };;
13590       esac
13591
13592       case "$llvm_cv_target_arch" in
13593         x86|x86_64) ;;
13594         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13595 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13596    { (exit 1); exit 1; }; };;
13597       esac
13598
13599 else
13600
13601       USE_INTEL_JITEVENTS=0
13602
13603
13604 fi
13605
13606
13607 cat >>confdefs.h <<_ACEOF
13608 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13609 _ACEOF
13610
13611
13612 for ac_prog in xml2-config
13613 do
13614   # Extract the first word of "$ac_prog", so it can be a program name with args.
13615 set dummy $ac_prog; ac_word=$2
13616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13618 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621   if test -n "$XML2CONFIG"; then
13622   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13626 do
13627   IFS=$as_save_IFS
13628   test -z "$as_dir" && as_dir=.
13629   for ac_exec_ext in '' $ac_executable_extensions; do
13630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13631     ac_cv_prog_XML2CONFIG="$ac_prog"
13632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13633     break 2
13634   fi
13635 done
13636 done
13637 IFS=$as_save_IFS
13638
13639 fi
13640 fi
13641 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13642 if test -n "$XML2CONFIG"; then
13643   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13644 echo "${ECHO_T}$XML2CONFIG" >&6; }
13645 else
13646   { echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6; }
13648 fi
13649
13650
13651   test -n "$XML2CONFIG" && break
13652 done
13653
13654
13655 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13656 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13657 if test "x$XML2CONFIG" = "x"; then
13658  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13659 echo "${ECHO_T}xml2-config not found" >&6; }
13660 else
13661  LIBXML2_INC=`$XML2CONFIG --cflags`
13662  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13663 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13664  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13665 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13667   echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669   ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-lxml2  $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h.  */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h.  */
13677
13678 /* Override any GCC internal prototype to avoid an error.
13679    Use char because int might match the return type of a GCC
13680    builtin and then its argument prototype would still apply.  */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char xmlReadFile ();
13685 int
13686 main ()
13687 {
13688 return xmlReadFile ();
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697   *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700   (eval "$ac_link") 2>conftest.er1
13701   ac_status=$?
13702   grep -v '^ *+' conftest.er1 >conftest.err
13703   rm -f conftest.er1
13704   cat conftest.err >&5
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } &&
13707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13708   { (case "(($ac_try" in
13709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710   *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713   (eval "$ac_try") 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); }; } &&
13717          { ac_try='test -s conftest$ac_exeext'
13718   { (case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723   (eval "$ac_try") 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; }; then
13727   ac_cv_lib_xml2_xmlReadFile=yes
13728 else
13729   echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732         ac_cv_lib_xml2_xmlReadFile=no
13733 fi
13734
13735 rm -f core conftest.err conftest.$ac_objext \
13736       conftest$ac_exeext conftest.$ac_ext
13737 LIBS=$ac_check_lib_save_LIBS
13738 fi
13739 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13740 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13741 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13742
13743 cat >>confdefs.h <<\_ACEOF
13744 #define CLANG_HAVE_LIBXML 1
13745 _ACEOF
13746
13747                                 LIBXML2_LIBS="-lxml2"
13748 fi
13749
13750 fi
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760 ac_header_dirent=no
13761 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13762   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13763 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13764 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13766   echo $ECHO_N "(cached) $ECHO_C" >&6
13767 else
13768   cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h.  */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h.  */
13774 #include <sys/types.h>
13775 #include <$ac_hdr>
13776
13777 int
13778 main ()
13779 {
13780 if ((DIR *) 0)
13781 return 0;
13782   ;
13783   return 0;
13784 }
13785 _ACEOF
13786 rm -f conftest.$ac_objext
13787 if { (ac_try="$ac_compile"
13788 case "(($ac_try" in
13789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790   *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793   (eval "$ac_compile") 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13801   { (case "(($ac_try" in
13802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803   *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806   (eval "$ac_try") 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; } &&
13810          { ac_try='test -s conftest.$ac_objext'
13811   { (case "(($ac_try" in
13812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813   *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816   (eval "$ac_try") 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); }; }; then
13820   eval "$as_ac_Header=yes"
13821 else
13822   echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825         eval "$as_ac_Header=no"
13826 fi
13827
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829 fi
13830 ac_res=`eval echo '${'$as_ac_Header'}'`
13831                { echo "$as_me:$LINENO: result: $ac_res" >&5
13832 echo "${ECHO_T}$ac_res" >&6; }
13833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13834   cat >>confdefs.h <<_ACEOF
13835 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13836 _ACEOF
13837
13838 ac_header_dirent=$ac_hdr; break
13839 fi
13840
13841 done
13842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13843 if test $ac_header_dirent = dirent.h; then
13844   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13846 if test "${ac_cv_search_opendir+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   ac_func_search_save_LIBS=$LIBS
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856
13857 /* Override any GCC internal prototype to avoid an error.
13858    Use char because int might match the return type of a GCC
13859    builtin and then its argument prototype would still apply.  */
13860 #ifdef __cplusplus
13861 extern "C"
13862 #endif
13863 char opendir ();
13864 int
13865 main ()
13866 {
13867 return opendir ();
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 for ac_lib in '' dir; do
13873   if test -z "$ac_lib"; then
13874     ac_res="none required"
13875   else
13876     ac_res=-l$ac_lib
13877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13878   fi
13879   rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (ac_try="$ac_link"
13881 case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_link") 2>conftest.er1
13887   ac_status=$?
13888   grep -v '^ *+' conftest.er1 >conftest.err
13889   rm -f conftest.er1
13890   cat conftest.err >&5
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } &&
13893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894   { (case "(($ac_try" in
13895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896   *) ac_try_echo=$ac_try;;
13897 esac
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899   (eval "$ac_try") 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; } &&
13903          { ac_try='test -s conftest$ac_exeext'
13904   { (case "(($ac_try" in
13905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906   *) ac_try_echo=$ac_try;;
13907 esac
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909   (eval "$ac_try") 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913   ac_cv_search_opendir=$ac_res
13914 else
13915   echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918
13919 fi
13920
13921 rm -f core conftest.err conftest.$ac_objext \
13922       conftest$ac_exeext
13923   if test "${ac_cv_search_opendir+set}" = set; then
13924   break
13925 fi
13926 done
13927 if test "${ac_cv_search_opendir+set}" = set; then
13928   :
13929 else
13930   ac_cv_search_opendir=no
13931 fi
13932 rm conftest.$ac_ext
13933 LIBS=$ac_func_search_save_LIBS
13934 fi
13935 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13936 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13937 ac_res=$ac_cv_search_opendir
13938 if test "$ac_res" != no; then
13939   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13940
13941 fi
13942
13943 else
13944   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13945 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13946 if test "${ac_cv_search_opendir+set}" = set; then
13947   echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949   ac_func_search_save_LIBS=$LIBS
13950 cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956
13957 /* Override any GCC internal prototype to avoid an error.
13958    Use char because int might match the return type of a GCC
13959    builtin and then its argument prototype would still apply.  */
13960 #ifdef __cplusplus
13961 extern "C"
13962 #endif
13963 char opendir ();
13964 int
13965 main ()
13966 {
13967 return opendir ();
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 for ac_lib in '' x; do
13973   if test -z "$ac_lib"; then
13974     ac_res="none required"
13975   else
13976     ac_res=-l$ac_lib
13977     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13978   fi
13979   rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (ac_try="$ac_link"
13981 case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_link") 2>conftest.er1
13987   ac_status=$?
13988   grep -v '^ *+' conftest.er1 >conftest.err
13989   rm -f conftest.er1
13990   cat conftest.err >&5
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); } &&
13993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994   { (case "(($ac_try" in
13995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996   *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999   (eval "$ac_try") 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; } &&
14003          { ac_try='test -s conftest$ac_exeext'
14004   { (case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_try") 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   ac_cv_search_opendir=$ac_res
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14017
14018
14019 fi
14020
14021 rm -f core conftest.err conftest.$ac_objext \
14022       conftest$ac_exeext
14023   if test "${ac_cv_search_opendir+set}" = set; then
14024   break
14025 fi
14026 done
14027 if test "${ac_cv_search_opendir+set}" = set; then
14028   :
14029 else
14030   ac_cv_search_opendir=no
14031 fi
14032 rm conftest.$ac_ext
14033 LIBS=$ac_func_search_save_LIBS
14034 fi
14035 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14036 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14037 ac_res=$ac_cv_search_opendir
14038 if test "$ac_res" != no; then
14039   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14040
14041 fi
14042
14043 fi
14044
14045 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14046 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14047 if test "${ac_cv_header_mmap_anon+set}" = set; then
14048   echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050    ac_ext=c
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14055
14056   cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h.  */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h.  */
14062 #include <sys/mman.h>
14063 #include <unistd.h>
14064 #include <fcntl.h>
14065 int
14066 main ()
14067 {
14068 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14069   ;
14070   return 0;
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (ac_try="$ac_compile"
14075 case "(($ac_try" in
14076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077   *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080   (eval "$ac_compile") 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } &&
14087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14088   { (case "(($ac_try" in
14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090   *) ac_try_echo=$ac_try;;
14091 esac
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093   (eval "$ac_try") 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; } &&
14097          { ac_try='test -s conftest.$ac_objext'
14098   { (case "(($ac_try" in
14099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100   *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103   (eval "$ac_try") 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; }; then
14107   ac_cv_header_mmap_anon=yes
14108 else
14109   echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112         ac_cv_header_mmap_anon=no
14113 fi
14114
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116   ac_ext=c
14117 ac_cpp='$CPP $CPPFLAGS'
14118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14121
14122
14123 fi
14124 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14125 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14126 if test "$ac_cv_header_mmap_anon" = yes; then
14127
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_MMAP_ANONYMOUS 1
14130 _ACEOF
14131
14132 fi
14133
14134 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14135 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14136 if test "${ac_cv_header_stat_broken+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145 #include <sys/types.h>
14146 #include <sys/stat.h>
14147
14148 #if defined S_ISBLK && defined S_IFDIR
14149 # if S_ISBLK (S_IFDIR)
14150 You lose.
14151 # endif
14152 #endif
14153
14154 #if defined S_ISBLK && defined S_IFCHR
14155 # if S_ISBLK (S_IFCHR)
14156 You lose.
14157 # endif
14158 #endif
14159
14160 #if defined S_ISLNK && defined S_IFREG
14161 # if S_ISLNK (S_IFREG)
14162 You lose.
14163 # endif
14164 #endif
14165
14166 #if defined S_ISSOCK && defined S_IFREG
14167 # if S_ISSOCK (S_IFREG)
14168 You lose.
14169 # endif
14170 #endif
14171
14172 _ACEOF
14173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14174   $EGREP "You lose" >/dev/null 2>&1; then
14175   ac_cv_header_stat_broken=yes
14176 else
14177   ac_cv_header_stat_broken=no
14178 fi
14179 rm -f conftest*
14180
14181 fi
14182 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14183 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14184 if test $ac_cv_header_stat_broken = yes; then
14185
14186 cat >>confdefs.h <<\_ACEOF
14187 #define STAT_MACROS_BROKEN 1
14188 _ACEOF
14189
14190 fi
14191
14192 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14193 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14194 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203 #include <sys/types.h>
14204 #include <sys/wait.h>
14205 #ifndef WEXITSTATUS
14206 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14207 #endif
14208 #ifndef WIFEXITED
14209 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14210 #endif
14211
14212 int
14213 main ()
14214 {
14215   int s;
14216   wait (&s);
14217   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14218   ;
14219   return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext
14223 if { (ac_try="$ac_compile"
14224 case "(($ac_try" in
14225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226   *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229   (eval "$ac_compile") 2>conftest.er1
14230   ac_status=$?
14231   grep -v '^ *+' conftest.er1 >conftest.err
14232   rm -f conftest.er1
14233   cat conftest.err >&5
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); } &&
14236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237   { (case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_try") 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; } &&
14246          { ac_try='test -s conftest.$ac_objext'
14247   { (case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_try") 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }; then
14256   ac_cv_header_sys_wait_h=yes
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261         ac_cv_header_sys_wait_h=no
14262 fi
14263
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 fi
14266 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14267 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14268 if test $ac_cv_header_sys_wait_h = yes; then
14269
14270 cat >>confdefs.h <<\_ACEOF
14271 #define HAVE_SYS_WAIT_H 1
14272 _ACEOF
14273
14274 fi
14275
14276 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14277 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14278 if test "${ac_cv_header_time+set}" = set; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281   cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h.  */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h.  */
14287 #include <sys/types.h>
14288 #include <sys/time.h>
14289 #include <time.h>
14290
14291 int
14292 main ()
14293 {
14294 if ((struct tm *) 0)
14295 return 0;
14296   ;
14297   return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304   *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307   (eval "$ac_compile") 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14315   { (case "(($ac_try" in
14316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317   *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320   (eval "$ac_try") 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; } &&
14324          { ac_try='test -s conftest.$ac_objext'
14325   { (case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330   (eval "$ac_try") 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334   ac_cv_header_time=yes
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339         ac_cv_header_time=no
14340 fi
14341
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 fi
14344 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14345 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14346 if test $ac_cv_header_time = yes; then
14347
14348 cat >>confdefs.h <<\_ACEOF
14349 #define TIME_WITH_SYS_TIME 1
14350 _ACEOF
14351
14352 fi
14353
14354
14355
14356
14357
14358
14359
14360
14361 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14362 do
14363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14365   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 fi
14370 ac_res=`eval echo '${'$as_ac_Header'}'`
14371                { echo "$as_me:$LINENO: result: $ac_res" >&5
14372 echo "${ECHO_T}$ac_res" >&6; }
14373 else
14374   # Is the header compilable?
14375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h.  */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h.  */
14383 $ac_includes_default
14384 #include <$ac_header>
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390   *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393   (eval "$ac_compile") 2>conftest.er1
14394   ac_status=$?
14395   grep -v '^ *+' conftest.er1 >conftest.err
14396   rm -f conftest.er1
14397   cat conftest.err >&5
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); } &&
14400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14401   { (case "(($ac_try" in
14402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403   *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406   (eval "$ac_try") 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; } &&
14410          { ac_try='test -s conftest.$ac_objext'
14411   { (case "(($ac_try" in
14412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413   *) ac_try_echo=$ac_try;;
14414 esac
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416   (eval "$ac_try") 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; }; then
14420   ac_header_compiler=yes
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425         ac_header_compiler=no
14426 fi
14427
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430 echo "${ECHO_T}$ac_header_compiler" >&6; }
14431
14432 # Is the header present?
14433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 #include <$ac_header>
14442 _ACEOF
14443 if { (ac_try="$ac_cpp conftest.$ac_ext"
14444 case "(($ac_try" in
14445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446   *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } >/dev/null; then
14456   if test -s conftest.err; then
14457     ac_cpp_err=$ac_c_preproc_warn_flag
14458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14459   else
14460     ac_cpp_err=
14461   fi
14462 else
14463   ac_cpp_err=yes
14464 fi
14465 if test -z "$ac_cpp_err"; then
14466   ac_header_preproc=yes
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471   ac_header_preproc=no
14472 fi
14473
14474 rm -f conftest.err conftest.$ac_ext
14475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14476 echo "${ECHO_T}$ac_header_preproc" >&6; }
14477
14478 # So?  What about this header?
14479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14480   yes:no: )
14481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14485     ac_header_preproc=yes
14486     ;;
14487   no:yes:* )
14488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14500     ( cat <<\_ASBOX
14501 ## ------------------------------------ ##
14502 ## Report this to http://llvm.org/bugs/ ##
14503 ## ------------------------------------ ##
14504 _ASBOX
14505      ) | sed "s/^/$as_me: WARNING:     /" >&2
14506     ;;
14507 esac
14508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511   echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513   eval "$as_ac_Header=\$ac_header_preproc"
14514 fi
14515 ac_res=`eval echo '${'$as_ac_Header'}'`
14516                { echo "$as_me:$LINENO: result: $ac_res" >&5
14517 echo "${ECHO_T}$ac_res" >&6; }
14518
14519 fi
14520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14521   cat >>confdefs.h <<_ACEOF
14522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14523 _ACEOF
14524
14525 fi
14526
14527 done
14528
14529
14530
14531
14532
14533
14534
14535 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14536 do
14537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14539   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542   echo $ECHO_N "(cached) $ECHO_C" >&6
14543 fi
14544 ac_res=`eval echo '${'$as_ac_Header'}'`
14545                { echo "$as_me:$LINENO: result: $ac_res" >&5
14546 echo "${ECHO_T}$ac_res" >&6; }
14547 else
14548   # Is the header compilable?
14549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h.  */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h.  */
14557 $ac_includes_default
14558 #include <$ac_header>
14559 _ACEOF
14560 rm -f conftest.$ac_objext
14561 if { (ac_try="$ac_compile"
14562 case "(($ac_try" in
14563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564   *) ac_try_echo=$ac_try;;
14565 esac
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567   (eval "$ac_compile") 2>conftest.er1
14568   ac_status=$?
14569   grep -v '^ *+' conftest.er1 >conftest.err
14570   rm -f conftest.er1
14571   cat conftest.err >&5
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); } &&
14574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14575   { (case "(($ac_try" in
14576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577   *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580   (eval "$ac_try") 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; } &&
14584          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; }; then
14594   ac_header_compiler=yes
14595 else
14596   echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599         ac_header_compiler=no
14600 fi
14601
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14604 echo "${ECHO_T}$ac_header_compiler" >&6; }
14605
14606 # Is the header present?
14607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615 #include <$ac_header>
14616 _ACEOF
14617 if { (ac_try="$ac_cpp conftest.$ac_ext"
14618 case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } >/dev/null; then
14630   if test -s conftest.err; then
14631     ac_cpp_err=$ac_c_preproc_warn_flag
14632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14633   else
14634     ac_cpp_err=
14635   fi
14636 else
14637   ac_cpp_err=yes
14638 fi
14639 if test -z "$ac_cpp_err"; then
14640   ac_header_preproc=yes
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645   ac_header_preproc=no
14646 fi
14647
14648 rm -f conftest.err conftest.$ac_ext
14649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14650 echo "${ECHO_T}$ac_header_preproc" >&6; }
14651
14652 # So?  What about this header?
14653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14654   yes:no: )
14655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14659     ac_header_preproc=yes
14660     ;;
14661   no:yes:* )
14662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14674     ( cat <<\_ASBOX
14675 ## ------------------------------------ ##
14676 ## Report this to http://llvm.org/bugs/ ##
14677 ## ------------------------------------ ##
14678 _ASBOX
14679      ) | sed "s/^/$as_me: WARNING:     /" >&2
14680     ;;
14681 esac
14682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687   eval "$as_ac_Header=\$ac_header_preproc"
14688 fi
14689 ac_res=`eval echo '${'$as_ac_Header'}'`
14690                { echo "$as_me:$LINENO: result: $ac_res" >&5
14691 echo "${ECHO_T}$ac_res" >&6; }
14692
14693 fi
14694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14695   cat >>confdefs.h <<_ACEOF
14696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14697 _ACEOF
14698
14699 fi
14700
14701 done
14702
14703
14704
14705 for ac_header in utime.h windows.h
14706 do
14707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 fi
14714 ac_res=`eval echo '${'$as_ac_Header'}'`
14715                { echo "$as_me:$LINENO: result: $ac_res" >&5
14716 echo "${ECHO_T}$ac_res" >&6; }
14717 else
14718   # Is the header compilable?
14719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727 $ac_includes_default
14728 #include <$ac_header>
14729 _ACEOF
14730 rm -f conftest.$ac_objext
14731 if { (ac_try="$ac_compile"
14732 case "(($ac_try" in
14733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734   *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737   (eval "$ac_compile") 2>conftest.er1
14738   ac_status=$?
14739   grep -v '^ *+' conftest.er1 >conftest.err
14740   rm -f conftest.er1
14741   cat conftest.err >&5
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } &&
14744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745   { (case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_try") 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; } &&
14754          { ac_try='test -s conftest.$ac_objext'
14755   { (case "(($ac_try" in
14756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757   *) ac_try_echo=$ac_try;;
14758 esac
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760   (eval "$ac_try") 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   ac_header_compiler=yes
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769         ac_header_compiler=no
14770 fi
14771
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14774 echo "${ECHO_T}$ac_header_compiler" >&6; }
14775
14776 # Is the header present?
14777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785 #include <$ac_header>
14786 _ACEOF
14787 if { (ac_try="$ac_cpp conftest.$ac_ext"
14788 case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14794   ac_status=$?
14795   grep -v '^ *+' conftest.er1 >conftest.err
14796   rm -f conftest.er1
14797   cat conftest.err >&5
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); } >/dev/null; then
14800   if test -s conftest.err; then
14801     ac_cpp_err=$ac_c_preproc_warn_flag
14802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14803   else
14804     ac_cpp_err=
14805   fi
14806 else
14807   ac_cpp_err=yes
14808 fi
14809 if test -z "$ac_cpp_err"; then
14810   ac_header_preproc=yes
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815   ac_header_preproc=no
14816 fi
14817
14818 rm -f conftest.err conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6; }
14821
14822 # So?  What about this header?
14823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14824   yes:no: )
14825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14829     ac_header_preproc=yes
14830     ;;
14831   no:yes:* )
14832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14844     ( cat <<\_ASBOX
14845 ## ------------------------------------ ##
14846 ## Report this to http://llvm.org/bugs/ ##
14847 ## ------------------------------------ ##
14848 _ASBOX
14849      ) | sed "s/^/$as_me: WARNING:     /" >&2
14850     ;;
14851 esac
14852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   eval "$as_ac_Header=\$ac_header_preproc"
14858 fi
14859 ac_res=`eval echo '${'$as_ac_Header'}'`
14860                { echo "$as_me:$LINENO: result: $ac_res" >&5
14861 echo "${ECHO_T}$ac_res" >&6; }
14862
14863 fi
14864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14865   cat >>confdefs.h <<_ACEOF
14866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14867 _ACEOF
14868
14869 fi
14870
14871 done
14872
14873
14874
14875
14876
14877
14878 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14879 do
14880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14882   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885   echo $ECHO_N "(cached) $ECHO_C" >&6
14886 fi
14887 ac_res=`eval echo '${'$as_ac_Header'}'`
14888                { echo "$as_me:$LINENO: result: $ac_res" >&5
14889 echo "${ECHO_T}$ac_res" >&6; }
14890 else
14891   # Is the header compilable?
14892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14894 cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h.  */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h.  */
14900 $ac_includes_default
14901 #include <$ac_header>
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (ac_try="$ac_compile"
14905 case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910   (eval "$ac_compile") 2>conftest.er1
14911   ac_status=$?
14912   grep -v '^ *+' conftest.er1 >conftest.err
14913   rm -f conftest.er1
14914   cat conftest.err >&5
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } &&
14917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14918   { (case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_try") 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; } &&
14927          { ac_try='test -s conftest.$ac_objext'
14928   { (case "(($ac_try" in
14929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930   *) ac_try_echo=$ac_try;;
14931 esac
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933   (eval "$ac_try") 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937   ac_header_compiler=yes
14938 else
14939   echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942         ac_header_compiler=no
14943 fi
14944
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6; }
14948
14949 # Is the header present?
14950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 #include <$ac_header>
14959 _ACEOF
14960 if { (ac_try="$ac_cpp conftest.$ac_ext"
14961 case "(($ac_try" in
14962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963   *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14967   ac_status=$?
14968   grep -v '^ *+' conftest.er1 >conftest.err
14969   rm -f conftest.er1
14970   cat conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } >/dev/null; then
14973   if test -s conftest.err; then
14974     ac_cpp_err=$ac_c_preproc_warn_flag
14975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14976   else
14977     ac_cpp_err=
14978   fi
14979 else
14980   ac_cpp_err=yes
14981 fi
14982 if test -z "$ac_cpp_err"; then
14983   ac_header_preproc=yes
14984 else
14985   echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988   ac_header_preproc=no
14989 fi
14990
14991 rm -f conftest.err conftest.$ac_ext
14992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993 echo "${ECHO_T}$ac_header_preproc" >&6; }
14994
14995 # So?  What about this header?
14996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14997   yes:no: )
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002     ac_header_preproc=yes
15003     ;;
15004   no:yes:* )
15005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15017     ( cat <<\_ASBOX
15018 ## ------------------------------------ ##
15019 ## Report this to http://llvm.org/bugs/ ##
15020 ## ------------------------------------ ##
15021 _ASBOX
15022      ) | sed "s/^/$as_me: WARNING:     /" >&2
15023     ;;
15024 esac
15025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030   eval "$as_ac_Header=\$ac_header_preproc"
15031 fi
15032 ac_res=`eval echo '${'$as_ac_Header'}'`
15033                { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035
15036 fi
15037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15040 _ACEOF
15041
15042 fi
15043
15044 done
15045
15046
15047
15048
15049
15050 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15051 do
15052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15054   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 fi
15059 ac_res=`eval echo '${'$as_ac_Header'}'`
15060                { echo "$as_me:$LINENO: result: $ac_res" >&5
15061 echo "${ECHO_T}$ac_res" >&6; }
15062 else
15063   # Is the header compilable?
15064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h.  */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h.  */
15072 $ac_includes_default
15073 #include <$ac_header>
15074 _ACEOF
15075 rm -f conftest.$ac_objext
15076 if { (ac_try="$ac_compile"
15077 case "(($ac_try" in
15078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079   *) ac_try_echo=$ac_try;;
15080 esac
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082   (eval "$ac_compile") 2>conftest.er1
15083   ac_status=$?
15084   grep -v '^ *+' conftest.er1 >conftest.err
15085   rm -f conftest.er1
15086   cat conftest.err >&5
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15090   { (case "(($ac_try" in
15091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092   *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095   (eval "$ac_try") 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); }; } &&
15099          { ac_try='test -s conftest.$ac_objext'
15100   { (case "(($ac_try" in
15101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102   *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105   (eval "$ac_try") 2>&5
15106   ac_status=$?
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; }; then
15109   ac_header_compiler=yes
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114         ac_header_compiler=no
15115 fi
15116
15117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15119 echo "${ECHO_T}$ac_header_compiler" >&6; }
15120
15121 # Is the header present?
15122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h.  */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h.  */
15130 #include <$ac_header>
15131 _ACEOF
15132 if { (ac_try="$ac_cpp conftest.$ac_ext"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15139   ac_status=$?
15140   grep -v '^ *+' conftest.er1 >conftest.err
15141   rm -f conftest.er1
15142   cat conftest.err >&5
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } >/dev/null; then
15145   if test -s conftest.err; then
15146     ac_cpp_err=$ac_c_preproc_warn_flag
15147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15148   else
15149     ac_cpp_err=
15150   fi
15151 else
15152   ac_cpp_err=yes
15153 fi
15154 if test -z "$ac_cpp_err"; then
15155   ac_header_preproc=yes
15156 else
15157   echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15159
15160   ac_header_preproc=no
15161 fi
15162
15163 rm -f conftest.err conftest.$ac_ext
15164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15165 echo "${ECHO_T}$ac_header_preproc" >&6; }
15166
15167 # So?  What about this header?
15168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15169   yes:no: )
15170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15174     ac_header_preproc=yes
15175     ;;
15176   no:yes:* )
15177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15189     ( cat <<\_ASBOX
15190 ## ------------------------------------ ##
15191 ## Report this to http://llvm.org/bugs/ ##
15192 ## ------------------------------------ ##
15193 _ASBOX
15194      ) | sed "s/^/$as_me: WARNING:     /" >&2
15195     ;;
15196 esac
15197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   eval "$as_ac_Header=\$ac_header_preproc"
15203 fi
15204 ac_res=`eval echo '${'$as_ac_Header'}'`
15205                { echo "$as_me:$LINENO: result: $ac_res" >&5
15206 echo "${ECHO_T}$ac_res" >&6; }
15207
15208 fi
15209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15210   cat >>confdefs.h <<_ACEOF
15211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15212 _ACEOF
15213
15214 fi
15215
15216 done
15217
15218
15219 for ac_header in valgrind/valgrind.h
15220 do
15221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15223   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226   echo $ECHO_N "(cached) $ECHO_C" >&6
15227 fi
15228 ac_res=`eval echo '${'$as_ac_Header'}'`
15229                { echo "$as_me:$LINENO: result: $ac_res" >&5
15230 echo "${ECHO_T}$ac_res" >&6; }
15231 else
15232   # Is the header compilable?
15233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15234 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15242 #include <$ac_header>
15243 _ACEOF
15244 rm -f conftest.$ac_objext
15245 if { (ac_try="$ac_compile"
15246 case "(($ac_try" in
15247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248   *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251   (eval "$ac_compile") 2>conftest.er1
15252   ac_status=$?
15253   grep -v '^ *+' conftest.er1 >conftest.err
15254   rm -f conftest.er1
15255   cat conftest.err >&5
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); } &&
15258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15259   { (case "(($ac_try" in
15260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261   *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264   (eval "$ac_try") 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; } &&
15268          { ac_try='test -s conftest.$ac_objext'
15269   { (case "(($ac_try" in
15270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271   *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274   (eval "$ac_try") 2>&5
15275   ac_status=$?
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); }; }; then
15278   ac_header_compiler=yes
15279 else
15280   echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283         ac_header_compiler=no
15284 fi
15285
15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15288 echo "${ECHO_T}$ac_header_compiler" >&6; }
15289
15290 # Is the header present?
15291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299 #include <$ac_header>
15300 _ACEOF
15301 if { (ac_try="$ac_cpp conftest.$ac_ext"
15302 case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } >/dev/null; then
15314   if test -s conftest.err; then
15315     ac_cpp_err=$ac_c_preproc_warn_flag
15316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15317   else
15318     ac_cpp_err=
15319   fi
15320 else
15321   ac_cpp_err=yes
15322 fi
15323 if test -z "$ac_cpp_err"; then
15324   ac_header_preproc=yes
15325 else
15326   echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329   ac_header_preproc=no
15330 fi
15331
15332 rm -f conftest.err conftest.$ac_ext
15333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15334 echo "${ECHO_T}$ac_header_preproc" >&6; }
15335
15336 # So?  What about this header?
15337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15338   yes:no: )
15339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15343     ac_header_preproc=yes
15344     ;;
15345   no:yes:* )
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15358     ( cat <<\_ASBOX
15359 ## ------------------------------------ ##
15360 ## Report this to http://llvm.org/bugs/ ##
15361 ## ------------------------------------ ##
15362 _ASBOX
15363      ) | sed "s/^/$as_me: WARNING:     /" >&2
15364     ;;
15365 esac
15366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   eval "$as_ac_Header=\$ac_header_preproc"
15372 fi
15373 ac_res=`eval echo '${'$as_ac_Header'}'`
15374                { echo "$as_me:$LINENO: result: $ac_res" >&5
15375 echo "${ECHO_T}$ac_res" >&6; }
15376
15377 fi
15378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15379   cat >>confdefs.h <<_ACEOF
15380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15381 _ACEOF
15382
15383 fi
15384
15385 done
15386
15387
15388 for ac_header in fenv.h
15389 do
15390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395   echo $ECHO_N "(cached) $ECHO_C" >&6
15396 fi
15397 ac_res=`eval echo '${'$as_ac_Header'}'`
15398                { echo "$as_me:$LINENO: result: $ac_res" >&5
15399 echo "${ECHO_T}$ac_res" >&6; }
15400 else
15401   # Is the header compilable?
15402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h.  */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h.  */
15410 $ac_includes_default
15411 #include <$ac_header>
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
15415 case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_compile") 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } &&
15427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428   { (case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_try") 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; } &&
15437          { ac_try='test -s conftest.$ac_objext'
15438   { (case "(($ac_try" in
15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440   *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443   (eval "$ac_try") 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; }; then
15447   ac_header_compiler=yes
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452         ac_header_compiler=no
15453 fi
15454
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6; }
15458
15459 # Is the header present?
15460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 #include <$ac_header>
15469 _ACEOF
15470 if { (ac_try="$ac_cpp conftest.$ac_ext"
15471 case "(($ac_try" in
15472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473   *) ac_try_echo=$ac_try;;
15474 esac
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15477   ac_status=$?
15478   grep -v '^ *+' conftest.er1 >conftest.err
15479   rm -f conftest.er1
15480   cat conftest.err >&5
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } >/dev/null; then
15483   if test -s conftest.err; then
15484     ac_cpp_err=$ac_c_preproc_warn_flag
15485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15486   else
15487     ac_cpp_err=
15488   fi
15489 else
15490   ac_cpp_err=yes
15491 fi
15492 if test -z "$ac_cpp_err"; then
15493   ac_header_preproc=yes
15494 else
15495   echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498   ac_header_preproc=no
15499 fi
15500
15501 rm -f conftest.err conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503 echo "${ECHO_T}$ac_header_preproc" >&6; }
15504
15505 # So?  What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15507   yes:no: )
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15512     ac_header_preproc=yes
15513     ;;
15514   no:yes:* )
15515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15527     ( cat <<\_ASBOX
15528 ## ------------------------------------ ##
15529 ## Report this to http://llvm.org/bugs/ ##
15530 ## ------------------------------------ ##
15531 _ASBOX
15532      ) | sed "s/^/$as_me: WARNING:     /" >&2
15533     ;;
15534 esac
15535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538   echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540   eval "$as_ac_Header=\$ac_header_preproc"
15541 fi
15542 ac_res=`eval echo '${'$as_ac_Header'}'`
15543                { echo "$as_me:$LINENO: result: $ac_res" >&5
15544 echo "${ECHO_T}$ac_res" >&6; }
15545
15546 fi
15547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15548   cat >>confdefs.h <<_ACEOF
15549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15550 _ACEOF
15551
15552 fi
15553
15554 done
15555
15556 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15557
15558 for ac_header in pthread.h
15559 do
15560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565   echo $ECHO_N "(cached) $ECHO_C" >&6
15566 fi
15567 ac_res=`eval echo '${'$as_ac_Header'}'`
15568                { echo "$as_me:$LINENO: result: $ac_res" >&5
15569 echo "${ECHO_T}$ac_res" >&6; }
15570 else
15571   # Is the header compilable?
15572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15574 cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 $ac_includes_default
15581 #include <$ac_header>
15582 _ACEOF
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598   { (case "(($ac_try" in
15599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600   *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603   (eval "$ac_try") 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_try") 2>&5
15614   ac_status=$?
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); }; }; then
15617   ac_header_compiler=yes
15618 else
15619   echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15621
15622         ac_header_compiler=no
15623 fi
15624
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627 echo "${ECHO_T}$ac_header_compiler" >&6; }
15628
15629 # Is the header present?
15630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 #include <$ac_header>
15639 _ACEOF
15640 if { (ac_try="$ac_cpp conftest.$ac_ext"
15641 case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15647   ac_status=$?
15648   grep -v '^ *+' conftest.er1 >conftest.err
15649   rm -f conftest.er1
15650   cat conftest.err >&5
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } >/dev/null; then
15653   if test -s conftest.err; then
15654     ac_cpp_err=$ac_c_preproc_warn_flag
15655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15656   else
15657     ac_cpp_err=
15658   fi
15659 else
15660   ac_cpp_err=yes
15661 fi
15662 if test -z "$ac_cpp_err"; then
15663   ac_header_preproc=yes
15664 else
15665   echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668   ac_header_preproc=no
15669 fi
15670
15671 rm -f conftest.err conftest.$ac_ext
15672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6; }
15674
15675 # So?  What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15677   yes:no: )
15678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682     ac_header_preproc=yes
15683     ;;
15684   no:yes:* )
15685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15697     ( cat <<\_ASBOX
15698 ## ------------------------------------ ##
15699 ## Report this to http://llvm.org/bugs/ ##
15700 ## ------------------------------------ ##
15701 _ASBOX
15702      ) | sed "s/^/$as_me: WARNING:     /" >&2
15703     ;;
15704 esac
15705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   eval "$as_ac_Header=\$ac_header_preproc"
15711 fi
15712 ac_res=`eval echo '${'$as_ac_Header'}'`
15713                { echo "$as_me:$LINENO: result: $ac_res" >&5
15714 echo "${ECHO_T}$ac_res" >&6; }
15715
15716 fi
15717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15718   cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15720 _ACEOF
15721  HAVE_PTHREAD=1
15722
15723 else
15724   HAVE_PTHREAD=0
15725
15726 fi
15727
15728 done
15729
15730 else
15731   HAVE_PTHREAD=0
15732
15733 fi
15734
15735 if test "$llvm_cv_enable_libffi" = "yes" ; then
15736
15737
15738 for ac_header in ffi.h ffi/ffi.h
15739 do
15740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15742   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745   echo $ECHO_N "(cached) $ECHO_C" >&6
15746 fi
15747 ac_res=`eval echo '${'$as_ac_Header'}'`
15748                { echo "$as_me:$LINENO: result: $ac_res" >&5
15749 echo "${ECHO_T}$ac_res" >&6; }
15750 else
15751   # Is the header compilable?
15752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 $ac_includes_default
15761 #include <$ac_header>
15762 _ACEOF
15763 rm -f conftest.$ac_objext
15764 if { (ac_try="$ac_compile"
15765 case "(($ac_try" in
15766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767   *) ac_try_echo=$ac_try;;
15768 esac
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770   (eval "$ac_compile") 2>conftest.er1
15771   ac_status=$?
15772   grep -v '^ *+' conftest.er1 >conftest.err
15773   rm -f conftest.er1
15774   cat conftest.err >&5
15775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); } &&
15777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15778   { (case "(($ac_try" in
15779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780   *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783   (eval "$ac_try") 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); }; } &&
15787          { ac_try='test -s conftest.$ac_objext'
15788   { (case "(($ac_try" in
15789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790   *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793   (eval "$ac_try") 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; }; then
15797   ac_header_compiler=yes
15798 else
15799   echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802         ac_header_compiler=no
15803 fi
15804
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15807 echo "${ECHO_T}$ac_header_compiler" >&6; }
15808
15809 # Is the header present?
15810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818 #include <$ac_header>
15819 _ACEOF
15820 if { (ac_try="$ac_cpp conftest.$ac_ext"
15821 case "(($ac_try" in
15822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823   *) ac_try_echo=$ac_try;;
15824 esac
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15827   ac_status=$?
15828   grep -v '^ *+' conftest.er1 >conftest.err
15829   rm -f conftest.er1
15830   cat conftest.err >&5
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } >/dev/null; then
15833   if test -s conftest.err; then
15834     ac_cpp_err=$ac_c_preproc_warn_flag
15835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15836   else
15837     ac_cpp_err=
15838   fi
15839 else
15840   ac_cpp_err=yes
15841 fi
15842 if test -z "$ac_cpp_err"; then
15843   ac_header_preproc=yes
15844 else
15845   echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848   ac_header_preproc=no
15849 fi
15850
15851 rm -f conftest.err conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6; }
15854
15855 # So?  What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857   yes:no: )
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862     ac_header_preproc=yes
15863     ;;
15864   no:yes:* )
15865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15877     ( cat <<\_ASBOX
15878 ## ------------------------------------ ##
15879 ## Report this to http://llvm.org/bugs/ ##
15880 ## ------------------------------------ ##
15881 _ASBOX
15882      ) | sed "s/^/$as_me: WARNING:     /" >&2
15883     ;;
15884 esac
15885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890   eval "$as_ac_Header=\$ac_header_preproc"
15891 fi
15892 ac_res=`eval echo '${'$as_ac_Header'}'`
15893                { echo "$as_me:$LINENO: result: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15895
15896 fi
15897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15898   cat >>confdefs.h <<_ACEOF
15899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15900 _ACEOF
15901
15902 fi
15903
15904 done
15905
15906 fi
15907
15908
15909 for ac_header in CrashReporterClient.h
15910 do
15911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916   echo $ECHO_N "(cached) $ECHO_C" >&6
15917 fi
15918 ac_res=`eval echo '${'$as_ac_Header'}'`
15919                { echo "$as_me:$LINENO: result: $ac_res" >&5
15920 echo "${ECHO_T}$ac_res" >&6; }
15921 else
15922   # Is the header compilable?
15923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h.  */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h.  */
15931 $ac_includes_default
15932 #include <$ac_header>
15933 _ACEOF
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941   (eval "$ac_compile") 2>conftest.er1
15942   ac_status=$?
15943   grep -v '^ *+' conftest.er1 >conftest.err
15944   rm -f conftest.er1
15945   cat conftest.err >&5
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } &&
15948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949   { (case "(($ac_try" in
15950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951   *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954   (eval "$ac_try") 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; } &&
15958          { ac_try='test -s conftest.$ac_objext'
15959   { (case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_try") 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; }; then
15968   ac_header_compiler=yes
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973         ac_header_compiler=no
15974 fi
15975
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978 echo "${ECHO_T}$ac_header_compiler" >&6; }
15979
15980 # Is the header present?
15981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15983 cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989 #include <$ac_header>
15990 _ACEOF
15991 if { (ac_try="$ac_cpp conftest.$ac_ext"
15992 case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15998   ac_status=$?
15999   grep -v '^ *+' conftest.er1 >conftest.err
16000   rm -f conftest.er1
16001   cat conftest.err >&5
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } >/dev/null; then
16004   if test -s conftest.err; then
16005     ac_cpp_err=$ac_c_preproc_warn_flag
16006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16007   else
16008     ac_cpp_err=
16009   fi
16010 else
16011   ac_cpp_err=yes
16012 fi
16013 if test -z "$ac_cpp_err"; then
16014   ac_header_preproc=yes
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019   ac_header_preproc=no
16020 fi
16021
16022 rm -f conftest.err conftest.$ac_ext
16023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16024 echo "${ECHO_T}$ac_header_preproc" >&6; }
16025
16026 # So?  What about this header?
16027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16028   yes:no: )
16029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16033     ac_header_preproc=yes
16034     ;;
16035   no:yes:* )
16036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16048     ( cat <<\_ASBOX
16049 ## ------------------------------------ ##
16050 ## Report this to http://llvm.org/bugs/ ##
16051 ## ------------------------------------ ##
16052 _ASBOX
16053      ) | sed "s/^/$as_me: WARNING:     /" >&2
16054     ;;
16055 esac
16056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16059   echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061   eval "$as_ac_Header=\$ac_header_preproc"
16062 fi
16063 ac_res=`eval echo '${'$as_ac_Header'}'`
16064                { echo "$as_me:$LINENO: result: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16066
16067 fi
16068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16069   cat >>confdefs.h <<_ACEOF
16070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16071 _ACEOF
16072
16073 fi
16074
16075 done
16076
16077
16078 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16079 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 extern const char *__crashreporter_info__;
16087       int main() {
16088         __crashreporter_info__ = "test";
16089         return 0;
16090       }
16091
16092 _ACEOF
16093 rm -f conftest.$ac_objext conftest$ac_exeext
16094 if { (ac_try="$ac_link"
16095 case "(($ac_try" in
16096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097   *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100   (eval "$ac_link") 2>conftest.er1
16101   ac_status=$?
16102   grep -v '^ *+' conftest.er1 >conftest.err
16103   rm -f conftest.er1
16104   cat conftest.err >&5
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } &&
16107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16108   { (case "(($ac_try" in
16109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110   *) ac_try_echo=$ac_try;;
16111 esac
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113   (eval "$ac_try") 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); }; } &&
16117          { ac_try='test -s conftest$ac_exeext'
16118   { (case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_try") 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; }; then
16127   { echo "$as_me:$LINENO: result: yes" >&5
16128 echo "${ECHO_T}yes" >&6; }
16129
16130 cat >>confdefs.h <<\_ACEOF
16131 #define HAVE_CRASHREPORTER_INFO 1
16132 _ACEOF
16133
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138         { echo "$as_me:$LINENO: result: no" >&5
16139 echo "${ECHO_T}no" >&6; }
16140
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_CRASHREPORTER_INFO 0
16143 _ACEOF
16144
16145 fi
16146
16147 rm -f core conftest.err conftest.$ac_objext \
16148       conftest$ac_exeext conftest.$ac_ext
16149
16150
16151
16152
16153   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16154 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16155 if test "${ac_cv_huge_val_sanity+set}" = set; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158
16159     ac_ext=cpp
16160 ac_cpp='$CXXCPP $CPPFLAGS'
16161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16164
16165     ac_save_CXXFLAGS=$CXXFLAGS
16166     CXXFLAGS="$CXXFLAGS -pedantic"
16167     if test "$cross_compiling" = yes; then
16168   ac_cv_huge_val_sanity=yes
16169 else
16170   cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h.  */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h.  */
16176 #include <math.h>
16177 int
16178 main ()
16179 {
16180 double x = HUGE_VAL; return x != x;
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_link") 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16196   { (case "(($ac_try" in
16197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198   *) ac_try_echo=$ac_try;;
16199 esac
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201   (eval "$ac_try") 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; }; then
16205   ac_cv_huge_val_sanity=yes
16206 else
16207   echo "$as_me: program exited with status $ac_status" >&5
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ( exit $ac_status )
16212 ac_cv_huge_val_sanity=no
16213 fi
16214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16215 fi
16216
16217
16218     CXXFLAGS=$ac_save_CXXFLAGS
16219     ac_ext=c
16220 ac_cpp='$CPP $CPPFLAGS'
16221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16224
16225
16226 fi
16227 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16228 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16229   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16230
16231
16232 { echo "$as_me:$LINENO: checking for pid_t" >&5
16233 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16234 if test "${ac_cv_type_pid_t+set}" = set; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 $ac_includes_default
16244 typedef pid_t ac__type_new_;
16245 int
16246 main ()
16247 {
16248 if ((ac__type_new_ *) 0)
16249   return 0;
16250 if (sizeof (ac__type_new_))
16251   return 0;
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 rm -f conftest.$ac_objext
16257 if { (ac_try="$ac_compile"
16258 case "(($ac_try" in
16259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260   *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263   (eval "$ac_compile") 2>conftest.er1
16264   ac_status=$?
16265   grep -v '^ *+' conftest.er1 >conftest.err
16266   rm -f conftest.er1
16267   cat conftest.err >&5
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } &&
16270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271   { (case "(($ac_try" in
16272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273   *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276   (eval "$ac_try") 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; } &&
16280          { ac_try='test -s conftest.$ac_objext'
16281   { (case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_try") 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }; }; then
16290   ac_cv_type_pid_t=yes
16291 else
16292   echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295         ac_cv_type_pid_t=no
16296 fi
16297
16298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 fi
16300 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16301 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16302 if test $ac_cv_type_pid_t = yes; then
16303   :
16304 else
16305
16306 cat >>confdefs.h <<_ACEOF
16307 #define pid_t int
16308 _ACEOF
16309
16310 fi
16311
16312 { echo "$as_me:$LINENO: checking for size_t" >&5
16313 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16314 if test "${ac_cv_type_size_t+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 $ac_includes_default
16324 typedef size_t ac__type_new_;
16325 int
16326 main ()
16327 {
16328 if ((ac__type_new_ *) 0)
16329   return 0;
16330 if (sizeof (ac__type_new_))
16331   return 0;
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343   (eval "$ac_compile") 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16351   { (case "(($ac_try" in
16352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353   *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356   (eval "$ac_try") 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; } &&
16360          { ac_try='test -s conftest.$ac_objext'
16361   { (case "(($ac_try" in
16362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363   *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366   (eval "$ac_try") 2>&5
16367   ac_status=$?
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); }; }; then
16370   ac_cv_type_size_t=yes
16371 else
16372   echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16374
16375         ac_cv_type_size_t=no
16376 fi
16377
16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379 fi
16380 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16381 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16382 if test $ac_cv_type_size_t = yes; then
16383   :
16384 else
16385
16386 cat >>confdefs.h <<_ACEOF
16387 #define size_t unsigned int
16388 _ACEOF
16389
16390 fi
16391
16392
16393 cat >>confdefs.h <<_ACEOF
16394 #define RETSIGTYPE void
16395 _ACEOF
16396
16397 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16398 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16399 if test "${ac_cv_struct_tm+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h.  */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h.  */
16408 #include <sys/types.h>
16409 #include <time.h>
16410
16411 int
16412 main ()
16413 {
16414 struct tm *tp; tp->tm_sec;
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 rm -f conftest.$ac_objext
16420 if { (ac_try="$ac_compile"
16421 case "(($ac_try" in
16422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423   *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426   (eval "$ac_compile") 2>conftest.er1
16427   ac_status=$?
16428   grep -v '^ *+' conftest.er1 >conftest.err
16429   rm -f conftest.er1
16430   cat conftest.err >&5
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } &&
16433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16434   { (case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_try") 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); }; } &&
16443          { ac_try='test -s conftest.$ac_objext'
16444   { (case "(($ac_try" in
16445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446   *) ac_try_echo=$ac_try;;
16447 esac
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449   (eval "$ac_try") 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); }; }; then
16453   ac_cv_struct_tm=time.h
16454 else
16455   echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458         ac_cv_struct_tm=sys/time.h
16459 fi
16460
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462 fi
16463 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16464 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16465 if test $ac_cv_struct_tm = sys/time.h; then
16466
16467 cat >>confdefs.h <<\_ACEOF
16468 #define TM_IN_SYS_TIME 1
16469 _ACEOF
16470
16471 fi
16472
16473 { echo "$as_me:$LINENO: checking for int64_t" >&5
16474 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16475 if test "${ac_cv_type_int64_t+set}" = set; then
16476   echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478   cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484 $ac_includes_default
16485 typedef int64_t ac__type_new_;
16486 int
16487 main ()
16488 {
16489 if ((ac__type_new_ *) 0)
16490   return 0;
16491 if (sizeof (ac__type_new_))
16492   return 0;
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_compile") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } &&
16511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512   { (case "(($ac_try" in
16513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514   *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517   (eval "$ac_try") 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; } &&
16521          { ac_try='test -s conftest.$ac_objext'
16522   { (case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_try") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531   ac_cv_type_int64_t=yes
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536         ac_cv_type_int64_t=no
16537 fi
16538
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 fi
16541 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16542 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16543 if test $ac_cv_type_int64_t = yes; then
16544
16545 cat >>confdefs.h <<_ACEOF
16546 #define HAVE_INT64_T 1
16547 _ACEOF
16548
16549
16550 else
16551   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16552 echo "$as_me: error: Type int64_t required but not found" >&2;}
16553    { (exit 1); exit 1; }; }
16554 fi
16555
16556 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16557 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16558 if test "${ac_cv_type_uint64_t+set}" = set; then
16559   echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561   cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h.  */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h.  */
16567 $ac_includes_default
16568 typedef uint64_t ac__type_new_;
16569 int
16570 main ()
16571 {
16572 if ((ac__type_new_ *) 0)
16573   return 0;
16574 if (sizeof (ac__type_new_))
16575   return 0;
16576   ;
16577   return 0;
16578 }
16579 _ACEOF
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587   (eval "$ac_compile") 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } &&
16594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595   { (case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600   (eval "$ac_try") 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; } &&
16604          { ac_try='test -s conftest.$ac_objext'
16605   { (case "(($ac_try" in
16606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607   *) ac_try_echo=$ac_try;;
16608 esac
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610   (eval "$ac_try") 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; }; then
16614   ac_cv_type_uint64_t=yes
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619         ac_cv_type_uint64_t=no
16620 fi
16621
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 fi
16624 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16625 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16626 if test $ac_cv_type_uint64_t = yes; then
16627
16628 cat >>confdefs.h <<_ACEOF
16629 #define HAVE_UINT64_T 1
16630 _ACEOF
16631
16632
16633 else
16634   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16635 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16636 if test "${ac_cv_type_u_int64_t+set}" = set; then
16637   echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639   cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645 $ac_includes_default
16646 typedef u_int64_t ac__type_new_;
16647 int
16648 main ()
16649 {
16650 if ((ac__type_new_ *) 0)
16651   return 0;
16652 if (sizeof (ac__type_new_))
16653   return 0;
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (ac_try="$ac_compile"
16660 case "(($ac_try" in
16661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662   *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665   (eval "$ac_compile") 2>conftest.er1
16666   ac_status=$?
16667   grep -v '^ *+' conftest.er1 >conftest.err
16668   rm -f conftest.er1
16669   cat conftest.err >&5
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } &&
16672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16673   { (case "(($ac_try" in
16674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675   *) ac_try_echo=$ac_try;;
16676 esac
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678   (eval "$ac_try") 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; } &&
16682          { ac_try='test -s conftest.$ac_objext'
16683   { (case "(($ac_try" in
16684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685   *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688   (eval "$ac_try") 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }; }; then
16692   ac_cv_type_u_int64_t=yes
16693 else
16694   echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697         ac_cv_type_u_int64_t=no
16698 fi
16699
16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 fi
16702 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16703 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16704 if test $ac_cv_type_u_int64_t = yes; then
16705
16706 cat >>confdefs.h <<_ACEOF
16707 #define HAVE_U_INT64_T 1
16708 _ACEOF
16709
16710
16711 else
16712   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16713 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16714    { (exit 1); exit 1; }; }
16715 fi
16716
16717 fi
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16729 do
16730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16744 #define $ac_func innocuous_$ac_func
16745
16746 /* System header to define __stub macros and hopefully few prototypes,
16747     which can conflict with char $ac_func (); below.
16748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749     <limits.h> exists even on freestanding compilers.  */
16750
16751 #ifdef __STDC__
16752 # include <limits.h>
16753 #else
16754 # include <assert.h>
16755 #endif
16756
16757 #undef $ac_func
16758
16759 /* Override any GCC internal prototype to avoid an error.
16760    Use char because int might match the return type of a GCC
16761    builtin and then its argument prototype would still apply.  */
16762 #ifdef __cplusplus
16763 extern "C"
16764 #endif
16765 char $ac_func ();
16766 /* The GNU C library defines this for functions which it implements
16767     to always fail with ENOSYS.  Some functions are actually named
16768     something starting with __ and the normal name is an alias.  */
16769 #if defined __stub_$ac_func || defined __stub___$ac_func
16770 choke me
16771 #endif
16772
16773 int
16774 main ()
16775 {
16776 return $ac_func ();
16777   ;
16778   return 0;
16779 }
16780 _ACEOF
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (ac_try="$ac_link"
16783 case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_link") 2>conftest.er1
16789   ac_status=$?
16790   grep -v '^ *+' conftest.er1 >conftest.err
16791   rm -f conftest.er1
16792   cat conftest.err >&5
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); } &&
16795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796   { (case "(($ac_try" in
16797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798   *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801   (eval "$ac_try") 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }; } &&
16805          { ac_try='test -s conftest$ac_exeext'
16806   { (case "(($ac_try" in
16807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808   *) ac_try_echo=$ac_try;;
16809 esac
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811   (eval "$ac_try") 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   eval "$as_ac_var=yes"
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820         eval "$as_ac_var=no"
16821 fi
16822
16823 rm -f core conftest.err conftest.$ac_objext \
16824       conftest$ac_exeext conftest.$ac_ext
16825 fi
16826 ac_res=`eval echo '${'$as_ac_var'}'`
16827                { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16829 if test `eval echo '${'$as_ac_var'}'` = yes; then
16830   cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16832 _ACEOF
16833
16834 fi
16835 done
16836
16837
16838
16839
16840
16841 for ac_func in powf fmodf strtof round
16842 do
16843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16857 #define $ac_func innocuous_$ac_func
16858
16859 /* System header to define __stub macros and hopefully few prototypes,
16860     which can conflict with char $ac_func (); below.
16861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16862     <limits.h> exists even on freestanding compilers.  */
16863
16864 #ifdef __STDC__
16865 # include <limits.h>
16866 #else
16867 # include <assert.h>
16868 #endif
16869
16870 #undef $ac_func
16871
16872 /* Override any GCC internal prototype to avoid an error.
16873    Use char because int might match the return type of a GCC
16874    builtin and then its argument prototype would still apply.  */
16875 #ifdef __cplusplus
16876 extern "C"
16877 #endif
16878 char $ac_func ();
16879 /* The GNU C library defines this for functions which it implements
16880     to always fail with ENOSYS.  Some functions are actually named
16881     something starting with __ and the normal name is an alias.  */
16882 #if defined __stub_$ac_func || defined __stub___$ac_func
16883 choke me
16884 #endif
16885
16886 int
16887 main ()
16888 {
16889 return $ac_func ();
16890   ;
16891   return 0;
16892 }
16893 _ACEOF
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (ac_try="$ac_link"
16896 case "(($ac_try" in
16897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898   *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901   (eval "$ac_link") 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } &&
16908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909   { (case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914   (eval "$ac_try") 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; } &&
16918          { ac_try='test -s conftest$ac_exeext'
16919   { (case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_try") 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   eval "$as_ac_var=yes"
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933         eval "$as_ac_var=no"
16934 fi
16935
16936 rm -f core conftest.err conftest.$ac_objext \
16937       conftest$ac_exeext conftest.$ac_ext
16938 fi
16939 ac_res=`eval echo '${'$as_ac_var'}'`
16940                { echo "$as_me:$LINENO: result: $ac_res" >&5
16941 echo "${ECHO_T}$ac_res" >&6; }
16942 if test `eval echo '${'$as_ac_var'}'` = yes; then
16943   cat >>confdefs.h <<_ACEOF
16944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16945 _ACEOF
16946
16947 fi
16948 done
16949
16950
16951
16952
16953
16954
16955 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16956 do
16957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16971 #define $ac_func innocuous_$ac_func
16972
16973 /* System header to define __stub macros and hopefully few prototypes,
16974     which can conflict with char $ac_func (); below.
16975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16976     <limits.h> exists even on freestanding compilers.  */
16977
16978 #ifdef __STDC__
16979 # include <limits.h>
16980 #else
16981 # include <assert.h>
16982 #endif
16983
16984 #undef $ac_func
16985
16986 /* Override any GCC internal prototype to avoid an error.
16987    Use char because int might match the return type of a GCC
16988    builtin and then its argument prototype would still apply.  */
16989 #ifdef __cplusplus
16990 extern "C"
16991 #endif
16992 char $ac_func ();
16993 /* The GNU C library defines this for functions which it implements
16994     to always fail with ENOSYS.  Some functions are actually named
16995     something starting with __ and the normal name is an alias.  */
16996 #if defined __stub_$ac_func || defined __stub___$ac_func
16997 choke me
16998 #endif
16999
17000 int
17001 main ()
17002 {
17003 return $ac_func ();
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_link") 2>conftest.er1
17016   ac_status=$?
17017   grep -v '^ *+' conftest.er1 >conftest.err
17018   rm -f conftest.er1
17019   cat conftest.err >&5
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023   { (case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028   (eval "$ac_try") 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; } &&
17032          { ac_try='test -s conftest$ac_exeext'
17033   { (case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_try") 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; }; then
17042   eval "$as_ac_var=yes"
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047         eval "$as_ac_var=no"
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext \
17051       conftest$ac_exeext conftest.$ac_ext
17052 fi
17053 ac_res=`eval echo '${'$as_ac_var'}'`
17054                { echo "$as_me:$LINENO: result: $ac_res" >&5
17055 echo "${ECHO_T}$ac_res" >&6; }
17056 if test `eval echo '${'$as_ac_var'}'` = yes; then
17057   cat >>confdefs.h <<_ACEOF
17058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17059 _ACEOF
17060
17061 fi
17062 done
17063
17064
17065
17066
17067 for ac_func in isatty mkdtemp mkstemp
17068 do
17069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17073   echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075   cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h.  */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h.  */
17081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17083 #define $ac_func innocuous_$ac_func
17084
17085 /* System header to define __stub macros and hopefully few prototypes,
17086     which can conflict with char $ac_func (); below.
17087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17088     <limits.h> exists even on freestanding compilers.  */
17089
17090 #ifdef __STDC__
17091 # include <limits.h>
17092 #else
17093 # include <assert.h>
17094 #endif
17095
17096 #undef $ac_func
17097
17098 /* Override any GCC internal prototype to avoid an error.
17099    Use char because int might match the return type of a GCC
17100    builtin and then its argument prototype would still apply.  */
17101 #ifdef __cplusplus
17102 extern "C"
17103 #endif
17104 char $ac_func ();
17105 /* The GNU C library defines this for functions which it implements
17106     to always fail with ENOSYS.  Some functions are actually named
17107     something starting with __ and the normal name is an alias.  */
17108 #if defined __stub_$ac_func || defined __stub___$ac_func
17109 choke me
17110 #endif
17111
17112 int
17113 main ()
17114 {
17115 return $ac_func ();
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124   *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127   (eval "$ac_link") 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135   { (case "(($ac_try" in
17136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137   *) ac_try_echo=$ac_try;;
17138 esac
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140   (eval "$ac_try") 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; } &&
17144          { ac_try='test -s conftest$ac_exeext'
17145   { (case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_try") 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; }; then
17154   eval "$as_ac_var=yes"
17155 else
17156   echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159         eval "$as_ac_var=no"
17160 fi
17161
17162 rm -f core conftest.err conftest.$ac_objext \
17163       conftest$ac_exeext conftest.$ac_ext
17164 fi
17165 ac_res=`eval echo '${'$as_ac_var'}'`
17166                { echo "$as_me:$LINENO: result: $ac_res" >&5
17167 echo "${ECHO_T}$ac_res" >&6; }
17168 if test `eval echo '${'$as_ac_var'}'` = yes; then
17169   cat >>confdefs.h <<_ACEOF
17170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17171 _ACEOF
17172
17173 fi
17174 done
17175
17176
17177
17178
17179
17180
17181
17182
17183 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17184 do
17185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17189   echo $ECHO_N "(cached) $ECHO_C" >&6
17190 else
17191   cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h.  */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h.  */
17197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17199 #define $ac_func innocuous_$ac_func
17200
17201 /* System header to define __stub macros and hopefully few prototypes,
17202     which can conflict with char $ac_func (); below.
17203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17204     <limits.h> exists even on freestanding compilers.  */
17205
17206 #ifdef __STDC__
17207 # include <limits.h>
17208 #else
17209 # include <assert.h>
17210 #endif
17211
17212 #undef $ac_func
17213
17214 /* Override any GCC internal prototype to avoid an error.
17215    Use char because int might match the return type of a GCC
17216    builtin and then its argument prototype would still apply.  */
17217 #ifdef __cplusplus
17218 extern "C"
17219 #endif
17220 char $ac_func ();
17221 /* The GNU C library defines this for functions which it implements
17222     to always fail with ENOSYS.  Some functions are actually named
17223     something starting with __ and the normal name is an alias.  */
17224 #if defined __stub_$ac_func || defined __stub___$ac_func
17225 choke me
17226 #endif
17227
17228 int
17229 main ()
17230 {
17231 return $ac_func ();
17232   ;
17233   return 0;
17234 }
17235 _ACEOF
17236 rm -f conftest.$ac_objext conftest$ac_exeext
17237 if { (ac_try="$ac_link"
17238 case "(($ac_try" in
17239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240   *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243   (eval "$ac_link") 2>conftest.er1
17244   ac_status=$?
17245   grep -v '^ *+' conftest.er1 >conftest.err
17246   rm -f conftest.er1
17247   cat conftest.err >&5
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); } &&
17250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251   { (case "(($ac_try" in
17252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253   *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256   (eval "$ac_try") 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); }; } &&
17260          { ac_try='test -s conftest$ac_exeext'
17261   { (case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266   (eval "$ac_try") 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }; }; then
17270   eval "$as_ac_var=yes"
17271 else
17272   echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17274
17275         eval "$as_ac_var=no"
17276 fi
17277
17278 rm -f core conftest.err conftest.$ac_objext \
17279       conftest$ac_exeext conftest.$ac_ext
17280 fi
17281 ac_res=`eval echo '${'$as_ac_var'}'`
17282                { echo "$as_me:$LINENO: result: $ac_res" >&5
17283 echo "${ECHO_T}$ac_res" >&6; }
17284 if test `eval echo '${'$as_ac_var'}'` = yes; then
17285   cat >>confdefs.h <<_ACEOF
17286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17287 _ACEOF
17288
17289 fi
17290 done
17291
17292
17293
17294
17295
17296 for ac_func in strerror strerror_r setenv arc4random
17297 do
17298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17302   echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304   cat >conftest.$ac_ext <<_ACEOF
17305 /* confdefs.h.  */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h.  */
17310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17312 #define $ac_func innocuous_$ac_func
17313
17314 /* System header to define __stub macros and hopefully few prototypes,
17315     which can conflict with char $ac_func (); below.
17316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17317     <limits.h> exists even on freestanding compilers.  */
17318
17319 #ifdef __STDC__
17320 # include <limits.h>
17321 #else
17322 # include <assert.h>
17323 #endif
17324
17325 #undef $ac_func
17326
17327 /* Override any GCC internal prototype to avoid an error.
17328    Use char because int might match the return type of a GCC
17329    builtin and then its argument prototype would still apply.  */
17330 #ifdef __cplusplus
17331 extern "C"
17332 #endif
17333 char $ac_func ();
17334 /* The GNU C library defines this for functions which it implements
17335     to always fail with ENOSYS.  Some functions are actually named
17336     something starting with __ and the normal name is an alias.  */
17337 #if defined __stub_$ac_func || defined __stub___$ac_func
17338 choke me
17339 #endif
17340
17341 int
17342 main ()
17343 {
17344 return $ac_func ();
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (ac_try="$ac_link"
17351 case "(($ac_try" in
17352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353   *) ac_try_echo=$ac_try;;
17354 esac
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356   (eval "$ac_link") 2>conftest.er1
17357   ac_status=$?
17358   grep -v '^ *+' conftest.er1 >conftest.err
17359   rm -f conftest.er1
17360   cat conftest.err >&5
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); } &&
17363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17364   { (case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_try") 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); }; } &&
17373          { ac_try='test -s conftest$ac_exeext'
17374   { (case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_try") 2>&5
17380   ac_status=$?
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); }; }; then
17383   eval "$as_ac_var=yes"
17384 else
17385   echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388         eval "$as_ac_var=no"
17389 fi
17390
17391 rm -f core conftest.err conftest.$ac_objext \
17392       conftest$ac_exeext conftest.$ac_ext
17393 fi
17394 ac_res=`eval echo '${'$as_ac_var'}'`
17395                { echo "$as_me:$LINENO: result: $ac_res" >&5
17396 echo "${ECHO_T}$ac_res" >&6; }
17397 if test `eval echo '${'$as_ac_var'}'` = yes; then
17398   cat >>confdefs.h <<_ACEOF
17399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17400 _ACEOF
17401
17402 fi
17403 done
17404
17405
17406
17407
17408
17409 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17410 do
17411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17415   echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417   cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h.  */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h.  */
17423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17425 #define $ac_func innocuous_$ac_func
17426
17427 /* System header to define __stub macros and hopefully few prototypes,
17428     which can conflict with char $ac_func (); below.
17429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17430     <limits.h> exists even on freestanding compilers.  */
17431
17432 #ifdef __STDC__
17433 # include <limits.h>
17434 #else
17435 # include <assert.h>
17436 #endif
17437
17438 #undef $ac_func
17439
17440 /* Override any GCC internal prototype to avoid an error.
17441    Use char because int might match the return type of a GCC
17442    builtin and then its argument prototype would still apply.  */
17443 #ifdef __cplusplus
17444 extern "C"
17445 #endif
17446 char $ac_func ();
17447 /* The GNU C library defines this for functions which it implements
17448     to always fail with ENOSYS.  Some functions are actually named
17449     something starting with __ and the normal name is an alias.  */
17450 #if defined __stub_$ac_func || defined __stub___$ac_func
17451 choke me
17452 #endif
17453
17454 int
17455 main ()
17456 {
17457 return $ac_func ();
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466   *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469   (eval "$ac_link") 2>conftest.er1
17470   ac_status=$?
17471   grep -v '^ *+' conftest.er1 >conftest.err
17472   rm -f conftest.er1
17473   cat conftest.err >&5
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); } &&
17476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17477   { (case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_try") 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); }; } &&
17486          { ac_try='test -s conftest$ac_exeext'
17487   { (case "(($ac_try" in
17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489   *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492   (eval "$ac_try") 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); }; }; then
17496   eval "$as_ac_var=yes"
17497 else
17498   echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17500
17501         eval "$as_ac_var=no"
17502 fi
17503
17504 rm -f core conftest.err conftest.$ac_objext \
17505       conftest$ac_exeext conftest.$ac_ext
17506 fi
17507 ac_res=`eval echo '${'$as_ac_var'}'`
17508                { echo "$as_me:$LINENO: result: $ac_res" >&5
17509 echo "${ECHO_T}$ac_res" >&6; }
17510 if test `eval echo '${'$as_ac_var'}'` = yes; then
17511   cat >>confdefs.h <<_ACEOF
17512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17513 _ACEOF
17514
17515 fi
17516 done
17517
17518
17519
17520
17521
17522
17523 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17524 do
17525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17529   echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531   cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h.  */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h.  */
17537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17539 #define $ac_func innocuous_$ac_func
17540
17541 /* System header to define __stub macros and hopefully few prototypes,
17542     which can conflict with char $ac_func (); below.
17543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17544     <limits.h> exists even on freestanding compilers.  */
17545
17546 #ifdef __STDC__
17547 # include <limits.h>
17548 #else
17549 # include <assert.h>
17550 #endif
17551
17552 #undef $ac_func
17553
17554 /* Override any GCC internal prototype to avoid an error.
17555    Use char because int might match the return type of a GCC
17556    builtin and then its argument prototype would still apply.  */
17557 #ifdef __cplusplus
17558 extern "C"
17559 #endif
17560 char $ac_func ();
17561 /* The GNU C library defines this for functions which it implements
17562     to always fail with ENOSYS.  Some functions are actually named
17563     something starting with __ and the normal name is an alias.  */
17564 #if defined __stub_$ac_func || defined __stub___$ac_func
17565 choke me
17566 #endif
17567
17568 int
17569 main ()
17570 {
17571 return $ac_func ();
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (ac_try="$ac_link"
17578 case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_link") 2>conftest.er1
17584   ac_status=$?
17585   grep -v '^ *+' conftest.er1 >conftest.err
17586   rm -f conftest.er1
17587   cat conftest.err >&5
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); } &&
17590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17591   { (case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_try") 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; } &&
17600          { ac_try='test -s conftest$ac_exeext'
17601   { (case "(($ac_try" in
17602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603   *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606   (eval "$ac_try") 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); }; }; then
17610   eval "$as_ac_var=yes"
17611 else
17612   echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17614
17615         eval "$as_ac_var=no"
17616 fi
17617
17618 rm -f core conftest.err conftest.$ac_objext \
17619       conftest$ac_exeext conftest.$ac_ext
17620 fi
17621 ac_res=`eval echo '${'$as_ac_var'}'`
17622                { echo "$as_me:$LINENO: result: $ac_res" >&5
17623 echo "${ECHO_T}$ac_res" >&6; }
17624 if test `eval echo '${'$as_ac_var'}'` = yes; then
17625   cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17627 _ACEOF
17628
17629 fi
17630 done
17631
17632 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17633 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17634 if test "${llvm_cv_c_printf_a+set}" = set; then
17635   echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637   ac_ext=c
17638 ac_cpp='$CPP $CPPFLAGS'
17639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642
17643  if test "$cross_compiling" = yes; then
17644   llvmac_cv_c_printf_a=no
17645 else
17646   cat >conftest.$ac_ext <<_ACEOF
17647
17648   /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653
17654 #include <stdio.h>
17655 #include <stdlib.h>
17656
17657 int
17658 main ()
17659 {
17660
17661 volatile double A, B;
17662 char Buffer[100];
17663 A = 1;
17664 A /= 10.0;
17665 sprintf(Buffer, "%a", A);
17666 B = atof(Buffer);
17667 if (A != B)
17668   return (1);
17669 if (A != 0x1.999999999999ap-4)
17670   return (1);
17671 return (0);
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest$ac_exeext
17677 if { (ac_try="$ac_link"
17678 case "(($ac_try" in
17679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680   *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683   (eval "$ac_link") 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17687   { (case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_try") 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; }; then
17696   llvm_cv_c_printf_a=yes
17697 else
17698   echo "$as_me: program exited with status $ac_status" >&5
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 ( exit $ac_status )
17703 llvmac_cv_c_printf_a=no
17704 fi
17705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17706 fi
17707
17708
17709  ac_ext=c
17710 ac_cpp='$CPP $CPPFLAGS'
17711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17714
17715 fi
17716 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17717 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17718  if test "$llvm_cv_c_printf_a" = "yes"; then
17719
17720 cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_PRINTF_A 1
17722 _ACEOF
17723
17724  fi
17725
17726
17727 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17728 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17729 if test "${ac_cv_func_rand48+set}" = set; then
17730   echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732   ac_ext=cpp
17733 ac_cpp='$CXXCPP $CPPFLAGS'
17734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17737
17738    cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h.  */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h.  */
17744 #include <stdlib.h>
17745 int
17746 main ()
17747 {
17748 srand48(0);lrand48();drand48();
17749   ;
17750   return 0;
17751 }
17752 _ACEOF
17753 rm -f conftest.$ac_objext
17754 if { (ac_try="$ac_compile"
17755 case "(($ac_try" in
17756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757   *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760   (eval "$ac_compile") 2>conftest.er1
17761   ac_status=$?
17762   grep -v '^ *+' conftest.er1 >conftest.err
17763   rm -f conftest.er1
17764   cat conftest.err >&5
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); } &&
17767          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17768   { (case "(($ac_try" in
17769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770   *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773   (eval "$ac_try") 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; } &&
17777          { ac_try='test -s conftest.$ac_objext'
17778   { (case "(($ac_try" in
17779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780   *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783   (eval "$ac_try") 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; }; then
17787   ac_cv_func_rand48=yes
17788 else
17789   echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17791
17792         ac_cv_func_rand48=no
17793 fi
17794
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796   ac_ext=c
17797 ac_cpp='$CPP $CPPFLAGS'
17798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17801
17802 fi
17803 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17804 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17805
17806 if test "$ac_cv_func_rand48" = "yes" ; then
17807
17808 cat >>confdefs.h <<\_ACEOF
17809 #define HAVE_RAND48 1
17810 _ACEOF
17811
17812 fi
17813
17814
17815 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17816 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17817 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17818   echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820   cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 $ac_includes_default
17827 int
17828 main ()
17829 {
17830 #ifndef strerror_s
17831   char *p = (char *) strerror_s;
17832   return !p;
17833 #endif
17834
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 rm -f conftest.$ac_objext
17840 if { (ac_try="$ac_compile"
17841 case "(($ac_try" in
17842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843   *) ac_try_echo=$ac_try;;
17844 esac
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846   (eval "$ac_compile") 2>conftest.er1
17847   ac_status=$?
17848   grep -v '^ *+' conftest.er1 >conftest.err
17849   rm -f conftest.er1
17850   cat conftest.err >&5
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } &&
17853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17854   { (case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859   (eval "$ac_try") 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; } &&
17863          { ac_try='test -s conftest.$ac_objext'
17864   { (case "(($ac_try" in
17865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866   *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869   (eval "$ac_try") 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; }; then
17873   ac_cv_have_decl_strerror_s=yes
17874 else
17875   echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17877
17878         ac_cv_have_decl_strerror_s=no
17879 fi
17880
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 fi
17883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17884 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17885 if test $ac_cv_have_decl_strerror_s = yes; then
17886
17887 cat >>confdefs.h <<_ACEOF
17888 #define HAVE_DECL_STRERROR_S 1
17889 _ACEOF
17890
17891
17892 else
17893   cat >>confdefs.h <<_ACEOF
17894 #define HAVE_DECL_STRERROR_S 0
17895 _ACEOF
17896
17897
17898 fi
17899
17900
17901
17902 if test "$llvm_cv_os_type" = "MingW" ; then
17903   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17904 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17905 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17906   echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908   ac_check_lib_save_LIBS=$LIBS
17909 LIBS="-lgcc  $LIBS"
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916
17917 /* Override any GCC internal prototype to avoid an error.
17918    Use char because int might match the return type of a GCC
17919    builtin and then its argument prototype would still apply.  */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 char _alloca ();
17924 int
17925 main ()
17926 {
17927 return _alloca ();
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (ac_try="$ac_link"
17934 case "(($ac_try" in
17935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936   *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939   (eval "$ac_link") 2>conftest.er1
17940   ac_status=$?
17941   grep -v '^ *+' conftest.er1 >conftest.err
17942   rm -f conftest.er1
17943   cat conftest.err >&5
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); } &&
17946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947   { (case "(($ac_try" in
17948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949   *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952   (eval "$ac_try") 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; } &&
17956          { ac_try='test -s conftest$ac_exeext'
17957   { (case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962   (eval "$ac_try") 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; }; then
17966   ac_cv_lib_gcc__alloca=yes
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971         ac_cv_lib_gcc__alloca=no
17972 fi
17973
17974 rm -f core conftest.err conftest.$ac_objext \
17975       conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17977 fi
17978 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17979 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17980 if test $ac_cv_lib_gcc__alloca = yes; then
17981
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE__ALLOCA 1
17984 _ACEOF
17985
17986 fi
17987
17988   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17989 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17990 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17991   echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993   ac_check_lib_save_LIBS=$LIBS
17994 LIBS="-lgcc  $LIBS"
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h.  */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h.  */
18001
18002 /* Override any GCC internal prototype to avoid an error.
18003    Use char because int might match the return type of a GCC
18004    builtin and then its argument prototype would still apply.  */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char __alloca ();
18009 int
18010 main ()
18011 {
18012 return __alloca ();
18013   ;
18014   return 0;
18015 }
18016 _ACEOF
18017 rm -f conftest.$ac_objext conftest$ac_exeext
18018 if { (ac_try="$ac_link"
18019 case "(($ac_try" in
18020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021   *) ac_try_echo=$ac_try;;
18022 esac
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024   (eval "$ac_link") 2>conftest.er1
18025   ac_status=$?
18026   grep -v '^ *+' conftest.er1 >conftest.err
18027   rm -f conftest.er1
18028   cat conftest.err >&5
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); } &&
18031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18032   { (case "(($ac_try" in
18033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034   *) ac_try_echo=$ac_try;;
18035 esac
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037   (eval "$ac_try") 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; } &&
18041          { ac_try='test -s conftest$ac_exeext'
18042   { (case "(($ac_try" in
18043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044   *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047   (eval "$ac_try") 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); }; }; then
18051   ac_cv_lib_gcc___alloca=yes
18052 else
18053   echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18055
18056         ac_cv_lib_gcc___alloca=no
18057 fi
18058
18059 rm -f core conftest.err conftest.$ac_objext \
18060       conftest$ac_exeext conftest.$ac_ext
18061 LIBS=$ac_check_lib_save_LIBS
18062 fi
18063 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18064 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18065 if test $ac_cv_lib_gcc___alloca = yes; then
18066
18067 cat >>confdefs.h <<\_ACEOF
18068 #define HAVE___ALLOCA 1
18069 _ACEOF
18070
18071 fi
18072
18073   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18074 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18075 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18076   echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078   ac_check_lib_save_LIBS=$LIBS
18079 LIBS="-lgcc  $LIBS"
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086
18087 /* Override any GCC internal prototype to avoid an error.
18088    Use char because int might match the return type of a GCC
18089    builtin and then its argument prototype would still apply.  */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 char __chkstk ();
18094 int
18095 main ()
18096 {
18097 return __chkstk ();
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (ac_try="$ac_link"
18104 case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109   (eval "$ac_link") 2>conftest.er1
18110   ac_status=$?
18111   grep -v '^ *+' conftest.er1 >conftest.err
18112   rm -f conftest.er1
18113   cat conftest.err >&5
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); } &&
18116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117   { (case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_try") 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }; } &&
18126          { ac_try='test -s conftest$ac_exeext'
18127   { (case "(($ac_try" in
18128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129   *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132   (eval "$ac_try") 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; }; then
18136   ac_cv_lib_gcc___chkstk=yes
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141         ac_cv_lib_gcc___chkstk=no
18142 fi
18143
18144 rm -f core conftest.err conftest.$ac_objext \
18145       conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18147 fi
18148 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18149 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18150 if test $ac_cv_lib_gcc___chkstk = yes; then
18151
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE___CHKSTK 1
18154 _ACEOF
18155
18156 fi
18157
18158   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18159 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18160 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18161   echo $ECHO_N "(cached) $ECHO_C" >&6
18162 else
18163   ac_check_lib_save_LIBS=$LIBS
18164 LIBS="-lgcc  $LIBS"
18165 cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h.  */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h.  */
18171
18172 /* Override any GCC internal prototype to avoid an error.
18173    Use char because int might match the return type of a GCC
18174    builtin and then its argument prototype would still apply.  */
18175 #ifdef __cplusplus
18176 extern "C"
18177 #endif
18178 char ___chkstk ();
18179 int
18180 main ()
18181 {
18182 return ___chkstk ();
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_link") 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } &&
18201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202   { (case "(($ac_try" in
18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204   *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207   (eval "$ac_try") 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; } &&
18211          { ac_try='test -s conftest$ac_exeext'
18212   { (case "(($ac_try" in
18213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214   *) ac_try_echo=$ac_try;;
18215 esac
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217   (eval "$ac_try") 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; }; then
18221   ac_cv_lib_gcc____chkstk=yes
18222 else
18223   echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226         ac_cv_lib_gcc____chkstk=no
18227 fi
18228
18229 rm -f core conftest.err conftest.$ac_objext \
18230       conftest$ac_exeext conftest.$ac_ext
18231 LIBS=$ac_check_lib_save_LIBS
18232 fi
18233 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18234 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18235 if test $ac_cv_lib_gcc____chkstk = yes; then
18236
18237 cat >>confdefs.h <<\_ACEOF
18238 #define HAVE____CHKSTK 1
18239 _ACEOF
18240
18241 fi
18242
18243
18244   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18245 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18246 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18247   echo $ECHO_N "(cached) $ECHO_C" >&6
18248 else
18249   ac_check_lib_save_LIBS=$LIBS
18250 LIBS="-lgcc  $LIBS"
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h.  */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h.  */
18257
18258 /* Override any GCC internal prototype to avoid an error.
18259    Use char because int might match the return type of a GCC
18260    builtin and then its argument prototype would still apply.  */
18261 #ifdef __cplusplus
18262 extern "C"
18263 #endif
18264 char __ashldi3 ();
18265 int
18266 main ()
18267 {
18268 return __ashldi3 ();
18269   ;
18270   return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_link") 2>conftest.er1
18281   ac_status=$?
18282   grep -v '^ *+' conftest.er1 >conftest.err
18283   rm -f conftest.er1
18284   cat conftest.err >&5
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); } &&
18287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18288   { (case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_try") 2>&5
18294   ac_status=$?
18295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296   (exit $ac_status); }; } &&
18297          { ac_try='test -s conftest$ac_exeext'
18298   { (case "(($ac_try" in
18299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300   *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303   (eval "$ac_try") 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; }; then
18307   ac_cv_lib_gcc___ashldi3=yes
18308 else
18309   echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18311
18312         ac_cv_lib_gcc___ashldi3=no
18313 fi
18314
18315 rm -f core conftest.err conftest.$ac_objext \
18316       conftest$ac_exeext conftest.$ac_ext
18317 LIBS=$ac_check_lib_save_LIBS
18318 fi
18319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18320 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18321 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18322
18323 cat >>confdefs.h <<\_ACEOF
18324 #define HAVE___ASHLDI3 1
18325 _ACEOF
18326
18327 fi
18328
18329   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18330 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18331 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334   ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lgcc  $LIBS"
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h.  */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h.  */
18342
18343 /* Override any GCC internal prototype to avoid an error.
18344    Use char because int might match the return type of a GCC
18345    builtin and then its argument prototype would still apply.  */
18346 #ifdef __cplusplus
18347 extern "C"
18348 #endif
18349 char __ashrdi3 ();
18350 int
18351 main ()
18352 {
18353 return __ashrdi3 ();
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (ac_try="$ac_link"
18360 case "(($ac_try" in
18361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362   *) ac_try_echo=$ac_try;;
18363 esac
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365   (eval "$ac_link") 2>conftest.er1
18366   ac_status=$?
18367   grep -v '^ *+' conftest.er1 >conftest.err
18368   rm -f conftest.er1
18369   cat conftest.err >&5
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); } &&
18372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18373   { (case "(($ac_try" in
18374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375   *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378   (eval "$ac_try") 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; } &&
18382          { ac_try='test -s conftest$ac_exeext'
18383   { (case "(($ac_try" in
18384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385   *) ac_try_echo=$ac_try;;
18386 esac
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388   (eval "$ac_try") 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; }; then
18392   ac_cv_lib_gcc___ashrdi3=yes
18393 else
18394   echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397         ac_cv_lib_gcc___ashrdi3=no
18398 fi
18399
18400 rm -f core conftest.err conftest.$ac_objext \
18401       conftest$ac_exeext conftest.$ac_ext
18402 LIBS=$ac_check_lib_save_LIBS
18403 fi
18404 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18405 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18406 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18407
18408 cat >>confdefs.h <<\_ACEOF
18409 #define HAVE___ASHRDI3 1
18410 _ACEOF
18411
18412 fi
18413
18414   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18415 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18416 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18417   echo $ECHO_N "(cached) $ECHO_C" >&6
18418 else
18419   ac_check_lib_save_LIBS=$LIBS
18420 LIBS="-lgcc  $LIBS"
18421 cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h.  */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h.  */
18427
18428 /* Override any GCC internal prototype to avoid an error.
18429    Use char because int might match the return type of a GCC
18430    builtin and then its argument prototype would still apply.  */
18431 #ifdef __cplusplus
18432 extern "C"
18433 #endif
18434 char __divdi3 ();
18435 int
18436 main ()
18437 {
18438 return __divdi3 ();
18439   ;
18440   return 0;
18441 }
18442 _ACEOF
18443 rm -f conftest.$ac_objext conftest$ac_exeext
18444 if { (ac_try="$ac_link"
18445 case "(($ac_try" in
18446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447   *) ac_try_echo=$ac_try;;
18448 esac
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450   (eval "$ac_link") 2>conftest.er1
18451   ac_status=$?
18452   grep -v '^ *+' conftest.er1 >conftest.err
18453   rm -f conftest.er1
18454   cat conftest.err >&5
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } &&
18457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458   { (case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_try") 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; } &&
18467          { ac_try='test -s conftest$ac_exeext'
18468   { (case "(($ac_try" in
18469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470   *) ac_try_echo=$ac_try;;
18471 esac
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473   (eval "$ac_try") 2>&5
18474   ac_status=$?
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); }; }; then
18477   ac_cv_lib_gcc___divdi3=yes
18478 else
18479   echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482         ac_cv_lib_gcc___divdi3=no
18483 fi
18484
18485 rm -f core conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 LIBS=$ac_check_lib_save_LIBS
18488 fi
18489 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18490 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18491 if test $ac_cv_lib_gcc___divdi3 = yes; then
18492
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE___DIVDI3 1
18495 _ACEOF
18496
18497 fi
18498
18499   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18500 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18501 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   ac_check_lib_save_LIBS=$LIBS
18505 LIBS="-lgcc  $LIBS"
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512
18513 /* Override any GCC internal prototype to avoid an error.
18514    Use char because int might match the return type of a GCC
18515    builtin and then its argument prototype would still apply.  */
18516 #ifdef __cplusplus
18517 extern "C"
18518 #endif
18519 char __fixdfdi ();
18520 int
18521 main ()
18522 {
18523 return __fixdfdi ();
18524   ;
18525   return 0;
18526 }
18527 _ACEOF
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (ac_try="$ac_link"
18530 case "(($ac_try" in
18531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532   *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535   (eval "$ac_link") 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } &&
18542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18543   { (case "(($ac_try" in
18544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545   *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548   (eval "$ac_try") 2>&5
18549   ac_status=$?
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); }; } &&
18552          { ac_try='test -s conftest$ac_exeext'
18553   { (case "(($ac_try" in
18554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555   *) ac_try_echo=$ac_try;;
18556 esac
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558   (eval "$ac_try") 2>&5
18559   ac_status=$?
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); }; }; then
18562   ac_cv_lib_gcc___fixdfdi=yes
18563 else
18564   echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567         ac_cv_lib_gcc___fixdfdi=no
18568 fi
18569
18570 rm -f core conftest.err conftest.$ac_objext \
18571       conftest$ac_exeext conftest.$ac_ext
18572 LIBS=$ac_check_lib_save_LIBS
18573 fi
18574 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18575 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18576 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE___FIXDFDI 1
18580 _ACEOF
18581
18582 fi
18583
18584   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18585 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18586 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18587   echo $ECHO_N "(cached) $ECHO_C" >&6
18588 else
18589   ac_check_lib_save_LIBS=$LIBS
18590 LIBS="-lgcc  $LIBS"
18591 cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 /* Override any GCC internal prototype to avoid an error.
18599    Use char because int might match the return type of a GCC
18600    builtin and then its argument prototype would still apply.  */
18601 #ifdef __cplusplus
18602 extern "C"
18603 #endif
18604 char __fixsfdi ();
18605 int
18606 main ()
18607 {
18608 return __fixsfdi ();
18609   ;
18610   return 0;
18611 }
18612 _ACEOF
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (ac_try="$ac_link"
18615 case "(($ac_try" in
18616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617   *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620   (eval "$ac_link") 2>conftest.er1
18621   ac_status=$?
18622   grep -v '^ *+' conftest.er1 >conftest.err
18623   rm -f conftest.er1
18624   cat conftest.err >&5
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); } &&
18627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628   { (case "(($ac_try" in
18629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630   *) ac_try_echo=$ac_try;;
18631 esac
18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633   (eval "$ac_try") 2>&5
18634   ac_status=$?
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); }; } &&
18637          { ac_try='test -s conftest$ac_exeext'
18638   { (case "(($ac_try" in
18639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640   *) ac_try_echo=$ac_try;;
18641 esac
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643   (eval "$ac_try") 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; }; then
18647   ac_cv_lib_gcc___fixsfdi=yes
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652         ac_cv_lib_gcc___fixsfdi=no
18653 fi
18654
18655 rm -f core conftest.err conftest.$ac_objext \
18656       conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18658 fi
18659 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18660 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18661 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18662
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE___FIXSFDI 1
18665 _ACEOF
18666
18667 fi
18668
18669   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18670 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18671 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18672   echo $ECHO_N "(cached) $ECHO_C" >&6
18673 else
18674   ac_check_lib_save_LIBS=$LIBS
18675 LIBS="-lgcc  $LIBS"
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682
18683 /* Override any GCC internal prototype to avoid an error.
18684    Use char because int might match the return type of a GCC
18685    builtin and then its argument prototype would still apply.  */
18686 #ifdef __cplusplus
18687 extern "C"
18688 #endif
18689 char __floatdidf ();
18690 int
18691 main ()
18692 {
18693 return __floatdidf ();
18694   ;
18695   return 0;
18696 }
18697 _ACEOF
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (ac_try="$ac_link"
18700 case "(($ac_try" in
18701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702   *) ac_try_echo=$ac_try;;
18703 esac
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705   (eval "$ac_link") 2>conftest.er1
18706   ac_status=$?
18707   grep -v '^ *+' conftest.er1 >conftest.err
18708   rm -f conftest.er1
18709   cat conftest.err >&5
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); } &&
18712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18713   { (case "(($ac_try" in
18714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715   *) ac_try_echo=$ac_try;;
18716 esac
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718   (eval "$ac_try") 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); }; } &&
18722          { ac_try='test -s conftest$ac_exeext'
18723   { (case "(($ac_try" in
18724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725   *) ac_try_echo=$ac_try;;
18726 esac
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728   (eval "$ac_try") 2>&5
18729   ac_status=$?
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); }; }; then
18732   ac_cv_lib_gcc___floatdidf=yes
18733 else
18734   echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737         ac_cv_lib_gcc___floatdidf=no
18738 fi
18739
18740 rm -f core conftest.err conftest.$ac_objext \
18741       conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18743 fi
18744 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18745 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18746 if test $ac_cv_lib_gcc___floatdidf = yes; then
18747
18748 cat >>confdefs.h <<\_ACEOF
18749 #define HAVE___FLOATDIDF 1
18750 _ACEOF
18751
18752 fi
18753
18754   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18755 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18756 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18757   echo $ECHO_N "(cached) $ECHO_C" >&6
18758 else
18759   ac_check_lib_save_LIBS=$LIBS
18760 LIBS="-lgcc  $LIBS"
18761 cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h.  */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h.  */
18767
18768 /* Override any GCC internal prototype to avoid an error.
18769    Use char because int might match the return type of a GCC
18770    builtin and then its argument prototype would still apply.  */
18771 #ifdef __cplusplus
18772 extern "C"
18773 #endif
18774 char __lshrdi3 ();
18775 int
18776 main ()
18777 {
18778 return __lshrdi3 ();
18779   ;
18780   return 0;
18781 }
18782 _ACEOF
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (ac_try="$ac_link"
18785 case "(($ac_try" in
18786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787   *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790   (eval "$ac_link") 2>conftest.er1
18791   ac_status=$?
18792   grep -v '^ *+' conftest.er1 >conftest.err
18793   rm -f conftest.er1
18794   cat conftest.err >&5
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); } &&
18797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798   { (case "(($ac_try" in
18799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800   *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803   (eval "$ac_try") 2>&5
18804   ac_status=$?
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); }; } &&
18807          { ac_try='test -s conftest$ac_exeext'
18808   { (case "(($ac_try" in
18809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810   *) ac_try_echo=$ac_try;;
18811 esac
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813   (eval "$ac_try") 2>&5
18814   ac_status=$?
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); }; }; then
18817   ac_cv_lib_gcc___lshrdi3=yes
18818 else
18819   echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822         ac_cv_lib_gcc___lshrdi3=no
18823 fi
18824
18825 rm -f core conftest.err conftest.$ac_objext \
18826       conftest$ac_exeext conftest.$ac_ext
18827 LIBS=$ac_check_lib_save_LIBS
18828 fi
18829 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18830 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18831 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18832
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE___LSHRDI3 1
18835 _ACEOF
18836
18837 fi
18838
18839   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18840 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18841 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18842   echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844   ac_check_lib_save_LIBS=$LIBS
18845 LIBS="-lgcc  $LIBS"
18846 cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852
18853 /* Override any GCC internal prototype to avoid an error.
18854    Use char because int might match the return type of a GCC
18855    builtin and then its argument prototype would still apply.  */
18856 #ifdef __cplusplus
18857 extern "C"
18858 #endif
18859 char __moddi3 ();
18860 int
18861 main ()
18862 {
18863 return __moddi3 ();
18864   ;
18865   return 0;
18866 }
18867 _ACEOF
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872   *) ac_try_echo=$ac_try;;
18873 esac
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875   (eval "$ac_link") 2>conftest.er1
18876   ac_status=$?
18877   grep -v '^ *+' conftest.er1 >conftest.err
18878   rm -f conftest.er1
18879   cat conftest.err >&5
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); } &&
18882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18883   { (case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_try") 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest$ac_exeext'
18893   { (case "(($ac_try" in
18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895   *) ac_try_echo=$ac_try;;
18896 esac
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898   (eval "$ac_try") 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; }; then
18902   ac_cv_lib_gcc___moddi3=yes
18903 else
18904   echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18906
18907         ac_cv_lib_gcc___moddi3=no
18908 fi
18909
18910 rm -f core conftest.err conftest.$ac_objext \
18911       conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18913 fi
18914 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18915 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18916 if test $ac_cv_lib_gcc___moddi3 = yes; then
18917
18918 cat >>confdefs.h <<\_ACEOF
18919 #define HAVE___MODDI3 1
18920 _ACEOF
18921
18922 fi
18923
18924   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18925 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18926 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   ac_check_lib_save_LIBS=$LIBS
18930 LIBS="-lgcc  $LIBS"
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937
18938 /* Override any GCC internal prototype to avoid an error.
18939    Use char because int might match the return type of a GCC
18940    builtin and then its argument prototype would still apply.  */
18941 #ifdef __cplusplus
18942 extern "C"
18943 #endif
18944 char __udivdi3 ();
18945 int
18946 main ()
18947 {
18948 return __udivdi3 ();
18949   ;
18950   return 0;
18951 }
18952 _ACEOF
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957   *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960   (eval "$ac_link") 2>conftest.er1
18961   ac_status=$?
18962   grep -v '^ *+' conftest.er1 >conftest.err
18963   rm -f conftest.er1
18964   cat conftest.err >&5
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } &&
18967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18968   { (case "(($ac_try" in
18969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970   *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973   (eval "$ac_try") 2>&5
18974   ac_status=$?
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); }; } &&
18977          { ac_try='test -s conftest$ac_exeext'
18978   { (case "(($ac_try" in
18979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980   *) ac_try_echo=$ac_try;;
18981 esac
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983   (eval "$ac_try") 2>&5
18984   ac_status=$?
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); }; }; then
18987   ac_cv_lib_gcc___udivdi3=yes
18988 else
18989   echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992         ac_cv_lib_gcc___udivdi3=no
18993 fi
18994
18995 rm -f core conftest.err conftest.$ac_objext \
18996       conftest$ac_exeext conftest.$ac_ext
18997 LIBS=$ac_check_lib_save_LIBS
18998 fi
18999 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19000 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19001 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19002
19003 cat >>confdefs.h <<\_ACEOF
19004 #define HAVE___UDIVDI3 1
19005 _ACEOF
19006
19007 fi
19008
19009   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19010 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19011 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014   ac_check_lib_save_LIBS=$LIBS
19015 LIBS="-lgcc  $LIBS"
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022
19023 /* Override any GCC internal prototype to avoid an error.
19024    Use char because int might match the return type of a GCC
19025    builtin and then its argument prototype would still apply.  */
19026 #ifdef __cplusplus
19027 extern "C"
19028 #endif
19029 char __umoddi3 ();
19030 int
19031 main ()
19032 {
19033 return __umoddi3 ();
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042   *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045   (eval "$ac_link") 2>conftest.er1
19046   ac_status=$?
19047   grep -v '^ *+' conftest.er1 >conftest.err
19048   rm -f conftest.er1
19049   cat conftest.err >&5
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); } &&
19052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053   { (case "(($ac_try" in
19054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055   *) ac_try_echo=$ac_try;;
19056 esac
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058   (eval "$ac_try") 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; } &&
19062          { ac_try='test -s conftest$ac_exeext'
19063   { (case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_try") 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; }; then
19072   ac_cv_lib_gcc___umoddi3=yes
19073 else
19074   echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19076
19077         ac_cv_lib_gcc___umoddi3=no
19078 fi
19079
19080 rm -f core conftest.err conftest.$ac_objext \
19081       conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19083 fi
19084 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19085 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19086 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19087
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE___UMODDI3 1
19090 _ACEOF
19091
19092 fi
19093
19094
19095   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19096 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19097 if test "${ac_cv_lib_gcc___main+set}" = set; then
19098   echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100   ac_check_lib_save_LIBS=$LIBS
19101 LIBS="-lgcc  $LIBS"
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108
19109 /* Override any GCC internal prototype to avoid an error.
19110    Use char because int might match the return type of a GCC
19111    builtin and then its argument prototype would still apply.  */
19112 #ifdef __cplusplus
19113 extern "C"
19114 #endif
19115 char __main ();
19116 int
19117 main ()
19118 {
19119 return __main ();
19120   ;
19121   return 0;
19122 }
19123 _ACEOF
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (ac_try="$ac_link"
19126 case "(($ac_try" in
19127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128   *) ac_try_echo=$ac_try;;
19129 esac
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131   (eval "$ac_link") 2>conftest.er1
19132   ac_status=$?
19133   grep -v '^ *+' conftest.er1 >conftest.err
19134   rm -f conftest.er1
19135   cat conftest.err >&5
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); } &&
19138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19139   { (case "(($ac_try" in
19140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141   *) ac_try_echo=$ac_try;;
19142 esac
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144   (eval "$ac_try") 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; } &&
19148          { ac_try='test -s conftest$ac_exeext'
19149   { (case "(($ac_try" in
19150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151   *) ac_try_echo=$ac_try;;
19152 esac
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154   (eval "$ac_try") 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; }; then
19158   ac_cv_lib_gcc___main=yes
19159 else
19160   echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163         ac_cv_lib_gcc___main=no
19164 fi
19165
19166 rm -f core conftest.err conftest.$ac_objext \
19167       conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19169 fi
19170 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19171 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19172 if test $ac_cv_lib_gcc___main = yes; then
19173
19174 cat >>confdefs.h <<\_ACEOF
19175 #define HAVE___MAIN 1
19176 _ACEOF
19177
19178 fi
19179
19180   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19181 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19182 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19183   echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185   ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lgcc  $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193
19194 /* Override any GCC internal prototype to avoid an error.
19195    Use char because int might match the return type of a GCC
19196    builtin and then its argument prototype would still apply.  */
19197 #ifdef __cplusplus
19198 extern "C"
19199 #endif
19200 char __cmpdi2 ();
19201 int
19202 main ()
19203 {
19204 return __cmpdi2 ();
19205   ;
19206   return 0;
19207 }
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_link") 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } &&
19223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19224   { (case "(($ac_try" in
19225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226   *) ac_try_echo=$ac_try;;
19227 esac
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229   (eval "$ac_try") 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; } &&
19233          { ac_try='test -s conftest$ac_exeext'
19234   { (case "(($ac_try" in
19235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236   *) ac_try_echo=$ac_try;;
19237 esac
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239   (eval "$ac_try") 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; }; then
19243   ac_cv_lib_gcc___cmpdi2=yes
19244 else
19245   echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248         ac_cv_lib_gcc___cmpdi2=no
19249 fi
19250
19251 rm -f core conftest.err conftest.$ac_objext \
19252       conftest$ac_exeext conftest.$ac_ext
19253 LIBS=$ac_check_lib_save_LIBS
19254 fi
19255 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19256 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19257 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19258
19259 cat >>confdefs.h <<\_ACEOF
19260 #define HAVE___CMPDI2 1
19261 _ACEOF
19262
19263 fi
19264
19265 fi
19266
19267 if test "$llvm_cv_os_type" = "MingW" ; then
19268   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19269 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19270   cat >conftest.$ac_ext <<_ACEOF
19271 #include <windows.h>
19272 #include <imagehlp.h>
19273 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19274 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_compile") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } &&
19290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291   { (case "(($ac_try" in
19292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293   *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296   (eval "$ac_try") 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; } &&
19300          { ac_try='test -s conftest.$ac_objext'
19301   { (case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_try") 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310
19311   { echo "$as_me:$LINENO: result: yes" >&5
19312 echo "${ECHO_T}yes" >&6; }
19313   llvm_cv_win32_elmcb_pcstr="PCSTR"
19314
19315 else
19316   echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19318
19319
19320   { echo "$as_me:$LINENO: result: no" >&5
19321 echo "${ECHO_T}no" >&6; }
19322   llvm_cv_win32_elmcb_pcstr="PSTR"
19323
19324 fi
19325
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327
19328 cat >>confdefs.h <<_ACEOF
19329 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19330 _ACEOF
19331
19332 fi
19333
19334
19335 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19336 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19337 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19338   echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340   ac_ext=cpp
19341 ac_cpp='$CXXCPP $CPPFLAGS'
19342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19345
19346    cat >conftest.$ac_ext <<_ACEOF
19347 /* confdefs.h.  */
19348 _ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h.  */
19352 #include <math.h>
19353 int
19354 main ()
19355 {
19356 float f; isnan(f);
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext
19362 if { (ac_try="$ac_compile"
19363 case "(($ac_try" in
19364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365   *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368   (eval "$ac_compile") 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } &&
19375          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19376   { (case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_try") 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; } &&
19385          { ac_try='test -s conftest.$ac_objext'
19386   { (case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391   (eval "$ac_try") 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; }; then
19395   ac_cv_func_isnan_in_math_h=yes
19396 else
19397   echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400         ac_cv_func_isnan_in_math_h=no
19401 fi
19402
19403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19404   ac_ext=c
19405 ac_cpp='$CPP $CPPFLAGS'
19406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19409
19410 fi
19411 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19412 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19413
19414
19415 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19416
19417 cat >>confdefs.h <<\_ACEOF
19418 #define HAVE_ISNAN_IN_MATH_H 1
19419 _ACEOF
19420
19421 fi
19422
19423 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19424 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19425 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19426   echo $ECHO_N "(cached) $ECHO_C" >&6
19427 else
19428   ac_ext=cpp
19429 ac_cpp='$CXXCPP $CPPFLAGS'
19430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19433
19434    cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440 #include <cmath>
19441 int
19442 main ()
19443 {
19444 float f; isnan(f);
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext
19450 if { (ac_try="$ac_compile"
19451 case "(($ac_try" in
19452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453   *) ac_try_echo=$ac_try;;
19454 esac
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456   (eval "$ac_compile") 2>conftest.er1
19457   ac_status=$?
19458   grep -v '^ *+' conftest.er1 >conftest.err
19459   rm -f conftest.er1
19460   cat conftest.err >&5
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); } &&
19463          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469   (eval "$ac_try") 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; } &&
19473          { ac_try='test -s conftest.$ac_objext'
19474   { (case "(($ac_try" in
19475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476   *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479   (eval "$ac_try") 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; }; then
19483   ac_cv_func_isnan_in_cmath=yes
19484 else
19485   echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488         ac_cv_func_isnan_in_cmath=no
19489 fi
19490
19491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19492   ac_ext=c
19493 ac_cpp='$CPP $CPPFLAGS'
19494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19497
19498 fi
19499 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19500 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19501
19502 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19503
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_ISNAN_IN_CMATH 1
19506 _ACEOF
19507
19508 fi
19509
19510 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19511 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19512 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515   ac_ext=cpp
19516 ac_cpp='$CXXCPP $CPPFLAGS'
19517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19520
19521    cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527 #include <cmath>
19528 int
19529 main ()
19530 {
19531 float f; std::isnan(f);
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (ac_try="$ac_compile"
19538 case "(($ac_try" in
19539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540   *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543   (eval "$ac_compile") 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } &&
19550          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19551   { (case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556   (eval "$ac_try") 2>&5
19557   ac_status=$?
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); }; } &&
19560          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; }; then
19570   ac_cv_func_std_isnan_in_cmath=yes
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575         ac_cv_func_std_isnan_in_cmath=no
19576 fi
19577
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579   ac_ext=c
19580 ac_cpp='$CPP $CPPFLAGS'
19581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19584
19585 fi
19586 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19587 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19588
19589 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19590
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE_STD_ISNAN_IN_CMATH 1
19593 _ACEOF
19594
19595 fi
19596
19597
19598 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19599 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19600 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   ac_ext=cpp
19604 ac_cpp='$CXXCPP $CPPFLAGS'
19605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19608
19609    cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h.  */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h.  */
19615 #include <math.h>
19616 int
19617 main ()
19618 {
19619 float f; isinf(f);
19620   ;
19621   return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext
19625 if { (ac_try="$ac_compile"
19626 case "(($ac_try" in
19627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628   *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631   (eval "$ac_compile") 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19639   { (case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_try") 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; } &&
19648          { ac_try='test -s conftest.$ac_objext'
19649   { (case "(($ac_try" in
19650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651   *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654   (eval "$ac_try") 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; }; then
19658   ac_cv_func_isinf_in_math_h=yes
19659 else
19660   echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663         ac_cv_func_isinf_in_math_h=no
19664 fi
19665
19666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667   ac_ext=c
19668 ac_cpp='$CPP $CPPFLAGS'
19669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19672
19673 fi
19674 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19675 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19676
19677 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19678
19679 cat >>confdefs.h <<\_ACEOF
19680 #define HAVE_ISINF_IN_MATH_H 1
19681 _ACEOF
19682
19683 fi
19684
19685 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19686 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19687 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690   ac_ext=cpp
19691 ac_cpp='$CXXCPP $CPPFLAGS'
19692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19695
19696    cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702 #include <cmath>
19703 int
19704 main ()
19705 {
19706 float f; isinf(f);
19707   ;
19708   return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext
19712 if { (ac_try="$ac_compile"
19713 case "(($ac_try" in
19714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715   *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718   (eval "$ac_compile") 2>conftest.er1
19719   ac_status=$?
19720   grep -v '^ *+' conftest.er1 >conftest.err
19721   rm -f conftest.er1
19722   cat conftest.err >&5
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } &&
19725          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19726   { (case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_try") 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; } &&
19735          { ac_try='test -s conftest.$ac_objext'
19736   { (case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_try") 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; }; then
19745   ac_cv_func_isinf_in_cmath=yes
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750         ac_cv_func_isinf_in_cmath=no
19751 fi
19752
19753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754   ac_ext=c
19755 ac_cpp='$CPP $CPPFLAGS'
19756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759
19760 fi
19761 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19762 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19763
19764 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19765
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_ISINF_IN_CMATH 1
19768 _ACEOF
19769
19770 fi
19771
19772 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19773 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19774 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19775   echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777   ac_ext=cpp
19778 ac_cpp='$CXXCPP $CPPFLAGS'
19779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19782
19783    cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h.  */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h.  */
19789 #include <cmath>
19790 int
19791 main ()
19792 {
19793 float f; std::isinf(f);
19794   ;
19795   return 0;
19796 }
19797 _ACEOF
19798 rm -f conftest.$ac_objext
19799 if { (ac_try="$ac_compile"
19800 case "(($ac_try" in
19801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802   *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805   (eval "$ac_compile") 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } &&
19812          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19813   { (case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_try") 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; } &&
19822          { ac_try='test -s conftest.$ac_objext'
19823   { (case "(($ac_try" in
19824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825   *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828   (eval "$ac_try") 2>&5
19829   ac_status=$?
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); }; }; then
19832   ac_cv_func_std_isinf_in_cmath=yes
19833 else
19834   echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837         ac_cv_func_std_isinf_in_cmath=no
19838 fi
19839
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841   ac_ext=c
19842 ac_cpp='$CPP $CPPFLAGS'
19843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19846
19847 fi
19848 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19849 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19850
19851 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19852
19853 cat >>confdefs.h <<\_ACEOF
19854 #define HAVE_STD_ISINF_IN_CMATH 1
19855 _ACEOF
19856
19857 fi
19858
19859 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19860 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19861 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19862   echo $ECHO_N "(cached) $ECHO_C" >&6
19863 else
19864   ac_ext=cpp
19865 ac_cpp='$CXXCPP $CPPFLAGS'
19866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19869
19870    cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876 #include <ieeefp.h>
19877 int
19878 main ()
19879 {
19880 float f; finite(f);
19881   ;
19882   return 0;
19883 }
19884 _ACEOF
19885 rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_compile") 2>conftest.er1
19893   ac_status=$?
19894   grep -v '^ *+' conftest.er1 >conftest.err
19895   rm -f conftest.er1
19896   cat conftest.err >&5
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); } &&
19899          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19900   { (case "(($ac_try" in
19901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902   *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905   (eval "$ac_try") 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; } &&
19909          { ac_try='test -s conftest.$ac_objext'
19910   { (case "(($ac_try" in
19911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912   *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915   (eval "$ac_try") 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; }; then
19919   ac_cv_func_finite_in_ieeefp_h=yes
19920 else
19921   echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924         ac_cv_func_finite_in_ieeefp_h=no
19925 fi
19926
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928   ac_ext=c
19929 ac_cpp='$CPP $CPPFLAGS'
19930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19933
19934 fi
19935 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19936 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19937
19938 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19939
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_FINITE_IN_IEEEFP_H 1
19942 _ACEOF
19943
19944 fi
19945
19946
19947
19948 if test "$llvm_cv_platform_type" = "Unix" ; then
19949
19950
19951 for ac_header in stdlib.h unistd.h
19952 do
19953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958   echo $ECHO_N "(cached) $ECHO_C" >&6
19959 fi
19960 ac_res=`eval echo '${'$as_ac_Header'}'`
19961                { echo "$as_me:$LINENO: result: $ac_res" >&5
19962 echo "${ECHO_T}$ac_res" >&6; }
19963 else
19964   # Is the header compilable?
19965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 $ac_includes_default
19974 #include <$ac_header>
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_compile") 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } &&
19990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19991   { (case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_try") 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; } &&
20000          { ac_try='test -s conftest.$ac_objext'
20001   { (case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006   (eval "$ac_try") 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010   ac_header_compiler=yes
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015         ac_header_compiler=no
20016 fi
20017
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20020 echo "${ECHO_T}$ac_header_compiler" >&6; }
20021
20022 # Is the header present?
20023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h.  */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h.  */
20031 #include <$ac_header>
20032 _ACEOF
20033 if { (ac_try="$ac_cpp conftest.$ac_ext"
20034 case "(($ac_try" in
20035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036   *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20040   ac_status=$?
20041   grep -v '^ *+' conftest.er1 >conftest.err
20042   rm -f conftest.er1
20043   cat conftest.err >&5
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } >/dev/null; then
20046   if test -s conftest.err; then
20047     ac_cpp_err=$ac_c_preproc_warn_flag
20048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20049   else
20050     ac_cpp_err=
20051   fi
20052 else
20053   ac_cpp_err=yes
20054 fi
20055 if test -z "$ac_cpp_err"; then
20056   ac_header_preproc=yes
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061   ac_header_preproc=no
20062 fi
20063
20064 rm -f conftest.err conftest.$ac_ext
20065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20066 echo "${ECHO_T}$ac_header_preproc" >&6; }
20067
20068 # So?  What about this header?
20069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20070   yes:no: )
20071     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20075     ac_header_preproc=yes
20076     ;;
20077   no:yes:* )
20078     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20080     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20081 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20082     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20085 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20088     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20090     ( cat <<\_ASBOX
20091 ## ------------------------------------ ##
20092 ## Report this to http://llvm.org/bugs/ ##
20093 ## ------------------------------------ ##
20094 _ASBOX
20095      ) | sed "s/^/$as_me: WARNING:     /" >&2
20096     ;;
20097 esac
20098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   eval "$as_ac_Header=\$ac_header_preproc"
20104 fi
20105 ac_res=`eval echo '${'$as_ac_Header'}'`
20106                { echo "$as_me:$LINENO: result: $ac_res" >&5
20107 echo "${ECHO_T}$ac_res" >&6; }
20108
20109 fi
20110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20111   cat >>confdefs.h <<_ACEOF
20112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20113 _ACEOF
20114
20115 fi
20116
20117 done
20118
20119
20120 for ac_func in getpagesize
20121 do
20122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20126   echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20136 #define $ac_func innocuous_$ac_func
20137
20138 /* System header to define __stub macros and hopefully few prototypes,
20139     which can conflict with char $ac_func (); below.
20140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141     <limits.h> exists even on freestanding compilers.  */
20142
20143 #ifdef __STDC__
20144 # include <limits.h>
20145 #else
20146 # include <assert.h>
20147 #endif
20148
20149 #undef $ac_func
20150
20151 /* Override any GCC internal prototype to avoid an error.
20152    Use char because int might match the return type of a GCC
20153    builtin and then its argument prototype would still apply.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char $ac_func ();
20158 /* The GNU C library defines this for functions which it implements
20159     to always fail with ENOSYS.  Some functions are actually named
20160     something starting with __ and the normal name is an alias.  */
20161 #if defined __stub_$ac_func || defined __stub___$ac_func
20162 choke me
20163 #endif
20164
20165 int
20166 main ()
20167 {
20168 return $ac_func ();
20169   ;
20170   return 0;
20171 }
20172 _ACEOF
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_link") 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } &&
20187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188   { (case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193   (eval "$ac_try") 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; } &&
20197          { ac_try='test -s conftest$ac_exeext'
20198   { (case "(($ac_try" in
20199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200   *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203   (eval "$ac_try") 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; }; then
20207   eval "$as_ac_var=yes"
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212         eval "$as_ac_var=no"
20213 fi
20214
20215 rm -f core conftest.err conftest.$ac_objext \
20216       conftest$ac_exeext conftest.$ac_ext
20217 fi
20218 ac_res=`eval echo '${'$as_ac_var'}'`
20219                { echo "$as_me:$LINENO: result: $ac_res" >&5
20220 echo "${ECHO_T}$ac_res" >&6; }
20221 if test `eval echo '${'$as_ac_var'}'` = yes; then
20222   cat >>confdefs.h <<_ACEOF
20223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20224 _ACEOF
20225
20226 fi
20227 done
20228
20229 { echo "$as_me:$LINENO: checking for working mmap" >&5
20230 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20231 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20232   echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234   if test "$cross_compiling" = yes; then
20235   ac_cv_func_mmap_fixed_mapped=no
20236 else
20237   cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 $ac_includes_default
20244 /* malloc might have been renamed as rpl_malloc. */
20245 #undef malloc
20246
20247 /* Thanks to Mike Haertel and Jim Avera for this test.
20248    Here is a matrix of mmap possibilities:
20249         mmap private not fixed
20250         mmap private fixed at somewhere currently unmapped
20251         mmap private fixed at somewhere already mapped
20252         mmap shared not fixed
20253         mmap shared fixed at somewhere currently unmapped
20254         mmap shared fixed at somewhere already mapped
20255    For private mappings, we should verify that changes cannot be read()
20256    back from the file, nor mmap's back from the file at a different
20257    address.  (There have been systems where private was not correctly
20258    implemented like the infamous i386 svr4.0, and systems where the
20259    VM page cache was not coherent with the file system buffer cache
20260    like early versions of FreeBSD and possibly contemporary NetBSD.)
20261    For shared mappings, we should conversely verify that changes get
20262    propagated back to all the places they're supposed to be.
20263
20264    Grep wants private fixed already mapped.
20265    The main things grep needs to know about mmap are:
20266    * does it exist and is it safe to write into the mmap'd area
20267    * how to use it (BSD variants)  */
20268
20269 #include <fcntl.h>
20270 #include <sys/mman.h>
20271
20272 #if !STDC_HEADERS && !HAVE_STDLIB_H
20273 char *malloc ();
20274 #endif
20275
20276 /* This mess was copied from the GNU getpagesize.h.  */
20277 #if !HAVE_GETPAGESIZE
20278 /* Assume that all systems that can run configure have sys/param.h.  */
20279 # if !HAVE_SYS_PARAM_H
20280 #  define HAVE_SYS_PARAM_H 1
20281 # endif
20282
20283 # ifdef _SC_PAGESIZE
20284 #  define getpagesize() sysconf(_SC_PAGESIZE)
20285 # else /* no _SC_PAGESIZE */
20286 #  if HAVE_SYS_PARAM_H
20287 #   include <sys/param.h>
20288 #   ifdef EXEC_PAGESIZE
20289 #    define getpagesize() EXEC_PAGESIZE
20290 #   else /* no EXEC_PAGESIZE */
20291 #    ifdef NBPG
20292 #     define getpagesize() NBPG * CLSIZE
20293 #     ifndef CLSIZE
20294 #      define CLSIZE 1
20295 #     endif /* no CLSIZE */
20296 #    else /* no NBPG */
20297 #     ifdef NBPC
20298 #      define getpagesize() NBPC
20299 #     else /* no NBPC */
20300 #      ifdef PAGESIZE
20301 #       define getpagesize() PAGESIZE
20302 #      endif /* PAGESIZE */
20303 #     endif /* no NBPC */
20304 #    endif /* no NBPG */
20305 #   endif /* no EXEC_PAGESIZE */
20306 #  else /* no HAVE_SYS_PARAM_H */
20307 #   define getpagesize() 8192   /* punt totally */
20308 #  endif /* no HAVE_SYS_PARAM_H */
20309 # endif /* no _SC_PAGESIZE */
20310
20311 #endif /* no HAVE_GETPAGESIZE */
20312
20313 int
20314 main ()
20315 {
20316   char *data, *data2, *data3;
20317   int i, pagesize;
20318   int fd;
20319
20320   pagesize = getpagesize ();
20321
20322   /* First, make a file with some known garbage in it. */
20323   data = (char *) malloc (pagesize);
20324   if (!data)
20325     return 1;
20326   for (i = 0; i < pagesize; ++i)
20327     *(data + i) = rand ();
20328   umask (0);
20329   fd = creat ("conftest.mmap", 0600);
20330   if (fd < 0)
20331     return 1;
20332   if (write (fd, data, pagesize) != pagesize)
20333     return 1;
20334   close (fd);
20335
20336   /* Next, try to mmap the file at a fixed address which already has
20337      something else allocated at it.  If we can, also make sure that
20338      we see the same garbage.  */
20339   fd = open ("conftest.mmap", O_RDWR);
20340   if (fd < 0)
20341     return 1;
20342   data2 = (char *) malloc (2 * pagesize);
20343   if (!data2)
20344     return 1;
20345   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20346   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20347                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20348     return 1;
20349   for (i = 0; i < pagesize; ++i)
20350     if (*(data + i) != *(data2 + i))
20351       return 1;
20352
20353   /* Finally, make sure that changes to the mapped area do not
20354      percolate back to the file as seen by read().  (This is a bug on
20355      some variants of i386 svr4.0.)  */
20356   for (i = 0; i < pagesize; ++i)
20357     *(data2 + i) = *(data2 + i) + 1;
20358   data3 = (char *) malloc (pagesize);
20359   if (!data3)
20360     return 1;
20361   if (read (fd, data3, pagesize) != pagesize)
20362     return 1;
20363   for (i = 0; i < pagesize; ++i)
20364     if (*(data + i) != *(data3 + i))
20365       return 1;
20366   close (fd);
20367   return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest$ac_exeext
20371 if { (ac_try="$ac_link"
20372 case "(($ac_try" in
20373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374   *) ac_try_echo=$ac_try;;
20375 esac
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377   (eval "$ac_link") 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20381   { (case "(($ac_try" in
20382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383   *) ac_try_echo=$ac_try;;
20384 esac
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386   (eval "$ac_try") 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); }; }; then
20390   ac_cv_func_mmap_fixed_mapped=yes
20391 else
20392   echo "$as_me: program exited with status $ac_status" >&5
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396 ( exit $ac_status )
20397 ac_cv_func_mmap_fixed_mapped=no
20398 fi
20399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20400 fi
20401
20402
20403 fi
20404 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20405 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20406 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20407
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_MMAP 1
20410 _ACEOF
20411
20412 fi
20413 rm -f conftest.mmap
20414
20415   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20416 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20417 if test "${ac_cv_func_mmap_file+set}" = set; then
20418   echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420    ac_ext=c
20421 ac_cpp='$CPP $CPPFLAGS'
20422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20425
20426   if test "$cross_compiling" = yes; then
20427   ac_cv_func_mmap_file=no
20428 else
20429   cat >conftest.$ac_ext <<_ACEOF
20430
20431     /* confdefs.h.  */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h.  */
20436
20437 #include <sys/types.h>
20438 #include <sys/mman.h>
20439 #include <fcntl.h>
20440
20441 int
20442 main ()
20443 {
20444
20445   int fd;
20446   fd = creat ("foo",0777);
20447   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20448   unlink ("foo");
20449   return (fd != (int) MAP_FAILED);
20450   ;
20451   return 0;
20452 }
20453 _ACEOF
20454 rm -f conftest$ac_exeext
20455 if { (ac_try="$ac_link"
20456 case "(($ac_try" in
20457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458   *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461   (eval "$ac_link") 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465   { (case "(($ac_try" in
20466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467   *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470   (eval "$ac_try") 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   ac_cv_func_mmap_file=yes
20475 else
20476   echo "$as_me: program exited with status $ac_status" >&5
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 ( exit $ac_status )
20481 ac_cv_func_mmap_file=no
20482 fi
20483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20484 fi
20485
20486
20487   ac_ext=c
20488 ac_cpp='$CPP $CPPFLAGS'
20489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492
20493
20494 fi
20495 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20496 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20497 if test "$ac_cv_func_mmap_file" = yes; then
20498
20499 cat >>confdefs.h <<\_ACEOF
20500 #define HAVE_MMAP_FILE
20501 _ACEOF
20502
20503    MMAP_FILE=yes
20504
20505 fi
20506
20507   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20508 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20509 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20510   echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512   if test "$llvm_cv_os_type" = "Interix" ; then
20513    ac_cv_need_dev_zero_for_mmap=yes
20514  else
20515    ac_cv_need_dev_zero_for_mmap=no
20516  fi
20517
20518 fi
20519 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20520 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20521 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20522
20523 cat >>confdefs.h <<\_ACEOF
20524 #define NEED_DEV_ZERO_FOR_MMAP 1
20525 _ACEOF
20526
20527 fi
20528
20529   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20530   then
20531     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20532 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20533   fi
20534   if test "$ac_cv_func_mmap_file" = "no"
20535   then
20536     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20537 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20538   fi
20539 fi
20540
20541 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20542 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20543 ac_ext=cpp
20544 ac_cpp='$CXXCPP $CPPFLAGS'
20545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20548
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 int main() {
20556         volatile unsigned long val = 1;
20557         __sync_synchronize();
20558         __sync_val_compare_and_swap(&val, 1, 0);
20559         __sync_add_and_fetch(&val, 1);
20560         __sync_sub_and_fetch(&val, 1);
20561         return 0;
20562       }
20563
20564 _ACEOF
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (ac_try="$ac_link"
20567 case "(($ac_try" in
20568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569   *) ac_try_echo=$ac_try;;
20570 esac
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572   (eval "$ac_link") 2>conftest.er1
20573   ac_status=$?
20574   grep -v '^ *+' conftest.er1 >conftest.err
20575   rm -f conftest.er1
20576   cat conftest.err >&5
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); } &&
20579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20580   { (case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_try") 2>&5
20586   ac_status=$?
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); }; } &&
20589          { ac_try='test -s conftest$ac_exeext'
20590   { (case "(($ac_try" in
20591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592   *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595   (eval "$ac_try") 2>&5
20596   ac_status=$?
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); }; }; then
20599   ac_ext=c
20600 ac_cpp='$CPP $CPPFLAGS'
20601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20604
20605   { echo "$as_me:$LINENO: result: yes" >&5
20606 echo "${ECHO_T}yes" >&6; }
20607
20608 cat >>confdefs.h <<\_ACEOF
20609 #define LLVM_HAS_ATOMICS 1
20610 _ACEOF
20611
20612 else
20613   echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20615
20616         { echo "$as_me:$LINENO: result: no" >&5
20617 echo "${ECHO_T}no" >&6; }
20618
20619 cat >>confdefs.h <<\_ACEOF
20620 #define LLVM_HAS_ATOMICS 0
20621 _ACEOF
20622
20623   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20624 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20625 fi
20626
20627 rm -f core conftest.err conftest.$ac_objext \
20628       conftest$ac_exeext conftest.$ac_ext
20629
20630
20631 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20632   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20633 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20634 if test "${llvm_cv_linux_mixed+set}" = set; then
20635   echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637    ac_ext=c
20638 ac_cpp='$CPP $CPPFLAGS'
20639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20642
20643   cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649 #ifndef __x86_64__
20650        error: Not x86-64 even if uname says so!
20651       #endif
20652
20653 int
20654 main ()
20655 {
20656
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (ac_try="$ac_compile"
20663 case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_compile") 2>conftest.er1
20669   ac_status=$?
20670   grep -v '^ *+' conftest.er1 >conftest.err
20671   rm -f conftest.er1
20672   cat conftest.err >&5
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); } &&
20675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20676   { (case "(($ac_try" in
20677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678   *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681   (eval "$ac_try") 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; } &&
20685          { ac_try='test -s conftest.$ac_objext'
20686   { (case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_try") 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   llvm_cv_linux_mixed=no
20696 else
20697   echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700         llvm_cv_linux_mixed=yes
20701 fi
20702
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704   ac_ext=c
20705 ac_cpp='$CPP $CPPFLAGS'
20706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710
20711 fi
20712 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20713 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20714
20715   if test "$llvm_cv_linux_mixed" = "yes"; then
20716     llvm_cv_target_arch="x86"
20717     ARCH="x86"
20718   fi
20719 fi
20720
20721
20722 for ac_func in __dso_handle
20723 do
20724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20728   echo $ECHO_N "(cached) $ECHO_C" >&6
20729 else
20730   cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20738 #define $ac_func innocuous_$ac_func
20739
20740 /* System header to define __stub macros and hopefully few prototypes,
20741     which can conflict with char $ac_func (); below.
20742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20743     <limits.h> exists even on freestanding compilers.  */
20744
20745 #ifdef __STDC__
20746 # include <limits.h>
20747 #else
20748 # include <assert.h>
20749 #endif
20750
20751 #undef $ac_func
20752
20753 /* Override any GCC internal prototype to avoid an error.
20754    Use char because int might match the return type of a GCC
20755    builtin and then its argument prototype would still apply.  */
20756 #ifdef __cplusplus
20757 extern "C"
20758 #endif
20759 char $ac_func ();
20760 /* The GNU C library defines this for functions which it implements
20761     to always fail with ENOSYS.  Some functions are actually named
20762     something starting with __ and the normal name is an alias.  */
20763 #if defined __stub_$ac_func || defined __stub___$ac_func
20764 choke me
20765 #endif
20766
20767 int
20768 main ()
20769 {
20770 return $ac_func ();
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_link") 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } &&
20789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20790   { (case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_try") 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; } &&
20799          { ac_try='test -s conftest$ac_exeext'
20800   { (case "(($ac_try" in
20801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802   *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805   (eval "$ac_try") 2>&5
20806   ac_status=$?
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); }; }; then
20809   eval "$as_ac_var=yes"
20810 else
20811   echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814         eval "$as_ac_var=no"
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext \
20818       conftest$ac_exeext conftest.$ac_ext
20819 fi
20820 ac_res=`eval echo '${'$as_ac_var'}'`
20821                { echo "$as_me:$LINENO: result: $ac_res" >&5
20822 echo "${ECHO_T}$ac_res" >&6; }
20823 if test `eval echo '${'$as_ac_var'}'` = yes; then
20824   cat >>confdefs.h <<_ACEOF
20825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20826 _ACEOF
20827
20828 fi
20829 done
20830
20831
20832 SHLIBEXT=$libltdl_cv_shlibext
20833
20834
20835 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20836
20837
20838 if test "${prefix}" = "NONE" ; then
20839   prefix="/usr/local"
20840 fi
20841 eval LLVM_PREFIX="${prefix}";
20842 eval LLVM_BINDIR="${prefix}/bin";
20843 eval LLVM_LIBDIR="${prefix}/lib";
20844 eval LLVM_DATADIR="${prefix}/share/llvm";
20845 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20846 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20847 eval LLVM_INCLUDEDIR="${prefix}/include";
20848 eval LLVM_INFODIR="${prefix}/info";
20849 eval LLVM_MANDIR="${prefix}/man";
20850 LLVM_CONFIGTIME=`date`
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20863   LLVM_CONFIGTIME="(timestamp not enabled)"
20864 fi
20865
20866
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_PREFIX "$LLVM_PREFIX"
20869 _ACEOF
20870
20871
20872 cat >>confdefs.h <<_ACEOF
20873 #define LLVM_BINDIR "$LLVM_BINDIR"
20874 _ACEOF
20875
20876
20877 cat >>confdefs.h <<_ACEOF
20878 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20879 _ACEOF
20880
20881
20882 cat >>confdefs.h <<_ACEOF
20883 #define LLVM_DATADIR "$LLVM_DATADIR"
20884 _ACEOF
20885
20886
20887 cat >>confdefs.h <<_ACEOF
20888 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20889 _ACEOF
20890
20891
20892 cat >>confdefs.h <<_ACEOF
20893 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20894 _ACEOF
20895
20896
20897 cat >>confdefs.h <<_ACEOF
20898 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20899 _ACEOF
20900
20901
20902 cat >>confdefs.h <<_ACEOF
20903 #define LLVM_INFODIR "$LLVM_INFODIR"
20904 _ACEOF
20905
20906
20907 cat >>confdefs.h <<_ACEOF
20908 #define LLVM_MANDIR "$LLVM_MANDIR"
20909 _ACEOF
20910
20911
20912 cat >>confdefs.h <<_ACEOF
20913 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20914 _ACEOF
20915
20916
20917 cat >>confdefs.h <<_ACEOF
20918 #define LLVM_HOSTTRIPLE "$host"
20919 _ACEOF
20920
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20924 _ACEOF
20925
20926
20927 if test "$BINDINGS_TO_BUILD" = auto ; then
20928   BINDINGS_TO_BUILD=""
20929   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20930     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20931   fi
20932 fi
20933 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20934
20935
20936 ALL_BINDINGS=ocaml
20937
20938
20939 binding_prereqs_failed=0
20940 for a_binding in $BINDINGS_TO_BUILD ; do
20941   case "$a_binding" in
20942   ocaml)
20943     if test "x$OCAMLC" = x ; then
20944       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20946       binding_prereqs_failed=1
20947     fi
20948     if test "x$OCAMLDEP" = x ; then
20949       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20950 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20951       binding_prereqs_failed=1
20952     fi
20953     if test "x$OCAMLOPT" = x ; then
20954       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20955 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20956           fi
20957     if test "x$with_ocaml_libdir" != xauto ; then
20958       OCAML_LIBDIR=$with_ocaml_libdir
20959
20960     else
20961       ocaml_stdlib="`"$OCAMLC" -where`"
20962       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20963       then
20964         # ocaml stdlib is beneath our prefix; use stdlib
20965         OCAML_LIBDIR=$ocaml_stdlib
20966
20967       else
20968         # ocaml stdlib is outside our prefix; use libdir/ocaml
20969         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20970
20971       fi
20972     fi
20973     ;;
20974   esac
20975 done
20976 if test "$binding_prereqs_failed" = 1 ; then
20977   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20978 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20979    { (exit 1); exit 1; }; }
20980 fi
20981
20982 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20983 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20984 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20985   echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987    ac_ext=cpp
20988 ac_cpp='$CXXCPP $CPPFLAGS'
20989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20992
20993   oldcxxflags="$CXXFLAGS"
20994   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20995   cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21002 int
21003 main ()
21004 {
21005 X<int>().f();
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext
21011 if { (ac_try="$ac_compile"
21012 case "(($ac_try" in
21013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014   *) ac_try_echo=$ac_try;;
21015 esac
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017   (eval "$ac_compile") 2>conftest.er1
21018   ac_status=$?
21019   grep -v '^ *+' conftest.er1 >conftest.err
21020   rm -f conftest.er1
21021   cat conftest.err >&5
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } &&
21024          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21025   { (case "(($ac_try" in
21026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027   *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030   (eval "$ac_try") 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); }; } &&
21034          { ac_try='test -s conftest.$ac_objext'
21035   { (case "(($ac_try" in
21036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037   *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040   (eval "$ac_try") 2>&5
21041   ac_status=$?
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); }; }; then
21044   llvm_cv_cxx_visibility_inlines_hidden=yes
21045 else
21046   echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049         llvm_cv_cxx_visibility_inlines_hidden=no
21050 fi
21051
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053   CXXFLAGS="$oldcxxflags"
21054   ac_ext=c
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21059
21060
21061 fi
21062 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21063 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21064 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21065   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21066
21067 else
21068   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21069
21070 fi
21071
21072
21073 if test "$llvm_cv_link_use_r" = "yes" ; then
21074   RPATH="-Wl,-R"
21075 else
21076   RPATH="-Wl,-rpath"
21077 fi
21078
21079
21080 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21081   RDYNAMIC="-Wl,-export-dynamic"
21082 else
21083   RDYNAMIC=""
21084 fi
21085
21086
21087
21088 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21089
21090
21091
21092
21093
21094
21095 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21096
21097 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21098
21099 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21100
21101 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21102
21103 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21104
21105
21106 ac_config_files="$ac_config_files Makefile.config"
21107
21108
21109 ac_config_files="$ac_config_files llvm.spec"
21110
21111
21112 ac_config_files="$ac_config_files docs/doxygen.cfg"
21113
21114
21115 if test "${clang_src_root}" = ""; then
21116   clang_src_root="$srcdir/tools/clang"
21117 fi
21118 if test -f ${clang_src_root}/README.txt; then
21119     configh="include/clang/Config/config.h"
21120   doxy="docs/doxygen.cfg"
21121   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21122
21123   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21124
21125 fi
21126
21127 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21128
21129
21130 ac_config_commands="$ac_config_commands setup"
21131
21132 ac_config_commands="$ac_config_commands Makefile"
21133
21134
21135 ac_config_commands="$ac_config_commands Makefile.common"
21136
21137
21138 ac_config_commands="$ac_config_commands examples/Makefile"
21139
21140
21141 ac_config_commands="$ac_config_commands lib/Makefile"
21142
21143
21144 ac_config_commands="$ac_config_commands runtime/Makefile"
21145
21146
21147 ac_config_commands="$ac_config_commands test/Makefile"
21148
21149
21150 ac_config_commands="$ac_config_commands test/Makefile.tests"
21151
21152
21153 ac_config_commands="$ac_config_commands unittests/Makefile"
21154
21155
21156 ac_config_commands="$ac_config_commands tools/Makefile"
21157
21158
21159 ac_config_commands="$ac_config_commands utils/Makefile"
21160
21161
21162 ac_config_commands="$ac_config_commands projects/Makefile"
21163
21164
21165 ac_config_commands="$ac_config_commands bindings/Makefile"
21166
21167
21168 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21169
21170
21171
21172 cat >confcache <<\_ACEOF
21173 # This file is a shell script that caches the results of configure
21174 # tests run on this system so they can be shared between configure
21175 # scripts and configure runs, see configure's option --config-cache.
21176 # It is not useful on other systems.  If it contains results you don't
21177 # want to keep, you may remove or edit it.
21178 #
21179 # config.status only pays attention to the cache file if you give it
21180 # the --recheck option to rerun configure.
21181 #
21182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21184 # following values.
21185
21186 _ACEOF
21187
21188 # The following way of writing the cache mishandles newlines in values,
21189 # but we know of no workaround that is simple, portable, and efficient.
21190 # So, we kill variables containing newlines.
21191 # Ultrix sh set writes to stderr and can't be redirected directly,
21192 # and sets the high bit in the cache file unless we assign to the vars.
21193 (
21194   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21195     eval ac_val=\$$ac_var
21196     case $ac_val in #(
21197     *${as_nl}*)
21198       case $ac_var in #(
21199       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21200 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21201       esac
21202       case $ac_var in #(
21203       _ | IFS | as_nl) ;; #(
21204       *) $as_unset $ac_var ;;
21205       esac ;;
21206     esac
21207   done
21208
21209   (set) 2>&1 |
21210     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21211     *${as_nl}ac_space=\ *)
21212       # `set' does not quote correctly, so add quotes (double-quote
21213       # substitution turns \\\\ into \\, and sed turns \\ into \).
21214       sed -n \
21215         "s/'/'\\\\''/g;
21216           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21217       ;; #(
21218     *)
21219       # `set' quotes correctly as required by POSIX, so do not add quotes.
21220       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21221       ;;
21222     esac |
21223     sort
21224 ) |
21225   sed '
21226      /^ac_cv_env_/b end
21227      t clear
21228      :clear
21229      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21230      t end
21231      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21232      :end' >>confcache
21233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21234   if test -w "$cache_file"; then
21235     test "x$cache_file" != "x/dev/null" &&
21236       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21237 echo "$as_me: updating cache $cache_file" >&6;}
21238     cat confcache >$cache_file
21239   else
21240     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21241 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21242   fi
21243 fi
21244 rm -f confcache
21245
21246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21247 # Let make expand exec_prefix.
21248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21249
21250 DEFS=-DHAVE_CONFIG_H
21251
21252 ac_libobjs=
21253 ac_ltlibobjs=
21254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21255   # 1. Remove the extension, and $U if already installed.
21256   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21257   ac_i=`echo "$ac_i" | sed "$ac_script"`
21258   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21259   #    will be set to the directory where LIBOBJS objects are built.
21260   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21261   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21262 done
21263 LIBOBJS=$ac_libobjs
21264
21265 LTLIBOBJS=$ac_ltlibobjs
21266
21267
21268 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21269   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21270 Usually this means the macro was only invoked conditionally." >&5
21271 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21272 Usually this means the macro was only invoked conditionally." >&2;}
21273    { (exit 1); exit 1; }; }
21274 fi
21275 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21276   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&5
21278 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&2;}
21280    { (exit 1); exit 1; }; }
21281 fi
21282
21283 : ${CONFIG_STATUS=./config.status}
21284 ac_clean_files_save=$ac_clean_files
21285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21286 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21287 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21288 cat >$CONFIG_STATUS <<_ACEOF
21289 #! $SHELL
21290 # Generated by $as_me.
21291 # Run this file to recreate the current configuration.
21292 # Compiler output produced by configure, useful for debugging
21293 # configure, is in config.log if it exists.
21294
21295 debug=false
21296 ac_cs_recheck=false
21297 ac_cs_silent=false
21298 SHELL=\${CONFIG_SHELL-$SHELL}
21299 _ACEOF
21300
21301 cat >>$CONFIG_STATUS <<\_ACEOF
21302 ## --------------------- ##
21303 ## M4sh Initialization.  ##
21304 ## --------------------- ##
21305
21306 # Be Bourne compatible
21307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21308   emulate sh
21309   NULLCMD=:
21310   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21311   # is contrary to our usage.  Disable this feature.
21312   alias -g '${1+"$@"}'='"$@"'
21313   setopt NO_GLOB_SUBST
21314 else
21315   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21316 fi
21317 BIN_SH=xpg4; export BIN_SH # for Tru64
21318 DUALCASE=1; export DUALCASE # for MKS sh
21319
21320
21321 # PATH needs CR
21322 # Avoid depending upon Character Ranges.
21323 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21324 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21325 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21326 as_cr_digits='0123456789'
21327 as_cr_alnum=$as_cr_Letters$as_cr_digits
21328
21329 # The user is always right.
21330 if test "${PATH_SEPARATOR+set}" != set; then
21331   echo "#! /bin/sh" >conf$$.sh
21332   echo  "exit 0"   >>conf$$.sh
21333   chmod +x conf$$.sh
21334   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21335     PATH_SEPARATOR=';'
21336   else
21337     PATH_SEPARATOR=:
21338   fi
21339   rm -f conf$$.sh
21340 fi
21341
21342 # Support unset when possible.
21343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21344   as_unset=unset
21345 else
21346   as_unset=false
21347 fi
21348
21349
21350 # IFS
21351 # We need space, tab and new line, in precisely that order.  Quoting is
21352 # there to prevent editors from complaining about space-tab.
21353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21354 # splitting by setting IFS to empty value.)
21355 as_nl='
21356 '
21357 IFS=" ""        $as_nl"
21358
21359 # Find who we are.  Look in the path if we contain no directory separator.
21360 case $0 in
21361   *[\\/]* ) as_myself=$0 ;;
21362   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21363 for as_dir in $PATH
21364 do
21365   IFS=$as_save_IFS
21366   test -z "$as_dir" && as_dir=.
21367   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21368 done
21369 IFS=$as_save_IFS
21370
21371      ;;
21372 esac
21373 # We did not find ourselves, most probably we were run as `sh COMMAND'
21374 # in which case we are not to be found in the path.
21375 if test "x$as_myself" = x; then
21376   as_myself=$0
21377 fi
21378 if test ! -f "$as_myself"; then
21379   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21380   { (exit 1); exit 1; }
21381 fi
21382
21383 # Work around bugs in pre-3.0 UWIN ksh.
21384 for as_var in ENV MAIL MAILPATH
21385 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21386 done
21387 PS1='$ '
21388 PS2='> '
21389 PS4='+ '
21390
21391 # NLS nuisances.
21392 for as_var in \
21393   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21394   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21395   LC_TELEPHONE LC_TIME
21396 do
21397   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21398     eval $as_var=C; export $as_var
21399   else
21400     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21401   fi
21402 done
21403
21404 # Required to use basename.
21405 if expr a : '\(a\)' >/dev/null 2>&1 &&
21406    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21407   as_expr=expr
21408 else
21409   as_expr=false
21410 fi
21411
21412 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21413   as_basename=basename
21414 else
21415   as_basename=false
21416 fi
21417
21418
21419 # Name of the executable.
21420 as_me=`$as_basename -- "$0" ||
21421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21422          X"$0" : 'X\(//\)$' \| \
21423          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21424 echo X/"$0" |
21425     sed '/^.*\/\([^/][^/]*\)\/*$/{
21426             s//\1/
21427             q
21428           }
21429           /^X\/\(\/\/\)$/{
21430             s//\1/
21431             q
21432           }
21433           /^X\/\(\/\).*/{
21434             s//\1/
21435             q
21436           }
21437           s/.*/./; q'`
21438
21439 # CDPATH.
21440 $as_unset CDPATH
21441
21442
21443
21444   as_lineno_1=$LINENO
21445   as_lineno_2=$LINENO
21446   test "x$as_lineno_1" != "x$as_lineno_2" &&
21447   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21448
21449   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21450   # uniformly replaced by the line number.  The first 'sed' inserts a
21451   # line-number line after each line using $LINENO; the second 'sed'
21452   # does the real work.  The second script uses 'N' to pair each
21453   # line-number line with the line containing $LINENO, and appends
21454   # trailing '-' during substitution so that $LINENO is not a special
21455   # case at line end.
21456   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21457   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21458   # E. McMahon (1931-1989) for sed's syntax.  :-)
21459   sed -n '
21460     p
21461     /[$]LINENO/=
21462   ' <$as_myself |
21463     sed '
21464       s/[$]LINENO.*/&-/
21465       t lineno
21466       b
21467       :lineno
21468       N
21469       :loop
21470       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21471       t loop
21472       s/-\n.*//
21473     ' >$as_me.lineno &&
21474   chmod +x "$as_me.lineno" ||
21475     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21476    { (exit 1); exit 1; }; }
21477
21478   # Don't try to exec as it changes $[0], causing all sort of problems
21479   # (the dirname of $[0] is not the place where we might find the
21480   # original and so on.  Autoconf is especially sensitive to this).
21481   . "./$as_me.lineno"
21482   # Exit status is that of the last command.
21483   exit
21484 }
21485
21486
21487 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21488   as_dirname=dirname
21489 else
21490   as_dirname=false
21491 fi
21492
21493 ECHO_C= ECHO_N= ECHO_T=
21494 case `echo -n x` in
21495 -n*)
21496   case `echo 'x\c'` in
21497   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21498   *)   ECHO_C='\c';;
21499   esac;;
21500 *)
21501   ECHO_N='-n';;
21502 esac
21503
21504 if expr a : '\(a\)' >/dev/null 2>&1 &&
21505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21506   as_expr=expr
21507 else
21508   as_expr=false
21509 fi
21510
21511 rm -f conf$$ conf$$.exe conf$$.file
21512 if test -d conf$$.dir; then
21513   rm -f conf$$.dir/conf$$.file
21514 else
21515   rm -f conf$$.dir
21516   mkdir conf$$.dir
21517 fi
21518 echo >conf$$.file
21519 if ln -s conf$$.file conf$$ 2>/dev/null; then
21520   as_ln_s='ln -s'
21521   # ... but there are two gotchas:
21522   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21523   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21524   # In both cases, we have to default to `cp -p'.
21525   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21526     as_ln_s='cp -p'
21527 elif ln conf$$.file conf$$ 2>/dev/null; then
21528   as_ln_s=ln
21529 else
21530   as_ln_s='cp -p'
21531 fi
21532 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21533 rmdir conf$$.dir 2>/dev/null
21534
21535 if mkdir -p . 2>/dev/null; then
21536   as_mkdir_p=:
21537 else
21538   test -d ./-p && rmdir ./-p
21539   as_mkdir_p=false
21540 fi
21541
21542 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21543 # systems may use methods other than mode bits to determine executability.
21544 cat >conf$$.file <<_ASEOF
21545 #! /bin/sh
21546 exit 0
21547 _ASEOF
21548 chmod +x conf$$.file
21549 if test -x conf$$.file >/dev/null 2>&1; then
21550   as_executable_p="test -x"
21551 else
21552   as_executable_p=:
21553 fi
21554 rm -f conf$$.file
21555
21556 # Sed expression to map a string onto a valid CPP name.
21557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21558
21559 # Sed expression to map a string onto a valid variable name.
21560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21561
21562
21563 exec 6>&1
21564
21565 # Save the log message, to keep $[0] and so on meaningful, and to
21566 # report actual input values of CONFIG_FILES etc. instead of their
21567 # values after options handling.
21568 ac_log="
21569 This file was extended by LLVM $as_me 3.2svn, which was
21570 generated by GNU Autoconf 2.60.  Invocation command line was
21571
21572   CONFIG_FILES    = $CONFIG_FILES
21573   CONFIG_HEADERS  = $CONFIG_HEADERS
21574   CONFIG_LINKS    = $CONFIG_LINKS
21575   CONFIG_COMMANDS = $CONFIG_COMMANDS
21576   $ $0 $@
21577
21578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21579 "
21580
21581 _ACEOF
21582
21583 cat >>$CONFIG_STATUS <<_ACEOF
21584 # Files that config.status was made for.
21585 config_files="$ac_config_files"
21586 config_headers="$ac_config_headers"
21587 config_commands="$ac_config_commands"
21588
21589 _ACEOF
21590
21591 cat >>$CONFIG_STATUS <<\_ACEOF
21592 ac_cs_usage="\
21593 \`$as_me' instantiates files from templates according to the
21594 current configuration.
21595
21596 Usage: $0 [OPTIONS] [FILE]...
21597
21598   -h, --help       print this help, then exit
21599   -V, --version    print version number, then exit
21600   -q, --quiet      do not print progress messages
21601   -d, --debug      don't remove temporary files
21602       --recheck    update $as_me by reconfiguring in the same conditions
21603   --file=FILE[:TEMPLATE]
21604                    instantiate the configuration file FILE
21605   --header=FILE[:TEMPLATE]
21606                    instantiate the configuration header FILE
21607
21608 Configuration files:
21609 $config_files
21610
21611 Configuration headers:
21612 $config_headers
21613
21614 Configuration commands:
21615 $config_commands
21616
21617 Report bugs to <bug-autoconf@gnu.org>."
21618
21619 _ACEOF
21620 cat >>$CONFIG_STATUS <<_ACEOF
21621 ac_cs_version="\\
21622 LLVM config.status 3.2svn
21623 configured by $0, generated by GNU Autoconf 2.60,
21624   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21625
21626 Copyright (C) 2006 Free Software Foundation, Inc.
21627 This config.status script is free software; the Free Software Foundation
21628 gives unlimited permission to copy, distribute and modify it."
21629
21630 ac_pwd='$ac_pwd'
21631 srcdir='$srcdir'
21632 INSTALL='$INSTALL'
21633 _ACEOF
21634
21635 cat >>$CONFIG_STATUS <<\_ACEOF
21636 # If no file are specified by the user, then we need to provide default
21637 # value.  By we need to know if files were specified by the user.
21638 ac_need_defaults=:
21639 while test $# != 0
21640 do
21641   case $1 in
21642   --*=*)
21643     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21644     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21645     ac_shift=:
21646     ;;
21647   *)
21648     ac_option=$1
21649     ac_optarg=$2
21650     ac_shift=shift
21651     ;;
21652   esac
21653
21654   case $ac_option in
21655   # Handling of the options.
21656   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21657     ac_cs_recheck=: ;;
21658   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21659     echo "$ac_cs_version"; exit ;;
21660   --debug | --debu | --deb | --de | --d | -d )
21661     debug=: ;;
21662   --file | --fil | --fi | --f )
21663     $ac_shift
21664     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21665     ac_need_defaults=false;;
21666   --header | --heade | --head | --hea )
21667     $ac_shift
21668     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21669     ac_need_defaults=false;;
21670   --he | --h)
21671     # Conflict between --help and --header
21672     { echo "$as_me: error: ambiguous option: $1
21673 Try \`$0 --help' for more information." >&2
21674    { (exit 1); exit 1; }; };;
21675   --help | --hel | -h )
21676     echo "$ac_cs_usage"; exit ;;
21677   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21678   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21679     ac_cs_silent=: ;;
21680
21681   # This is an error.
21682   -*) { echo "$as_me: error: unrecognized option: $1
21683 Try \`$0 --help' for more information." >&2
21684    { (exit 1); exit 1; }; } ;;
21685
21686   *) ac_config_targets="$ac_config_targets $1"
21687      ac_need_defaults=false ;;
21688
21689   esac
21690   shift
21691 done
21692
21693 ac_configure_extra_args=
21694
21695 if $ac_cs_silent; then
21696   exec 6>/dev/null
21697   ac_configure_extra_args="$ac_configure_extra_args --silent"
21698 fi
21699
21700 _ACEOF
21701 cat >>$CONFIG_STATUS <<_ACEOF
21702 if \$ac_cs_recheck; then
21703   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21704   CONFIG_SHELL=$SHELL
21705   export CONFIG_SHELL
21706   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21707 fi
21708
21709 _ACEOF
21710 cat >>$CONFIG_STATUS <<\_ACEOF
21711 exec 5>>config.log
21712 {
21713   echo
21714   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21715 ## Running $as_me. ##
21716 _ASBOX
21717   echo "$ac_log"
21718 } >&5
21719
21720 _ACEOF
21721 cat >>$CONFIG_STATUS <<_ACEOF
21722 #
21723 # INIT-COMMANDS
21724 #
21725 llvm_src="${srcdir}"
21726
21727 _ACEOF
21728
21729 cat >>$CONFIG_STATUS <<\_ACEOF
21730
21731 # Handling of arguments.
21732 for ac_config_target in $ac_config_targets
21733 do
21734   case $ac_config_target in
21735     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21736     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21737     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21738     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21739     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21740     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21741     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21742     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21743     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21744     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21745     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21746     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21747     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21748     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21749     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21750     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21751     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21752     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21753     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21754     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21755     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21756     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21757     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21758     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21759     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21760     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21761     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21762
21763   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21765    { (exit 1); exit 1; }; };;
21766   esac
21767 done
21768
21769
21770 # If the user did not use the arguments to specify the items to instantiate,
21771 # then the envvar interface is used.  Set only those that are not.
21772 # We use the long form for the default assignment because of an extremely
21773 # bizarre bug on SunOS 4.1.3.
21774 if $ac_need_defaults; then
21775   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21776   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21777   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21778 fi
21779
21780 # Have a temporary directory for convenience.  Make it in the build tree
21781 # simply because there is no reason against having it here, and in addition,
21782 # creating and moving files from /tmp can sometimes cause problems.
21783 # Hook for its removal unless debugging.
21784 # Note that there is a small window in which the directory will not be cleaned:
21785 # after its creation but before its name has been assigned to `$tmp'.
21786 $debug ||
21787 {
21788   tmp=
21789   trap 'exit_status=$?
21790   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21791 ' 0
21792   trap '{ (exit 1); exit 1; }' 1 2 13 15
21793 }
21794 # Create a (secure) tmp directory for tmp files.
21795
21796 {
21797   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21798   test -n "$tmp" && test -d "$tmp"
21799 }  ||
21800 {
21801   tmp=./conf$$-$RANDOM
21802   (umask 077 && mkdir "$tmp")
21803 } ||
21804 {
21805    echo "$me: cannot create a temporary directory in ." >&2
21806    { (exit 1); exit 1; }
21807 }
21808
21809 #
21810 # Set up the sed scripts for CONFIG_FILES section.
21811 #
21812
21813 # No need to generate the scripts if there are no CONFIG_FILES.
21814 # This happens for instance when ./config.status config.h
21815 if test -n "$CONFIG_FILES"; then
21816
21817 _ACEOF
21818
21819
21820
21821 ac_delim='%!_!# '
21822 for ac_last_try in false false false false false :; do
21823   cat >conf$$subs.sed <<_ACEOF
21824 SHELL!$SHELL$ac_delim
21825 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21826 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21827 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21828 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21829 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21830 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21831 exec_prefix!$exec_prefix$ac_delim
21832 prefix!$prefix$ac_delim
21833 program_transform_name!$program_transform_name$ac_delim
21834 bindir!$bindir$ac_delim
21835 sbindir!$sbindir$ac_delim
21836 libexecdir!$libexecdir$ac_delim
21837 datarootdir!$datarootdir$ac_delim
21838 datadir!$datadir$ac_delim
21839 sysconfdir!$sysconfdir$ac_delim
21840 sharedstatedir!$sharedstatedir$ac_delim
21841 localstatedir!$localstatedir$ac_delim
21842 includedir!$includedir$ac_delim
21843 oldincludedir!$oldincludedir$ac_delim
21844 docdir!$docdir$ac_delim
21845 infodir!$infodir$ac_delim
21846 htmldir!$htmldir$ac_delim
21847 dvidir!$dvidir$ac_delim
21848 pdfdir!$pdfdir$ac_delim
21849 psdir!$psdir$ac_delim
21850 libdir!$libdir$ac_delim
21851 localedir!$localedir$ac_delim
21852 mandir!$mandir$ac_delim
21853 DEFS!$DEFS$ac_delim
21854 ECHO_C!$ECHO_C$ac_delim
21855 ECHO_N!$ECHO_N$ac_delim
21856 ECHO_T!$ECHO_T$ac_delim
21857 LIBS!$LIBS$ac_delim
21858 build_alias!$build_alias$ac_delim
21859 host_alias!$host_alias$ac_delim
21860 target_alias!$target_alias$ac_delim
21861 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21862 CC!$CC$ac_delim
21863 CFLAGS!$CFLAGS$ac_delim
21864 LDFLAGS!$LDFLAGS$ac_delim
21865 CPPFLAGS!$CPPFLAGS$ac_delim
21866 ac_ct_CC!$ac_ct_CC$ac_delim
21867 EXEEXT!$EXEEXT$ac_delim
21868 OBJEXT!$OBJEXT$ac_delim
21869 CXX!$CXX$ac_delim
21870 CXXFLAGS!$CXXFLAGS$ac_delim
21871 ac_ct_CXX!$ac_ct_CXX$ac_delim
21872 CPP!$CPP$ac_delim
21873 subdirs!$subdirs$ac_delim
21874 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21875 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21876 build!$build$ac_delim
21877 build_cpu!$build_cpu$ac_delim
21878 build_vendor!$build_vendor$ac_delim
21879 build_os!$build_os$ac_delim
21880 host!$host$ac_delim
21881 host_cpu!$host_cpu$ac_delim
21882 host_vendor!$host_vendor$ac_delim
21883 host_os!$host_os$ac_delim
21884 target!$target$ac_delim
21885 target_cpu!$target_cpu$ac_delim
21886 target_vendor!$target_vendor$ac_delim
21887 target_os!$target_os$ac_delim
21888 OS!$OS$ac_delim
21889 HOST_OS!$HOST_OS$ac_delim
21890 TARGET_OS!$TARGET_OS$ac_delim
21891 LINKALL!$LINKALL$ac_delim
21892 NOLINKALL!$NOLINKALL$ac_delim
21893 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21894 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21895 ARCH!$ARCH$ac_delim
21896 HOST_ARCH!$HOST_ARCH$ac_delim
21897 ENDIAN!$ENDIAN$ac_delim
21898 GREP!$GREP$ac_delim
21899 EGREP!$EGREP$ac_delim
21900 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21901 BUILD_CC!$BUILD_CC$ac_delim
21902 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21903 BUILD_CXX!$BUILD_CXX$ac_delim
21904 CVSBUILD!$CVSBUILD$ac_delim
21905 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21906 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21907 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21908 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21909 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21910 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21911 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21912 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21913 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21914 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21915 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21916 JIT!$JIT$ac_delim
21917 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21918 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21919 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21920 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21921 _ACEOF
21922
21923   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21924     break
21925   elif $ac_last_try; then
21926     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21927 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21928    { (exit 1); exit 1; }; }
21929   else
21930     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21931   fi
21932 done
21933
21934 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21935 if test -n "$ac_eof"; then
21936   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21937   ac_eof=`expr $ac_eof + 1`
21938 fi
21939
21940 cat >>$CONFIG_STATUS <<_ACEOF
21941 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21943 _ACEOF
21944 sed '
21945 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21946 s/^/s,@/; s/!/@,|#_!!_#|/
21947 :n
21948 t n
21949 s/'"$ac_delim"'$/,g/; t
21950 s/$/\\/; p
21951 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21952 ' >>$CONFIG_STATUS <conf$$subs.sed
21953 rm -f conf$$subs.sed
21954 cat >>$CONFIG_STATUS <<_ACEOF
21955 CEOF$ac_eof
21956 _ACEOF
21957
21958
21959 ac_delim='%!_!# '
21960 for ac_last_try in false false false false false :; do
21961   cat >conf$$subs.sed <<_ACEOF
21962 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21963 ENABLE_PIC!$ENABLE_PIC$ac_delim
21964 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21965 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21966 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21967 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21968 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21969 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21970 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21971 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21972 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21973 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21974 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21975 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21976 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21977 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21978 NM!$NM$ac_delim
21979 ifGNUmake!$ifGNUmake$ac_delim
21980 LN_S!$LN_S$ac_delim
21981 CMP!$CMP$ac_delim
21982 CP!$CP$ac_delim
21983 DATE!$DATE$ac_delim
21984 FIND!$FIND$ac_delim
21985 MKDIR!$MKDIR$ac_delim
21986 MV!$MV$ac_delim
21987 RANLIB!$RANLIB$ac_delim
21988 AR!$AR$ac_delim
21989 RM!$RM$ac_delim
21990 SED!$SED$ac_delim
21991 TAR!$TAR$ac_delim
21992 BINPWD!$BINPWD$ac_delim
21993 GRAPHVIZ!$GRAPHVIZ$ac_delim
21994 DOT!$DOT$ac_delim
21995 FDP!$FDP$ac_delim
21996 NEATO!$NEATO$ac_delim
21997 TWOPI!$TWOPI$ac_delim
21998 CIRCO!$CIRCO$ac_delim
21999 GV!$GV$ac_delim
22000 DOTTY!$DOTTY$ac_delim
22001 XDOT_PY!$XDOT_PY$ac_delim
22002 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22003 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22004 INSTALL_DATA!$INSTALL_DATA$ac_delim
22005 BZIP2!$BZIP2$ac_delim
22006 CAT!$CAT$ac_delim
22007 DOXYGEN!$DOXYGEN$ac_delim
22008 GROFF!$GROFF$ac_delim
22009 GZIPBIN!$GZIPBIN$ac_delim
22010 PDFROFF!$PDFROFF$ac_delim
22011 ZIP!$ZIP$ac_delim
22012 OCAMLC!$OCAMLC$ac_delim
22013 OCAMLOPT!$OCAMLOPT$ac_delim
22014 OCAMLDEP!$OCAMLDEP$ac_delim
22015 OCAMLDOC!$OCAMLDOC$ac_delim
22016 GAS!$GAS$ac_delim
22017 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22018 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22019 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22020 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22021 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22022 LIBADD_DL!$LIBADD_DL$ac_delim
22023 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22024 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22025 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22026 USE_UDIS86!$USE_UDIS86$ac_delim
22027 USE_OPROFILE!$USE_OPROFILE$ac_delim
22028 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22029 XML2CONFIG!$XML2CONFIG$ac_delim
22030 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22031 LIBXML2_INC!$LIBXML2_INC$ac_delim
22032 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22033 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22034 MMAP_FILE!$MMAP_FILE$ac_delim
22035 SHLIBEXT!$SHLIBEXT$ac_delim
22036 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22037 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22038 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22039 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22040 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22041 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22042 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22043 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22044 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22045 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22046 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22047 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22048 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22049 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22050 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22051 RPATH!$RPATH$ac_delim
22052 RDYNAMIC!$RDYNAMIC$ac_delim
22053 LIBOBJS!$LIBOBJS$ac_delim
22054 LTLIBOBJS!$LTLIBOBJS$ac_delim
22055 _ACEOF
22056
22057   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
22058     break
22059   elif $ac_last_try; then
22060     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22062    { (exit 1); exit 1; }; }
22063   else
22064     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22065   fi
22066 done
22067
22068 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22069 if test -n "$ac_eof"; then
22070   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22071   ac_eof=`expr $ac_eof + 1`
22072 fi
22073
22074 cat >>$CONFIG_STATUS <<_ACEOF
22075 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22077 _ACEOF
22078 sed '
22079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22080 s/^/s,@/; s/!/@,|#_!!_#|/
22081 :n
22082 t n
22083 s/'"$ac_delim"'$/,g/; t
22084 s/$/\\/; p
22085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22086 ' >>$CONFIG_STATUS <conf$$subs.sed
22087 rm -f conf$$subs.sed
22088 cat >>$CONFIG_STATUS <<_ACEOF
22089 :end
22090 s/|#_!!_#|//g
22091 CEOF$ac_eof
22092 _ACEOF
22093
22094
22095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22097 # trailing colons and then remove the whole line if VPATH becomes empty
22098 # (actually we leave an empty line to preserve line numbers).
22099 if test "x$srcdir" = x.; then
22100   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22101 s/:*\$(srcdir):*/:/
22102 s/:*\${srcdir}:*/:/
22103 s/:*@srcdir@:*/:/
22104 s/^\([^=]*=[     ]*\):*/\1/
22105 s/:*$//
22106 s/^[^=]*=[       ]*$//
22107 }'
22108 fi
22109
22110 cat >>$CONFIG_STATUS <<\_ACEOF
22111 fi # test -n "$CONFIG_FILES"
22112
22113
22114 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22115 do
22116   case $ac_tag in
22117   :[FHLC]) ac_mode=$ac_tag; continue;;
22118   esac
22119   case $ac_mode$ac_tag in
22120   :[FHL]*:*);;
22121   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22122 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22123    { (exit 1); exit 1; }; };;
22124   :[FH]-) ac_tag=-:-;;
22125   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22126   esac
22127   ac_save_IFS=$IFS
22128   IFS=:
22129   set x $ac_tag
22130   IFS=$ac_save_IFS
22131   shift
22132   ac_file=$1
22133   shift
22134
22135   case $ac_mode in
22136   :L) ac_source=$1;;
22137   :[FH])
22138     ac_file_inputs=
22139     for ac_f
22140     do
22141       case $ac_f in
22142       -) ac_f="$tmp/stdin";;
22143       *) # Look for the file first in the build tree, then in the source tree
22144          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22145          # because $ac_f cannot contain `:'.
22146          test -f "$ac_f" ||
22147            case $ac_f in
22148            [\\/$]*) false;;
22149            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22150            esac ||
22151            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22152 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22153    { (exit 1); exit 1; }; };;
22154       esac
22155       ac_file_inputs="$ac_file_inputs $ac_f"
22156     done
22157
22158     # Let's still pretend it is `configure' which instantiates (i.e., don't
22159     # use $as_me), people would be surprised to read:
22160     #    /* config.h.  Generated by config.status.  */
22161     configure_input="Generated from "`IFS=:
22162           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22163     if test x"$ac_file" != x-; then
22164       configure_input="$ac_file.  $configure_input"
22165       { echo "$as_me:$LINENO: creating $ac_file" >&5
22166 echo "$as_me: creating $ac_file" >&6;}
22167     fi
22168
22169     case $ac_tag in
22170     *:-:* | *:-) cat >"$tmp/stdin";;
22171     esac
22172     ;;
22173   esac
22174
22175   ac_dir=`$as_dirname -- "$ac_file" ||
22176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22177          X"$ac_file" : 'X\(//\)[^/]' \| \
22178          X"$ac_file" : 'X\(//\)$' \| \
22179          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22180 echo X"$ac_file" |
22181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22182             s//\1/
22183             q
22184           }
22185           /^X\(\/\/\)[^/].*/{
22186             s//\1/
22187             q
22188           }
22189           /^X\(\/\/\)$/{
22190             s//\1/
22191             q
22192           }
22193           /^X\(\/\).*/{
22194             s//\1/
22195             q
22196           }
22197           s/.*/./; q'`
22198   { as_dir="$ac_dir"
22199   case $as_dir in #(
22200   -*) as_dir=./$as_dir;;
22201   esac
22202   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22203     as_dirs=
22204     while :; do
22205       case $as_dir in #(
22206       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22207       *) as_qdir=$as_dir;;
22208       esac
22209       as_dirs="'$as_qdir' $as_dirs"
22210       as_dir=`$as_dirname -- "$as_dir" ||
22211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22212          X"$as_dir" : 'X\(//\)[^/]' \| \
22213          X"$as_dir" : 'X\(//\)$' \| \
22214          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22215 echo X"$as_dir" |
22216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22217             s//\1/
22218             q
22219           }
22220           /^X\(\/\/\)[^/].*/{
22221             s//\1/
22222             q
22223           }
22224           /^X\(\/\/\)$/{
22225             s//\1/
22226             q
22227           }
22228           /^X\(\/\).*/{
22229             s//\1/
22230             q
22231           }
22232           s/.*/./; q'`
22233       test -d "$as_dir" && break
22234     done
22235     test -z "$as_dirs" || eval "mkdir $as_dirs"
22236   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22237 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22238    { (exit 1); exit 1; }; }; }
22239   ac_builddir=.
22240
22241 case "$ac_dir" in
22242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22243 *)
22244   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22245   # A ".." for each directory in $ac_dir_suffix.
22246   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22247   case $ac_top_builddir_sub in
22248   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22250   esac ;;
22251 esac
22252 ac_abs_top_builddir=$ac_pwd
22253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22254 # for backward compatibility:
22255 ac_top_builddir=$ac_top_build_prefix
22256
22257 case $srcdir in
22258   .)  # We are building in place.
22259     ac_srcdir=.
22260     ac_top_srcdir=$ac_top_builddir_sub
22261     ac_abs_top_srcdir=$ac_pwd ;;
22262   [\\/]* | ?:[\\/]* )  # Absolute name.
22263     ac_srcdir=$srcdir$ac_dir_suffix;
22264     ac_top_srcdir=$srcdir
22265     ac_abs_top_srcdir=$srcdir ;;
22266   *) # Relative name.
22267     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22268     ac_top_srcdir=$ac_top_build_prefix$srcdir
22269     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22270 esac
22271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22272
22273
22274   case $ac_mode in
22275   :F)
22276   #
22277   # CONFIG_FILE
22278   #
22279
22280   case $INSTALL in
22281   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22282   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22283   esac
22284 _ACEOF
22285
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22287 # If the template does not know about datarootdir, expand it.
22288 # FIXME: This hack should be removed a few years after 2.60.
22289 ac_datarootdir_hack=; ac_datarootdir_seen=
22290
22291 case `sed -n '/datarootdir/ {
22292   p
22293   q
22294 }
22295 /@datadir@/p
22296 /@docdir@/p
22297 /@infodir@/p
22298 /@localedir@/p
22299 /@mandir@/p
22300 ' $ac_file_inputs` in
22301 *datarootdir*) ac_datarootdir_seen=yes;;
22302 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22303   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22304 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22305 _ACEOF
22306 cat >>$CONFIG_STATUS <<_ACEOF
22307   ac_datarootdir_hack='
22308   s&@datadir@&$datadir&g
22309   s&@docdir@&$docdir&g
22310   s&@infodir@&$infodir&g
22311   s&@localedir@&$localedir&g
22312   s&@mandir@&$mandir&g
22313     s&\\\${datarootdir}&$datarootdir&g' ;;
22314 esac
22315 _ACEOF
22316
22317 # Neutralize VPATH when `$srcdir' = `.'.
22318 # Shell code in configure.ac might set extrasub.
22319 # FIXME: do we really want to maintain this feature?
22320 cat >>$CONFIG_STATUS <<_ACEOF
22321   sed "$ac_vpsub
22322 $extrasub
22323 _ACEOF
22324 cat >>$CONFIG_STATUS <<\_ACEOF
22325 :t
22326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22327 s&@configure_input@&$configure_input&;t t
22328 s&@top_builddir@&$ac_top_builddir_sub&;t t
22329 s&@srcdir@&$ac_srcdir&;t t
22330 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22331 s&@top_srcdir@&$ac_top_srcdir&;t t
22332 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22333 s&@builddir@&$ac_builddir&;t t
22334 s&@abs_builddir@&$ac_abs_builddir&;t t
22335 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22336 s&@INSTALL@&$ac_INSTALL&;t t
22337 $ac_datarootdir_hack
22338 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22339
22340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22341   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22342   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22343   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22344 which seems to be undefined.  Please make sure it is defined." >&5
22345 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22346 which seems to be undefined.  Please make sure it is defined." >&2;}
22347
22348   rm -f "$tmp/stdin"
22349   case $ac_file in
22350   -) cat "$tmp/out"; rm -f "$tmp/out";;
22351   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22352   esac
22353  ;;
22354   :H)
22355   #
22356   # CONFIG_HEADER
22357   #
22358 _ACEOF
22359
22360 # Transform confdefs.h into a sed script `conftest.defines', that
22361 # substitutes the proper values into config.h.in to produce config.h.
22362 rm -f conftest.defines conftest.tail
22363 # First, append a space to every undef/define line, to ease matching.
22364 echo 's/$/ /' >conftest.defines
22365 # Then, protect against being on the right side of a sed subst, or in
22366 # an unquoted here document, in config.status.  If some macros were
22367 # called several times there might be several #defines for the same
22368 # symbol, which is useless.  But do not sort them, since the last
22369 # AC_DEFINE must be honored.
22370 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22371 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22372 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22373 # PARAMS is the parameter list in the macro definition--in most cases, it's
22374 # just an empty string.
22375 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22376 ac_dB='\\)[      (].*,\\1define\\2'
22377 ac_dC=' '
22378 ac_dD=' ,'
22379
22380 uniq confdefs.h |
22381   sed -n '
22382         t rset
22383         :rset
22384         s/^[     ]*#[    ]*define[       ][      ]*//
22385         t ok
22386         d
22387         :ok
22388         s/[\\&,]/\\&/g
22389         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22390         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22391   ' >>conftest.defines
22392
22393 # Remove the space that was appended to ease matching.
22394 # Then replace #undef with comments.  This is necessary, for
22395 # example, in the case of _POSIX_SOURCE, which is predefined and required
22396 # on some systems where configure will not decide to define it.
22397 # (The regexp can be short, since the line contains either #define or #undef.)
22398 echo 's/ $//
22399 s,^[     #]*u.*,/* & */,' >>conftest.defines
22400
22401 # Break up conftest.defines:
22402 ac_max_sed_lines=50
22403
22404 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22405 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22406 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22407 # et cetera.
22408 ac_in='$ac_file_inputs'
22409 ac_out='"$tmp/out1"'
22410 ac_nxt='"$tmp/out2"'
22411
22412 while :
22413 do
22414   # Write a here document:
22415     cat >>$CONFIG_STATUS <<_ACEOF
22416     # First, check the format of the line:
22417     cat >"\$tmp/defines.sed" <<\\CEOF
22418 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22419 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22420 b
22421 :def
22422 _ACEOF
22423   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22424   echo 'CEOF
22425     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22426   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22427   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22428   grep . conftest.tail >/dev/null || break
22429   rm -f conftest.defines
22430   mv conftest.tail conftest.defines
22431 done
22432 rm -f conftest.defines conftest.tail
22433
22434 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22435 cat >>$CONFIG_STATUS <<\_ACEOF
22436   if test x"$ac_file" != x-; then
22437     echo "/* $configure_input  */" >"$tmp/config.h"
22438     cat "$ac_result" >>"$tmp/config.h"
22439     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22440       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22441 echo "$as_me: $ac_file is unchanged" >&6;}
22442     else
22443       rm -f $ac_file
22444       mv "$tmp/config.h" $ac_file
22445     fi
22446   else
22447     echo "/* $configure_input  */"
22448     cat "$ac_result"
22449   fi
22450   rm -f "$tmp/out12"
22451  ;;
22452
22453   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22454 echo "$as_me: executing $ac_file commands" >&6;}
22455  ;;
22456   esac
22457
22458
22459   case $ac_file$ac_mode in
22460     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22461    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22462     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22463    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22464     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22465    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22466     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22467    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22468     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22469    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22470     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22471    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22472     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22473    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22474     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22475    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22476     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22477    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22478     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22479    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22480     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22481    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22482     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22483    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22484     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22485    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22486
22487   esac
22488 done # for ac_tag
22489
22490
22491 { (exit 0); exit 0; }
22492 _ACEOF
22493 chmod +x $CONFIG_STATUS
22494 ac_clean_files=$ac_clean_files_save
22495
22496
22497 # configure is writing to config.log, and then calls config.status.
22498 # config.status does its own redirection, appending to config.log.
22499 # Unfortunately, on DOS this fails, as config.log is still kept open
22500 # by configure, so config.status won't be able to write to it; its
22501 # output is simply discarded.  So we exec the FD to /dev/null,
22502 # effectively closing config.log, so it can be properly (re)opened and
22503 # appended to by config.status.  When coming back to configure, we
22504 # need to make the FD available again.
22505 if test "$no_create" != yes; then
22506   ac_cs_success=:
22507   ac_config_status_args=
22508   test "$silent" = yes &&
22509     ac_config_status_args="$ac_config_status_args --quiet"
22510   exec 5>/dev/null
22511   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22512   exec 5>>config.log
22513   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22514   # would make configure fail if this is the last instruction.
22515   $ac_cs_success || { (exit 1); exit 1; }
22516 fi
22517
22518 #
22519 # CONFIG_SUBDIRS section.
22520 #
22521 if test "$no_recursion" != yes; then
22522
22523   # Remove --cache-file and --srcdir arguments so they do not pile up.
22524   ac_sub_configure_args=
22525   ac_prev=
22526   eval "set x $ac_configure_args"
22527   shift
22528   for ac_arg
22529   do
22530     if test -n "$ac_prev"; then
22531       ac_prev=
22532       continue
22533     fi
22534     case $ac_arg in
22535     -cache-file | --cache-file | --cache-fil | --cache-fi \
22536     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22537       ac_prev=cache_file ;;
22538     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22539     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22540     | --c=*)
22541       ;;
22542     --config-cache | -C)
22543       ;;
22544     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22545       ac_prev=srcdir ;;
22546     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22547       ;;
22548     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22549       ac_prev=prefix ;;
22550     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22551       ;;
22552     *)
22553       case $ac_arg in
22554       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22555       esac
22556       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22557     esac
22558   done
22559
22560   # Always prepend --prefix to ensure using the same prefix
22561   # in subdir configurations.
22562   ac_arg="--prefix=$prefix"
22563   case $ac_arg in
22564   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22565   esac
22566   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22567
22568   ac_popdir=`pwd`
22569   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22570
22571     # Do not complain, so a configure script can configure whichever
22572     # parts of a large source tree are present.
22573     test -d "$srcdir/$ac_dir" || continue
22574
22575     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22576     echo "$as_me:$LINENO: $ac_msg" >&5
22577     echo "$ac_msg" >&6
22578     { as_dir="$ac_dir"
22579   case $as_dir in #(
22580   -*) as_dir=./$as_dir;;
22581   esac
22582   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22583     as_dirs=
22584     while :; do
22585       case $as_dir in #(
22586       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22587       *) as_qdir=$as_dir;;
22588       esac
22589       as_dirs="'$as_qdir' $as_dirs"
22590       as_dir=`$as_dirname -- "$as_dir" ||
22591 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22592          X"$as_dir" : 'X\(//\)[^/]' \| \
22593          X"$as_dir" : 'X\(//\)$' \| \
22594          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22595 echo X"$as_dir" |
22596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22597             s//\1/
22598             q
22599           }
22600           /^X\(\/\/\)[^/].*/{
22601             s//\1/
22602             q
22603           }
22604           /^X\(\/\/\)$/{
22605             s//\1/
22606             q
22607           }
22608           /^X\(\/\).*/{
22609             s//\1/
22610             q
22611           }
22612           s/.*/./; q'`
22613       test -d "$as_dir" && break
22614     done
22615     test -z "$as_dirs" || eval "mkdir $as_dirs"
22616   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22617 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22618    { (exit 1); exit 1; }; }; }
22619     ac_builddir=.
22620
22621 case "$ac_dir" in
22622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22623 *)
22624   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22625   # A ".." for each directory in $ac_dir_suffix.
22626   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22627   case $ac_top_builddir_sub in
22628   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22629   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22630   esac ;;
22631 esac
22632 ac_abs_top_builddir=$ac_pwd
22633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22634 # for backward compatibility:
22635 ac_top_builddir=$ac_top_build_prefix
22636
22637 case $srcdir in
22638   .)  # We are building in place.
22639     ac_srcdir=.
22640     ac_top_srcdir=$ac_top_builddir_sub
22641     ac_abs_top_srcdir=$ac_pwd ;;
22642   [\\/]* | ?:[\\/]* )  # Absolute name.
22643     ac_srcdir=$srcdir$ac_dir_suffix;
22644     ac_top_srcdir=$srcdir
22645     ac_abs_top_srcdir=$srcdir ;;
22646   *) # Relative name.
22647     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22648     ac_top_srcdir=$ac_top_build_prefix$srcdir
22649     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22650 esac
22651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22652
22653
22654     cd "$ac_dir"
22655
22656     # Check for guested configure; otherwise get Cygnus style configure.
22657     if test -f "$ac_srcdir/configure.gnu"; then
22658       ac_sub_configure=$ac_srcdir/configure.gnu
22659     elif test -f "$ac_srcdir/configure"; then
22660       ac_sub_configure=$ac_srcdir/configure
22661     elif test -f "$ac_srcdir/configure.in"; then
22662       # This should be Cygnus configure.
22663       ac_sub_configure=$ac_aux_dir/configure
22664     else
22665       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22666 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22667       ac_sub_configure=
22668     fi
22669
22670     # The recursion is here.
22671     if test -n "$ac_sub_configure"; then
22672       # Make the cache file name correct relative to the subdirectory.
22673       case $cache_file in
22674       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22675       *) # Relative name.
22676         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22677       esac
22678
22679       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22680 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22681       # The eval makes quoting arguments work.
22682       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22683            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22684         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22685 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22686    { (exit 1); exit 1; }; }
22687     fi
22688
22689     cd "$ac_popdir"
22690   done
22691 fi
22692