Handle newer cases for freebsd which is approaching 10.0 and not 1.0.
[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.1svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2011 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.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
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 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 NM
714 ifGNUmake
715 LN_S
716 CMP
717 CP
718 DATE
719 FIND
720 MKDIR
721 MV
722 RANLIB
723 AR
724 RM
725 SED
726 TAR
727 BINPWD
728 GRAPHVIZ
729 DOT
730 FDP
731 NEATO
732 TWOPI
733 CIRCO
734 GV
735 DOTTY
736 XDOT_PY
737 PERL
738 HAVE_PERL
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='projects/llvm-gcc
804 projects/test-suite
805 projects/llvm-test
806 projects/poolalloc
807 projects/llvm-poolalloc
808 projects/sample
809 projects/privbracket
810 projects/llvm-stacker
811 projects/llvm-reopt
812 projects/llvm-java
813 projects/llvm-tv
814 projects/safecode
815 projects/llvm-kernel
816 tools/polly'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of llvm 3.1svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-polly          Use polly if available (default is YES)
1392   --enable-optimized      Compile with optimizations enabled (default is NO)
1393   --enable-profiling      Compile with profiling enabled (default is NO)
1394   --enable-assertions     Compile with assertion checks enabled (default is
1395                           YES)
1396   --enable-expensive-checks
1397                           Compile with expensive debug checks enabled (default
1398                           is NO)
1399   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1400                           NO)
1401   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1402                           optimization is on and YES if it's off)
1403   --enable-jit            Enable Just In Time Compiling (default is YES)
1404   --enable-docs           Build documents (default is YES)
1405   --enable-doxygen        Build doxygen documentation (default is NO)
1406   --enable-threads        Use threads if available (default is YES)
1407   --enable-pthreads       Use pthreads if available (default is YES)
1408   --enable-pic            Build LLVM with Position Independent Code (default
1409                           is YES)
1410   --enable-shared         Build a shared library and link tools against it
1411                           (default is NO)
1412   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1413                           Win32 DLL (default is NO)
1414   --enable-timestamps     Enable embedding timestamp information in build
1415                           (default is YES)
1416   --enable-targets        Build specific host targets: all or
1417                           target1,target2,... Valid targets are: host, x86,
1418                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419                           xcore, msp430, ptx, cbe, and cpp (default=all)
1420   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1421                           %a (default is YES)
1422   --enable-bindings       Build specific language bindings:
1423                           all,auto,none,{binding-name} (default=auto)
1424   --enable-libffi         Check for the presence of libffi (default is NO)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-optimize-option  Select the compiler options to use for optimized
1431                           builds
1432   --with-extra-options    Specify additional options to compile LLVM with
1433   --with-extra-ld-options Specify additional options to link LLVM with
1434   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1435                           is stdlib)
1436   --with-clang-srcdir     Directory to the out-of-tree Clang source
1437   --with-clang-resource-dir
1438                           Relative directory from the Clang binary for
1439                           resource files
1440   --with-c-include-dirs   Colon separated list of directories clang will
1441                           search for headers
1442   --with-cxx-include-root Directory with the libstdc++ headers.
1443   --with-cxx-include-arch Architecture of the libstdc++ headers.
1444   --with-cxx-include-32bit-dir
1445                           32 bit multilib dir.
1446   --with-cxx-include-64bit-dir
1447                           64 bit multilib directory.
1448   --with-binutils-include Specify path to binutils/include/ containing
1449                           plugin-api.h file for gold plugin.
1450   --with-bug-report-url   Specify the URL where bug reports should be
1451                           submitted (default=http://llvm.org/bugs/)
1452   --with-tclinclude       directory where tcl headers are
1453   --with-udis86=<path>    Use udis86 external x86 disassembler library
1454   --with-oprofile=<prefix>
1455                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1456
1457 Some influential environment variables:
1458   CC          C compiler command
1459   CFLAGS      C compiler flags
1460   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461               nonstandard directory <lib dir>
1462   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   CXX         C++ compiler command
1465   CXXFLAGS    C++ compiler flags
1466   CPP         C preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <llvmbugs@cs.uiuc.edu>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" || continue
1480     ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486   # A ".." for each directory in $ac_dir_suffix.
1487   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488   case $ac_top_builddir_sub in
1489   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491   esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499   .)  # We are building in place.
1500     ac_srcdir=.
1501     ac_top_srcdir=$ac_top_builddir_sub
1502     ac_abs_top_srcdir=$ac_pwd ;;
1503   [\\/]* | ?:[\\/]* )  # Absolute name.
1504     ac_srcdir=$srcdir$ac_dir_suffix;
1505     ac_top_srcdir=$srcdir
1506     ac_abs_top_srcdir=$srcdir ;;
1507   *) # Relative name.
1508     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509     ac_top_srcdir=$ac_top_build_prefix$srcdir
1510     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514     cd "$ac_dir" || { ac_status=$?; continue; }
1515     # Check for guested configure.
1516     if test -f "$ac_srcdir/configure.gnu"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519     elif test -f "$ac_srcdir/configure"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure" --help=recursive
1522     else
1523       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524     fi || ac_status=$?
1525     cd "$ac_pwd" || { ac_status=$?; break; }
1526   done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531   cat <<\_ACEOF
1532 llvm configure 3.1svn
1533 generated by GNU Autoconf 2.60
1534
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539
1540 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1541 _ACEOF
1542   exit
1543 fi
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1547
1548 It was created by llvm $as_me 3.1svn, which was
1549 generated by GNU Autoconf 2.60.  Invocation command line was
1550
1551   $ $0 $@
1552
1553 _ACEOF
1554 exec 5>>config.log
1555 {
1556 cat <<_ASUNAME
1557 ## --------- ##
1558 ## Platform. ##
1559 ## --------- ##
1560
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1569
1570 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1571 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1574 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1575 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1576 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1577
1578 _ASUNAME
1579
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583   IFS=$as_save_IFS
1584   test -z "$as_dir" && as_dir=.
1585   echo "PATH: $as_dir"
1586 done
1587 IFS=$as_save_IFS
1588
1589 } >&5
1590
1591 cat >&5 <<_ACEOF
1592
1593
1594 ## ----------- ##
1595 ## Core tests. ##
1596 ## ----------- ##
1597
1598 _ACEOF
1599
1600
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1606 ac_configure_args=
1607 ac_configure_args0=
1608 ac_configure_args1=
1609 ac_must_keep_next=false
1610 for ac_pass in 1 2
1611 do
1612   for ac_arg
1613   do
1614     case $ac_arg in
1615     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617     | -silent | --silent | --silen | --sile | --sil)
1618       continue ;;
1619     *\'*)
1620       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621     esac
1622     case $ac_pass in
1623     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624     2)
1625       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626       if test $ac_must_keep_next = true; then
1627         ac_must_keep_next=false # Got value, back to normal.
1628       else
1629         case $ac_arg in
1630           *=* | --config-cache | -C | -disable-* | --disable-* \
1631           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633           | -with-* | --with-* | -without-* | --without-* | --x)
1634             case "$ac_configure_args0 " in
1635               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636             esac
1637             ;;
1638           -* ) ac_must_keep_next=true ;;
1639         esac
1640       fi
1641       ac_configure_args="$ac_configure_args '$ac_arg'"
1642       ;;
1643     esac
1644   done
1645 done
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log.  We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655   # Save into config.log some information that might help in debugging.
1656   {
1657     echo
1658
1659     cat <<\_ASBOX
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1663 _ASBOX
1664     echo
1665     # The following way of writing the cache mishandles newlines in values,
1666 (
1667   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668     eval ac_val=\$$ac_var
1669     case $ac_val in #(
1670     *${as_nl}*)
1671       case $ac_var in #(
1672       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1674       esac
1675       case $ac_var in #(
1676       _ | IFS | as_nl) ;; #(
1677       *) $as_unset $ac_var ;;
1678       esac ;;
1679     esac
1680   done
1681   (set) 2>&1 |
1682     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683     *${as_nl}ac_space=\ *)
1684       sed -n \
1685         "s/'\''/'\''\\\\'\'''\''/g;
1686           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687       ;; #(
1688     *)
1689       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1690       ;;
1691     esac |
1692     sort
1693 )
1694     echo
1695
1696     cat <<\_ASBOX
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1700 _ASBOX
1701     echo
1702     for ac_var in $ac_subst_vars
1703     do
1704       eval ac_val=\$$ac_var
1705       case $ac_val in
1706       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707       esac
1708       echo "$ac_var='\''$ac_val'\''"
1709     done | sort
1710     echo
1711
1712     if test -n "$ac_subst_files"; then
1713       cat <<\_ASBOX
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1717 _ASBOX
1718       echo
1719       for ac_var in $ac_subst_files
1720       do
1721         eval ac_val=\$$ac_var
1722         case $ac_val in
1723         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724         esac
1725         echo "$ac_var='\''$ac_val'\''"
1726       done | sort
1727       echo
1728     fi
1729
1730     if test -s confdefs.h; then
1731       cat <<\_ASBOX
1732 ## ----------- ##
1733 ## confdefs.h. ##
1734 ## ----------- ##
1735 _ASBOX
1736       echo
1737       cat confdefs.h
1738       echo
1739     fi
1740     test "$ac_signal" != 0 &&
1741       echo "$as_me: caught signal $ac_signal"
1742     echo "$as_me: exit $exit_status"
1743   } >&5
1744   rm -f core *.core core.conftest.* &&
1745     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1746     exit $exit_status
1747 ' 0
1748 for ac_signal in 1 2 13 15; do
1749   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1750 done
1751 ac_signal=0
1752
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1755
1756 # Predefined preprocessor variables.
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1760 _ACEOF
1761
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780 _ACEOF
1781
1782
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786   set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 else
1790   set x "$ac_default_prefix/share/config.site" \
1791         "$ac_default_prefix/etc/config.site"
1792 fi
1793 shift
1794 for ac_site_file
1795 do
1796   if test -r "$ac_site_file"; then
1797     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799     sed 's/^/| /' "$ac_site_file" >&5
1800     . "$ac_site_file"
1801   fi
1802 done
1803
1804 if test -r "$cache_file"; then
1805   # Some versions of bash will fail to source /dev/null (special
1806   # files actually), so we avoid doing that.
1807   if test -f "$cache_file"; then
1808     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1810     case $cache_file in
1811       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812       *)                      . "./$cache_file";;
1813     esac
1814   fi
1815 else
1816   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1818   >$cache_file
1819 fi
1820
1821 # Check that the precious variables saved in the cache have kept the same
1822 # value.
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826   eval ac_new_set=\$ac_env_${ac_var}_set
1827   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828   eval ac_new_val=\$ac_env_${ac_var}_value
1829   case $ac_old_set,$ac_new_set in
1830     set,)
1831       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833       ac_cache_corrupted=: ;;
1834     ,set)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,);;
1839     *)
1840       if test "x$ac_old_val" != "x$ac_new_val"; then
1841         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1844 echo "$as_me:   former value:  $ac_old_val" >&2;}
1845         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1846 echo "$as_me:   current value: $ac_new_val" >&2;}
1847         ac_cache_corrupted=:
1848       fi;;
1849   esac
1850   # Pass precious variables to config.status.
1851   if test "$ac_new_set" = set; then
1852     case $ac_new_val in
1853     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854     *) ac_arg=$ac_var=$ac_new_val ;;
1855     esac
1856     case " $ac_configure_args " in
1857       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1858       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1859     esac
1860   fi
1861 done
1862 if $ac_cache_corrupted; then
1863   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867    { (exit 1); exit 1; }; }
1868 fi
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894 ac_ext=c
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
1902 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1903
1904
1905
1906
1907
1908
1909
1910 ac_aux_dir=
1911 for ac_dir in autoconf "$srcdir"/autoconf; do
1912   if test -f "$ac_dir/install-sh"; then
1913     ac_aux_dir=$ac_dir
1914     ac_install_sh="$ac_aux_dir/install-sh -c"
1915     break
1916   elif test -f "$ac_dir/install.sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install.sh -c"
1919     break
1920   elif test -f "$ac_dir/shtool"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/shtool install -c"
1923     break
1924   fi
1925 done
1926 if test -z "$ac_aux_dir"; then
1927   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1928 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1929    { (exit 1); exit 1; }; }
1930 fi
1931
1932 # These three variables are undocumented and unsupported,
1933 # and are intended to be withdrawn in a future Autoconf release.
1934 # They can cause serious problems if a builder's source tree is in a directory
1935 # whose full name contains unusual characters.
1936 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1937 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1938 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1939
1940
1941
1942 if test ${srcdir} != "." ; then
1943   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1944     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1945 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1946    { (exit 1); exit 1; }; }
1947   fi
1948 fi
1949
1950 ac_ext=c
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956   for ac_prog in clang llvm-gcc gcc
1957   do
1958     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   if test -n "$CC"; then
1966   ac_cv_prog_CC="$CC" # Let the user override the test.
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971   IFS=$as_save_IFS
1972   test -z "$as_dir" && as_dir=.
1973   for ac_exec_ext in '' $ac_executable_extensions; do
1974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1975     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977     break 2
1978   fi
1979 done
1980 done
1981 IFS=$as_save_IFS
1982
1983 fi
1984 fi
1985 CC=$ac_cv_prog_CC
1986 if test -n "$CC"; then
1987   { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1989 else
1990   { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1992 fi
1993
1994
1995     test -n "$CC" && break
1996   done
1997 fi
1998 if test -z "$CC"; then
1999   ac_ct_CC=$CC
2000   for ac_prog in clang llvm-gcc gcc
2001 do
2002   # Extract the first word of "$ac_prog", so it can be a program name with args.
2003 set dummy $ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$ac_ct_CC"; then
2010   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019     ac_cv_prog_ac_ct_CC="$ac_prog"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025 IFS=$as_save_IFS
2026
2027 fi
2028 fi
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6; }
2033 else
2034   { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036 fi
2037
2038
2039   test -n "$ac_ct_CC" && break
2040 done
2041
2042   if test "x$ac_ct_CC" = x; then
2043     CC=""
2044   else
2045     case $cross_compiling:$ac_tool_warned in
2046 yes:)
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet.  If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet.  If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2054 esac
2055     CC=$ac_ct_CC
2056   fi
2057 fi
2058
2059
2060 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: no acceptable C compiler found in \$PATH
2063 See \`config.log' for more details." >&2;}
2064    { (exit 1); exit 1; }; }
2065
2066 # Provide some information about the compiler.
2067 echo "$as_me:$LINENO: checking for C compiler version" >&5
2068 ac_compiler=`set X $ac_compile; echo $2`
2069 { (ac_try="$ac_compiler --version >&5"
2070 case "(($ac_try" in
2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072   *) ac_try_echo=$ac_try;;
2073 esac
2074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2075   (eval "$ac_compiler --version >&5") 2>&5
2076   ac_status=$?
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); }
2079 { (ac_try="$ac_compiler -v >&5"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085   (eval "$ac_compiler -v >&5") 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }
2089 { (ac_try="$ac_compiler -V >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler -V >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106
2107 int
2108 main ()
2109 {
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 ac_clean_files_save=$ac_clean_files
2116 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2117 # Try to create an executable without -o first, disregard a.out.
2118 # It will help us diagnose broken compilers, and finding out an intuition
2119 # of exeext.
2120 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2121 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2122 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123 #
2124 # List of possible output files, starting from the most likely.
2125 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2126 # only as a last resort.  b.out is created by i960 compilers.
2127 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2128 #
2129 # The IRIX 6 linker writes into existing files which may not be
2130 # executable, retaining their permissions.  Remove them first so a
2131 # subsequent execution test works.
2132 ac_rmfiles=
2133 for ac_file in $ac_files
2134 do
2135   case $ac_file in
2136     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2137     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2138   esac
2139 done
2140 rm -f $ac_rmfiles
2141
2142 if { (ac_try="$ac_link_default"
2143 case "(($ac_try" in
2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145   *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148   (eval "$ac_link_default") 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }; then
2152   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2153 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2154 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2155 # so that the user can short-circuit this test for compilers unknown to
2156 # Autoconf.
2157 for ac_file in $ac_files
2158 do
2159   test -f "$ac_file" || continue
2160   case $ac_file in
2161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2162         ;;
2163     [ab].out )
2164         # We found the default executable, but exeext='' is most
2165         # certainly right.
2166         break;;
2167     *.* )
2168         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2169         then :; else
2170            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171         fi
2172         # We set ac_cv_exeext here because the later test for it is not
2173         # safe: cross compilers may not add the suffix if given an `-o'
2174         # argument, so we may need to know it at that point already.
2175         # Even if this section looks crufty: it has the advantage of
2176         # actually working.
2177         break;;
2178     * )
2179         break;;
2180   esac
2181 done
2182 test "$ac_cv_exeext" = no && ac_cv_exeext=
2183
2184 else
2185   echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&2;}
2192    { (exit 77); exit 77; }; }
2193 fi
2194
2195 ac_exeext=$ac_cv_exeext
2196 { echo "$as_me:$LINENO: result: $ac_file" >&5
2197 echo "${ECHO_T}$ac_file" >&6; }
2198
2199 # Check that the compiler produces executables we can run.  If not, either
2200 # the compiler is broken, or we cross compile.
2201 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2202 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2203 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2204 # If not cross compiling, check that we can run a simple program.
2205 if test "$cross_compiling" != yes; then
2206   if { ac_try='./$ac_file'
2207   { (case "(($ac_try" in
2208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209   *) ac_try_echo=$ac_try;;
2210 esac
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212   (eval "$ac_try") 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }; }; then
2216     cross_compiling=no
2217   else
2218     if test "$cross_compiling" = maybe; then
2219         cross_compiling=yes
2220     else
2221         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&2;}
2227    { (exit 1); exit 1; }; }
2228     fi
2229   fi
2230 fi
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2233
2234 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2235 ac_clean_files=$ac_clean_files_save
2236 # Check that the compiler produces executables we can run.  If not, either
2237 # the compiler is broken, or we cross compile.
2238 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2240 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241 echo "${ECHO_T}$cross_compiling" >&6; }
2242
2243 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2245 if { (ac_try="$ac_link"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251   (eval "$ac_link") 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; then
2255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260   test -f "$ac_file" || continue
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264           break;;
2265     * ) break;;
2266   esac
2267 done
2268 else
2269   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273    { (exit 1); exit 1; }; }
2274 fi
2275
2276 rm -f conftest$ac_cv_exeext
2277 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2279
2280 rm -f conftest.$ac_ext
2281 EXEEXT=$ac_cv_exeext
2282 ac_exeext=$EXEEXT
2283 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2285 if test "${ac_cv_objext+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   cat >conftest.$ac_ext <<_ACEOF
2289 /* confdefs.h.  */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h.  */
2294
2295 int
2296 main ()
2297 {
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 rm -f conftest.o conftest.obj
2304 if { (ac_try="$ac_compile"
2305 case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310   (eval "$ac_compile") 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; then
2314   for ac_file in conftest.o conftest.obj conftest.*; do
2315   test -f "$ac_file" || continue;
2316   case $ac_file in
2317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2318     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319        break;;
2320   esac
2321 done
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334 fi
2335 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6; }
2337 OBJEXT=$ac_cv_objext
2338 ac_objext=$OBJEXT
2339 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h.  */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h.  */
2350
2351 int
2352 main ()
2353 {
2354 #ifndef __GNUC__
2355        choke me
2356 #endif
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (ac_try="$ac_compile"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369   (eval "$ac_compile") 2>conftest.er1
2370   ac_status=$?
2371   grep -v '^ *+' conftest.er1 >conftest.err
2372   rm -f conftest.er1
2373   cat conftest.err >&5
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); } &&
2376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2377   { (case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382   (eval "$ac_try") 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_try") 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; }; then
2396   ac_compiler_gnu=yes
2397 else
2398   echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401         ac_compiler_gnu=no
2402 fi
2403
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406
2407 fi
2408 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_cc_g+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   ac_save_c_werror_flag=$ac_c_werror_flag
2419    ac_c_werror_flag=yes
2420    ac_cv_prog_cc_g=no
2421    CFLAGS="-g"
2422    cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h.  */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428
2429 int
2430 main ()
2431 {
2432
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (ac_try="$ac_compile"
2439 case "(($ac_try" in
2440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441   *) ac_try_echo=$ac_try;;
2442 esac
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444   (eval "$ac_compile") 2>conftest.er1
2445   ac_status=$?
2446   grep -v '^ *+' conftest.er1 >conftest.err
2447   rm -f conftest.er1
2448   cat conftest.err >&5
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); } &&
2451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452   { (case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_try") 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; } &&
2461          { ac_try='test -s conftest.$ac_objext'
2462   { (case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467   (eval "$ac_try") 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; }; then
2471   ac_cv_prog_cc_g=yes
2472 else
2473   echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476         CFLAGS=""
2477       cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h.  */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h.  */
2483
2484 int
2485 main ()
2486 {
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2494 case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499   (eval "$ac_compile") 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507   { (case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_try") 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_try") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; }; then
2526   :
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531         ac_c_werror_flag=$ac_save_c_werror_flag
2532          CFLAGS="-g"
2533          cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539
2540 int
2541 main ()
2542 {
2543
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2550 case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_compile") 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563   { (case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_try") 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; } &&
2572          { ac_try='test -s conftest.$ac_objext'
2573   { (case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578   (eval "$ac_try") 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   ac_cv_prog_cc_g=yes
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
2588 fi
2589
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 fi
2592
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 fi
2595
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597    ac_c_werror_flag=$ac_save_c_werror_flag
2598 fi
2599 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601 if test "$ac_test_CFLAGS" = set; then
2602   CFLAGS=$ac_save_CFLAGS
2603 elif test $ac_cv_prog_cc_g = yes; then
2604   if test "$GCC" = yes; then
2605     CFLAGS="-g -O2"
2606   else
2607     CFLAGS="-g"
2608   fi
2609 else
2610   if test "$GCC" = yes; then
2611     CFLAGS="-O2"
2612   else
2613     CFLAGS=
2614   fi
2615 fi
2616 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_cc_c89+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   ac_cv_prog_cc_c89=no
2622 ac_save_CC=$CC
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 #include <stdarg.h>
2630 #include <stdio.h>
2631 #include <sys/types.h>
2632 #include <sys/stat.h>
2633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2634 struct buf { int x; };
2635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636 static char *e (p, i)
2637      char **p;
2638      int i;
2639 {
2640   return p[i];
2641 }
2642 static char *f (char * (*g) (char **, int), char **p, ...)
2643 {
2644   char *s;
2645   va_list v;
2646   va_start (v,p);
2647   s = g (p, va_arg (v,int));
2648   va_end (v);
2649   return s;
2650 }
2651
2652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2653    function prototypes and stuff, but not '\xHH' hex character constants.
2654    These don't provoke an error unfortunately, instead are silently treated
2655    as 'x'.  The following induces an error, until -std is added to get
2656    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2657    array size at least.  It's necessary to write '\x00'==0 to get something
2658    that's true only with -std.  */
2659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662    inside strings and character constants.  */
2663 #define FOO(x) 'x'
2664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 int argc;
2671 char **argv;
2672 int
2673 main ()
2674 {
2675 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682 do
2683   CC="$ac_save_CC $ac_arg"
2684   rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compile") 2>conftest.er1
2692   ac_status=$?
2693   grep -v '^ *+' conftest.er1 >conftest.err
2694   rm -f conftest.er1
2695   cat conftest.err >&5
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); } &&
2698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2699   { (case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_try") 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest.$ac_objext'
2709   { (case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_try") 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   ac_cv_prog_cc_c89=$ac_arg
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723
2724 fi
2725
2726 rm -f core conftest.err conftest.$ac_objext
2727   test "x$ac_cv_prog_cc_c89" != "xno" && break
2728 done
2729 rm -f conftest.$ac_ext
2730 CC=$ac_save_CC
2731
2732 fi
2733 # AC_CACHE_VAL
2734 case "x$ac_cv_prog_cc_c89" in
2735   x)
2736     { echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6; } ;;
2738   xno)
2739     { echo "$as_me:$LINENO: result: unsupported" >&5
2740 echo "${ECHO_T}unsupported" >&6; } ;;
2741   *)
2742     CC="$CC $ac_cv_prog_cc_c89"
2743     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2745 esac
2746
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754 ac_ext=cpp
2755 ac_cpp='$CXXCPP $CPPFLAGS'
2756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2759 if test -z "$CXX"; then
2760   if test -n "$CCC"; then
2761     CXX=$CCC
2762   else
2763     if test -n "$ac_tool_prefix"; then
2764   for ac_prog in clang++ llvm-g++ g++
2765   do
2766     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CXX+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   if test -n "$CXX"; then
2774   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781   for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CXX=$ac_cv_prog_CXX
2794 if test -n "$CXX"; then
2795   { echo "$as_me:$LINENO: result: $CXX" >&5
2796 echo "${ECHO_T}$CXX" >&6; }
2797 else
2798   { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2800 fi
2801
2802
2803     test -n "$CXX" && break
2804   done
2805 fi
2806 if test -z "$CXX"; then
2807   ac_ct_CXX=$CXX
2808   for ac_prog in clang++ llvm-g++ g++
2809 do
2810   # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$ac_ct_CXX"; then
2818   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_ac_ct_CXX="$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2838 if test -n "$ac_ct_CXX"; then
2839   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2840 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2841 else
2842   { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847   test -n "$ac_ct_CXX" && break
2848 done
2849
2850   if test "x$ac_ct_CXX" = x; then
2851     CXX="g++"
2852   else
2853     case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet.  If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet.  If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     CXX=$ac_ct_CXX
2864   fi
2865 fi
2866
2867   fi
2868 fi
2869 # Provide some information about the compiler.
2870 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2871 ac_compiler=`set X $ac_compile; echo $2`
2872 { (ac_try="$ac_compiler --version >&5"
2873 case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_compiler --version >&5") 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }
2882 { (ac_try="$ac_compiler -v >&5"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compiler -v >&5") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler -V >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914
2915 int
2916 main ()
2917 {
2918 #ifndef __GNUC__
2919        choke me
2920 #endif
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compile") 2>conftest.er1
2934   ac_status=$?
2935   grep -v '^ *+' conftest.er1 >conftest.err
2936   rm -f conftest.er1
2937   cat conftest.err >&5
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); } &&
2940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2941   { (case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_try") 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; } &&
2950          { ac_try='test -s conftest.$ac_objext'
2951   { (case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_try") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   ac_compiler_gnu=yes
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965         ac_compiler_gnu=no
2966 fi
2967
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2970
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2974 GXX=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CXXFLAGS=${CXXFLAGS+set}
2976 ac_save_CXXFLAGS=$CXXFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2978 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cxx_g+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2983    ac_cxx_werror_flag=yes
2984    ac_cv_prog_cxx_g=no
2985    CXXFLAGS="-g"
2986    cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992
2993 int
2994 main ()
2995 {
2996
2997   ;
2998   return 0;
2999 }
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } &&
3015          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3016   { (case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_try") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; } &&
3025          { ac_try='test -s conftest.$ac_objext'
3026   { (case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_try") 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; }; then
3035   ac_cv_prog_cxx_g=yes
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040         CXXFLAGS=""
3041       cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } &&
3070          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_try") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; }; then
3090   :
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3096          CXXFLAGS="-g"
3097          cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h.  */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h.  */
3103
3104 int
3105 main ()
3106 {
3107
3108   ;
3109   return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3114 case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_compile") 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3127   { (case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_try") 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; } &&
3136          { ac_try='test -s conftest.$ac_objext'
3137   { (case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_try") 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   ac_cv_prog_cxx_g=yes
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 fi
3159
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162 fi
3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3165 if test "$ac_test_CXXFLAGS" = set; then
3166   CXXFLAGS=$ac_save_CXXFLAGS
3167 elif test $ac_cv_prog_cxx_g = yes; then
3168   if test "$GXX" = yes; then
3169     CXXFLAGS="-g -O2"
3170   else
3171     CXXFLAGS="-g"
3172   fi
3173 else
3174   if test "$GXX" = yes; then
3175     CXXFLAGS="-O2"
3176   else
3177     CXXFLAGS=
3178   fi
3179 fi
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3193 # On Suns, sometimes $CPP names a directory.
3194 if test -n "$CPP" && test -d "$CPP"; then
3195   CPP=
3196 fi
3197 if test -z "$CPP"; then
3198   if test "${ac_cv_prog_CPP+set}" = set; then
3199   echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201       # Double quotes because CPP needs to be expanded
3202     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3203     do
3204       ac_preproc_ok=false
3205 for ac_c_preproc_warn_flag in '' yes
3206 do
3207   # Use a header file that comes with gcc, so configuring glibc
3208   # with a fresh cross-compiler works.
3209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210   # <limits.h> exists even on freestanding compilers.
3211   # On the NeXT, cc -E runs the code through the compiler's parser,
3212   # not just through cpp. "Syntax error" is here to catch this case.
3213   cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219 #ifdef __STDC__
3220 # include <limits.h>
3221 #else
3222 # include <assert.h>
3223 #endif
3224                      Syntax error
3225 _ACEOF
3226 if { (ac_try="$ac_cpp conftest.$ac_ext"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } >/dev/null; then
3239   if test -s conftest.err; then
3240     ac_cpp_err=$ac_c_preproc_warn_flag
3241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242   else
3243     ac_cpp_err=
3244   fi
3245 else
3246   ac_cpp_err=yes
3247 fi
3248 if test -z "$ac_cpp_err"; then
3249   :
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254   # Broken: fails on valid input.
3255 continue
3256 fi
3257
3258 rm -f conftest.err conftest.$ac_ext
3259
3260   # OK, works on sane cases.  Now check whether nonexistent headers
3261   # can be detected and how.
3262   cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #include <ac_nonexistent.h>
3269 _ACEOF
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   # Broken: success on invalid input.
3294 continue
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299   # Passes both tests.
3300 ac_preproc_ok=:
3301 break
3302 fi
3303
3304 rm -f conftest.err conftest.$ac_ext
3305
3306 done
3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308 rm -f conftest.err conftest.$ac_ext
3309 if $ac_preproc_ok; then
3310   break
3311 fi
3312
3313     done
3314     ac_cv_prog_CPP=$CPP
3315
3316 fi
3317   CPP=$ac_cv_prog_CPP
3318 else
3319   ac_cv_prog_CPP=$CPP
3320 fi
3321 { echo "$as_me:$LINENO: result: $CPP" >&5
3322 echo "${ECHO_T}$CPP" >&6; }
3323 ac_preproc_ok=false
3324 for ac_c_preproc_warn_flag in '' yes
3325 do
3326   # Use a header file that comes with gcc, so configuring glibc
3327   # with a fresh cross-compiler works.
3328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329   # <limits.h> exists even on freestanding compilers.
3330   # On the NeXT, cc -E runs the code through the compiler's parser,
3331   # not just through cpp. "Syntax error" is here to catch this case.
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #ifdef __STDC__
3339 # include <limits.h>
3340 #else
3341 # include <assert.h>
3342 #endif
3343                      Syntax error
3344 _ACEOF
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352   ac_status=$?
3353   grep -v '^ *+' conftest.er1 >conftest.err
3354   rm -f conftest.er1
3355   cat conftest.err >&5
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } >/dev/null; then
3358   if test -s conftest.err; then
3359     ac_cpp_err=$ac_c_preproc_warn_flag
3360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361   else
3362     ac_cpp_err=
3363   fi
3364 else
3365   ac_cpp_err=yes
3366 fi
3367 if test -z "$ac_cpp_err"; then
3368   :
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373   # Broken: fails on valid input.
3374 continue
3375 fi
3376
3377 rm -f conftest.err conftest.$ac_ext
3378
3379   # OK, works on sane cases.  Now check whether nonexistent headers
3380   # can be detected and how.
3381   cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 #include <ac_nonexistent.h>
3388 _ACEOF
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } >/dev/null; then
3402   if test -s conftest.err; then
3403     ac_cpp_err=$ac_c_preproc_warn_flag
3404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405   else
3406     ac_cpp_err=
3407   fi
3408 else
3409   ac_cpp_err=yes
3410 fi
3411 if test -z "$ac_cpp_err"; then
3412   # Broken: success on invalid input.
3413 continue
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418   # Passes both tests.
3419 ac_preproc_ok=:
3420 break
3421 fi
3422
3423 rm -f conftest.err conftest.$ac_ext
3424
3425 done
3426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427 rm -f conftest.err conftest.$ac_ext
3428 if $ac_preproc_ok; then
3429   :
3430 else
3431   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445
3446
3447 if test -d ${srcdir}/projects/llvm-gcc ; then
3448   subdirs="$subdirs projects/llvm-gcc"
3449
3450 fi
3451
3452 if test -d ${srcdir}/projects/test-suite ; then
3453   subdirs="$subdirs projects/test-suite"
3454
3455 fi
3456
3457 if test -d ${srcdir}/projects/llvm-test ; then
3458   subdirs="$subdirs projects/llvm-test"
3459
3460 fi
3461
3462 if test -d ${srcdir}/projects/poolalloc ; then
3463   subdirs="$subdirs projects/poolalloc"
3464
3465 fi
3466
3467 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3468   subdirs="$subdirs projects/llvm-poolalloc"
3469
3470 fi
3471
3472 for i in `ls ${srcdir}/projects`
3473 do
3474   if test -d ${srcdir}/projects/${i} ; then
3475     case ${i} in
3476       sample)       subdirs="$subdirs projects/sample"
3477     ;;
3478       privbracket)  subdirs="$subdirs projects/privbracket"
3479  ;;
3480       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3481  ;;
3482       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3483 ;;
3484       llvm-java)    subdirs="$subdirs projects/llvm-java"
3485  ;;
3486       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3487    ;;
3488       safecode)     subdirs="$subdirs projects/safecode"
3489  ;;
3490       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3491  ;;
3492       llvm-gcc)       ;;
3493       test-suite)     ;;
3494       llvm-test)      ;;
3495       poolalloc)      ;;
3496       llvm-poolalloc) ;;
3497       *)
3498         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3499 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3500         ;;
3501     esac
3502   fi
3503 done
3504
3505 # Check whether --enable-polly was given.
3506 if test "${enable_polly+set}" = set; then
3507   enableval=$enable_polly;
3508 else
3509   enableval=default
3510 fi
3511
3512 case "$enableval" in
3513   yes) ENABLE_POLLY=1
3514  ;;
3515   no)  ENABLE_POLLY=0
3516  ;;
3517   default) ENABLE_POLLY=1
3518  ;;
3519   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3520 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3521    { (exit 1); exit 1; }; } ;;
3522 esac
3523
3524
3525 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3526   LLVM_HAS_POLLY=1
3527
3528   subdirs="$subdirs tools/polly"
3529
3530 fi
3531
3532
3533 # Make sure we can run config.sub.
3534 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3536 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3537    { (exit 1); exit 1; }; }
3538
3539 { echo "$as_me:$LINENO: checking build system type" >&5
3540 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3541 if test "${ac_cv_build+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   ac_build_alias=$build_alias
3545 test "x$ac_build_alias" = x &&
3546   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547 test "x$ac_build_alias" = x &&
3548   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3549 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3550    { (exit 1); exit 1; }; }
3551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3552   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3553 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3554    { (exit 1); exit 1; }; }
3555
3556 fi
3557 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3558 echo "${ECHO_T}$ac_cv_build" >&6; }
3559 case $ac_cv_build in
3560 *-*-*) ;;
3561 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3562 echo "$as_me: error: invalid value of canonical build" >&2;}
3563    { (exit 1); exit 1; }; };;
3564 esac
3565 build=$ac_cv_build
3566 ac_save_IFS=$IFS; IFS='-'
3567 set x $ac_cv_build
3568 shift
3569 build_cpu=$1
3570 build_vendor=$2
3571 shift; shift
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3574 build_os=$*
3575 IFS=$ac_save_IFS
3576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
3579 { echo "$as_me:$LINENO: checking host system type" >&5
3580 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3581 if test "${ac_cv_host+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test "x$host_alias" = x; then
3585   ac_cv_host=$ac_cv_build
3586 else
3587   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3589 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3590    { (exit 1); exit 1; }; }
3591 fi
3592
3593 fi
3594 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3595 echo "${ECHO_T}$ac_cv_host" >&6; }
3596 case $ac_cv_host in
3597 *-*-*) ;;
3598 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3599 echo "$as_me: error: invalid value of canonical host" >&2;}
3600    { (exit 1); exit 1; }; };;
3601 esac
3602 host=$ac_cv_host
3603 ac_save_IFS=$IFS; IFS='-'
3604 set x $ac_cv_host
3605 shift
3606 host_cpu=$1
3607 host_vendor=$2
3608 shift; shift
3609 # Remember, the first character of IFS is used to create $*,
3610 # except with old shells:
3611 host_os=$*
3612 IFS=$ac_save_IFS
3613 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614
3615
3616 { echo "$as_me:$LINENO: checking target system type" >&5
3617 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3618 if test "${ac_cv_target+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   if test "x$target_alias" = x; then
3622   ac_cv_target=$ac_cv_host
3623 else
3624   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3625     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3626 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3627    { (exit 1); exit 1; }; }
3628 fi
3629
3630 fi
3631 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3632 echo "${ECHO_T}$ac_cv_target" >&6; }
3633 case $ac_cv_target in
3634 *-*-*) ;;
3635 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3636 echo "$as_me: error: invalid value of canonical target" >&2;}
3637    { (exit 1); exit 1; }; };;
3638 esac
3639 target=$ac_cv_target
3640 ac_save_IFS=$IFS; IFS='-'
3641 set x $ac_cv_target
3642 shift
3643 target_cpu=$1
3644 target_vendor=$2
3645 shift; shift
3646 # Remember, the first character of IFS is used to create $*,
3647 # except with old shells:
3648 target_os=$*
3649 IFS=$ac_save_IFS
3650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653 # The aliases save the names the user supplied, while $host etc.
3654 # will get canonicalized.
3655 test -n "$target_alias" &&
3656   test "$program_prefix$program_suffix$program_transform_name" = \
3657     NONENONEs,x,x, &&
3658   program_prefix=${target_alias}-
3659
3660 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3661 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3662 if test "${llvm_cv_os_type+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $host in
3666   *-*-aix*)
3667     llvm_cv_link_all_option="-Wl,--whole-archive"
3668     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669     llvm_cv_os_type="AIX"
3670     llvm_cv_platform_type="Unix" ;;
3671   *-*-irix*)
3672     llvm_cv_link_all_option="-Wl,--whole-archive"
3673     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674     llvm_cv_os_type="IRIX"
3675     llvm_cv_platform_type="Unix" ;;
3676   *-*-cygwin*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="Cygwin"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-darwin*)
3682     llvm_cv_link_all_option="-Wl,-all_load"
3683     llvm_cv_no_link_all_option="-Wl,-noall_load"
3684     llvm_cv_os_type="Darwin"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-minix*)
3687     llvm_cv_link_all_option="-Wl,-all_load"
3688     llvm_cv_no_link_all_option="-Wl,-noall_load"
3689     llvm_cv_os_type="Minix"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-freebsd*)
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="FreeBSD"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-openbsd*)
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="OpenBSD"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-netbsd*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="NetBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-dragonfly*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="DragonFly"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-hpux*)
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="HP-UX"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-interix*)
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="Interix"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-linux*)
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="Linux"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-solaris*)
3727     llvm_cv_link_all_option="-Wl,-z,allextract"
3728     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3729     llvm_cv_os_type="SunOS"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-auroraux*)
3732     llvm_cv_link_all_option="-Wl,-z,allextract"
3733     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3734     llvm_cv_os_type="AuroraUX"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-win32*)
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="Win32"
3740     llvm_cv_platform_type="Win32" ;;
3741   *-*-mingw*)
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="MingW"
3745     llvm_cv_platform_type="Win32" ;;
3746   *-*-haiku*)
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="Haiku"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-unknown-eabi*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="Freestanding"
3755     llvm_cv_platform_type="Unix" ;;
3756   *-unknown-elf*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="Freestanding"
3760     llvm_cv_platform_type="Unix" ;;
3761   *)
3762     llvm_cv_link_all_option=""
3763     llvm_cv_no_link_all_option=""
3764     llvm_cv_os_type="Unknown"
3765     llvm_cv_platform_type="Unknown" ;;
3766 esac
3767 fi
3768 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3769 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3770
3771 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3772 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3773 if test "${llvm_cv_target_os_type+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $target in
3777   *-*-aix*)
3778     llvm_cv_target_os_type="AIX" ;;
3779   *-*-irix*)
3780     llvm_cv_target_os_type="IRIX" ;;
3781   *-*-cygwin*)
3782     llvm_cv_target_os_type="Cygwin" ;;
3783   *-*-darwin*)
3784     llvm_cv_target_os_type="Darwin" ;;
3785   *-*-minix*)
3786     llvm_cv_target_os_type="Minix" ;;
3787   *-*-freebsd*)
3788     llvm_cv_target_os_type="FreeBSD" ;;
3789   *-*-openbsd*)
3790     llvm_cv_target_os_type="OpenBSD" ;;
3791   *-*-netbsd*)
3792     llvm_cv_target_os_type="NetBSD" ;;
3793   *-*-dragonfly*)
3794     llvm_cv_target_os_type="DragonFly" ;;
3795   *-*-hpux*)
3796     llvm_cv_target_os_type="HP-UX" ;;
3797   *-*-interix*)
3798     llvm_cv_target_os_type="Interix" ;;
3799   *-*-linux*)
3800     llvm_cv_target_os_type="Linux" ;;
3801   *-*-solaris*)
3802     llvm_cv_target_os_type="SunOS" ;;
3803   *-*-auroraux*)
3804     llvm_cv_target_os_type="AuroraUX" ;;
3805   *-*-win32*)
3806     llvm_cv_target_os_type="Win32" ;;
3807   *-*-mingw*)
3808     llvm_cv_target_os_type="MingW" ;;
3809   *-*-haiku*)
3810     llvm_cv_target_os_type="Haiku" ;;
3811   *-*-rtems*)
3812     llvm_cv_target_os_type="RTEMS" ;;
3813   *-*-nacl*)
3814     llvm_cv_target_os_type="NativeClient" ;;
3815   *-unknown-eabi*)
3816     llvm_cv_target_os_type="Freestanding" ;;
3817   *)
3818     llvm_cv_target_os_type="Unknown" ;;
3819 esac
3820 fi
3821 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3822 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3823
3824 if test "$llvm_cv_os_type" = "Unknown" ; then
3825   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3826 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3827    { (exit 1); exit 1; }; }
3828 fi
3829
3830 OS=$llvm_cv_os_type
3831
3832 HOST_OS=$llvm_cv_os_type
3833
3834 TARGET_OS=$llvm_cv_target_os_type
3835
3836
3837 LINKALL=$llvm_cv_link_all_option
3838
3839 NOLINKALL=$llvm_cv_no_link_all_option
3840
3841
3842 case $llvm_cv_platform_type in
3843   Unix)
3844
3845 cat >>confdefs.h <<\_ACEOF
3846 #define LLVM_ON_UNIX 1
3847 _ACEOF
3848
3849     LLVM_ON_UNIX=1
3850
3851     LLVM_ON_WIN32=0
3852
3853     ;;
3854   Win32)
3855
3856 cat >>confdefs.h <<\_ACEOF
3857 #define LLVM_ON_WIN32 1
3858 _ACEOF
3859
3860     LLVM_ON_UNIX=0
3861
3862     LLVM_ON_WIN32=1
3863
3864     ;;
3865 esac
3866
3867 { echo "$as_me:$LINENO: checking target architecture" >&5
3868 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3869 if test "${llvm_cv_target_arch+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   case $target in
3873   i?86-*)                 llvm_cv_target_arch="x86" ;;
3874   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3875   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3876   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3877   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3878   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3879   mips-*)                 llvm_cv_target_arch="Mips" ;;
3880   xcore-*)                llvm_cv_target_arch="XCore" ;;
3881   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3882   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3883   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3884   *)                      llvm_cv_target_arch="Unknown" ;;
3885 esac
3886 fi
3887 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3888 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3889
3890 if test "$llvm_cv_target_arch" = "Unknown" ; then
3891   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3892 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3893 fi
3894
3895 # Determine the LLVM native architecture for the target
3896 case "$llvm_cv_target_arch" in
3897     x86)     LLVM_NATIVE_ARCH="X86" ;;
3898     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3899     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3900 esac
3901
3902 ARCH=$llvm_cv_target_arch
3903
3904
3905
3906
3907 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3908 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3909 if test "${ac_cv_path_GREP+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   # Extract the first word of "grep ggrep" to use in msg output
3913 if test -z "$GREP"; then
3914 set dummy grep ggrep; ac_prog_name=$2
3915 if test "${ac_cv_path_GREP+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925   for ac_prog in grep ggrep; do
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3929     # Check for GNU ac_path_GREP and select it if it is found.
3930   # Check for GNU $ac_path_GREP
3931 case `"$ac_path_GREP" --version 2>&1` in
3932 *GNU*)
3933   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934 *)
3935   ac_count=0
3936   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3937   while :
3938   do
3939     cat "conftest.in" "conftest.in" >"conftest.tmp"
3940     mv "conftest.tmp" "conftest.in"
3941     cp "conftest.in" "conftest.nl"
3942     echo 'GREP' >> "conftest.nl"
3943     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945     ac_count=`expr $ac_count + 1`
3946     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947       # Best one so far, save it but keep looking for a better one
3948       ac_cv_path_GREP="$ac_path_GREP"
3949       ac_path_GREP_max=$ac_count
3950     fi
3951     # 10*(2^10) chars as input seems more than enough
3952     test $ac_count -gt 10 && break
3953   done
3954   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957
3958     $ac_path_GREP_found && break 3
3959   done
3960 done
3961
3962 done
3963 IFS=$as_save_IFS
3964
3965
3966 fi
3967
3968 GREP="$ac_cv_path_GREP"
3969 if test -z "$GREP"; then
3970   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3971 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3972    { (exit 1); exit 1; }; }
3973 fi
3974
3975 else
3976   ac_cv_path_GREP=$GREP
3977 fi
3978
3979
3980 fi
3981 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3982 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3983  GREP="$ac_cv_path_GREP"
3984
3985
3986 { echo "$as_me:$LINENO: checking for egrep" >&5
3987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3988 if test "${ac_cv_path_EGREP+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3992    then ac_cv_path_EGREP="$GREP -E"
3993    else
3994      # Extract the first word of "egrep" to use in msg output
3995 if test -z "$EGREP"; then
3996 set dummy egrep; ac_prog_name=$2
3997 if test "${ac_cv_path_EGREP+set}" = set; then
3998   echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000   ac_path_EGREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_prog in egrep; do
4008   for ac_exec_ext in '' $ac_executable_extensions; do
4009     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4011     # Check for GNU ac_path_EGREP and select it if it is found.
4012   # Check for GNU $ac_path_EGREP
4013 case `"$ac_path_EGREP" --version 2>&1` in
4014 *GNU*)
4015   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016 *)
4017   ac_count=0
4018   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4019   while :
4020   do
4021     cat "conftest.in" "conftest.in" >"conftest.tmp"
4022     mv "conftest.tmp" "conftest.in"
4023     cp "conftest.in" "conftest.nl"
4024     echo 'EGREP' >> "conftest.nl"
4025     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027     ac_count=`expr $ac_count + 1`
4028     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029       # Best one so far, save it but keep looking for a better one
4030       ac_cv_path_EGREP="$ac_path_EGREP"
4031       ac_path_EGREP_max=$ac_count
4032     fi
4033     # 10*(2^10) chars as input seems more than enough
4034     test $ac_count -gt 10 && break
4035   done
4036   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 esac
4038
4039
4040     $ac_path_EGREP_found && break 3
4041   done
4042 done
4043
4044 done
4045 IFS=$as_save_IFS
4046
4047
4048 fi
4049
4050 EGREP="$ac_cv_path_EGREP"
4051 if test -z "$EGREP"; then
4052   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4053 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4054    { (exit 1); exit 1; }; }
4055 fi
4056
4057 else
4058   ac_cv_path_EGREP=$EGREP
4059 fi
4060
4061
4062    fi
4063 fi
4064 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4065 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4066  EGREP="$ac_cv_path_EGREP"
4067
4068
4069 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4071 if test "${ac_cv_header_stdc+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h.  */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h.  */
4080 #include <stdlib.h>
4081 #include <stdarg.h>
4082 #include <string.h>
4083 #include <float.h>
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4095 case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100   (eval "$ac_compile") 2>conftest.er1
4101   ac_status=$?
4102   grep -v '^ *+' conftest.er1 >conftest.err
4103   rm -f conftest.er1
4104   cat conftest.err >&5
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); } &&
4107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4108   { (case "(($ac_try" in
4109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110   *) ac_try_echo=$ac_try;;
4111 esac
4112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113   (eval "$ac_try") 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; } &&
4117          { ac_try='test -s conftest.$ac_objext'
4118   { (case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_try") 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; }; then
4127   ac_cv_header_stdc=yes
4128 else
4129   echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132         ac_cv_header_stdc=no
4133 fi
4134
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136
4137 if test $ac_cv_header_stdc = yes; then
4138   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #include <string.h>
4146
4147 _ACEOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149   $EGREP "memchr" >/dev/null 2>&1; then
4150   :
4151 else
4152   ac_cv_header_stdc=no
4153 fi
4154 rm -f conftest*
4155
4156 fi
4157
4158 if test $ac_cv_header_stdc = yes; then
4159   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <stdlib.h>
4167
4168 _ACEOF
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170   $EGREP "free" >/dev/null 2>&1; then
4171   :
4172 else
4173   ac_cv_header_stdc=no
4174 fi
4175 rm -f conftest*
4176
4177 fi
4178
4179 if test $ac_cv_header_stdc = yes; then
4180   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4181   if test "$cross_compiling" = yes; then
4182   :
4183 else
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #include <ctype.h>
4191 #include <stdlib.h>
4192 #if ((' ' & 0x0FF) == 0x020)
4193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 #else
4196 # define ISLOWER(c) \
4197                    (('a' <= (c) && (c) <= 'i') \
4198                      || ('j' <= (c) && (c) <= 'r') \
4199                      || ('s' <= (c) && (c) <= 'z'))
4200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4201 #endif
4202
4203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 int
4205 main ()
4206 {
4207   int i;
4208   for (i = 0; i < 256; i++)
4209     if (XOR (islower (i), ISLOWER (i))
4210         || toupper (i) != TOUPPER (i))
4211       return 2;
4212   return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest$ac_exeext
4216 if { (ac_try="$ac_link"
4217 case "(($ac_try" in
4218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219   *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222   (eval "$ac_link") 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226   { (case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231   (eval "$ac_try") 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; }; then
4235   :
4236 else
4237   echo "$as_me: program exited with status $ac_status" >&5
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 ( exit $ac_status )
4242 ac_cv_header_stdc=no
4243 fi
4244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4245 fi
4246
4247
4248 fi
4249 fi
4250 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4251 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4252 if test $ac_cv_header_stdc = yes; then
4253
4254 cat >>confdefs.h <<\_ACEOF
4255 #define STDC_HEADERS 1
4256 _ACEOF
4257
4258 fi
4259
4260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4271                   inttypes.h stdint.h unistd.h
4272 do
4273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h.  */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h.  */
4285 $ac_includes_default
4286
4287 #include <$ac_header>
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_compile") 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } &&
4303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304   { (case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309   (eval "$ac_try") 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest.$ac_objext'
4314   { (case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   eval "$as_ac_Header=yes"
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         eval "$as_ac_Header=no"
4329 fi
4330
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 fi
4333 ac_res=`eval echo '${'$as_ac_Header'}'`
4334                { echo "$as_me:$LINENO: result: $ac_res" >&5
4335 echo "${ECHO_T}$ac_res" >&6; }
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337   cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 _ACEOF
4340
4341 fi
4342
4343 done
4344
4345
4346 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4348 if test "${ac_cv_c_bigendian+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   # See if sys/param.h defines the BYTE_ORDER macro.
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358 #include <sys/types.h>
4359 #include <sys/param.h>
4360
4361 int
4362 main ()
4363 {
4364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4365  bogus endian macros
4366 #endif
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (ac_try="$ac_compile"
4374 case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_compile") 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387   { (case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_try") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; } &&
4396          { ac_try='test -s conftest.$ac_objext'
4397   { (case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_try") 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   # It does; now see whether it defined to BIG_ENDIAN or not.
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #include <sys/types.h>
4414 #include <sys/param.h>
4415
4416 int
4417 main ()
4418 {
4419 #if BYTE_ORDER != BIG_ENDIAN
4420  not big endian
4421 #endif
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4429 case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_compile") 2>conftest.er1
4435   ac_status=$?
4436   grep -v '^ *+' conftest.er1 >conftest.err
4437   rm -f conftest.er1
4438   cat conftest.err >&5
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442   { (case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; } &&
4451          { ac_try='test -s conftest.$ac_objext'
4452   { (case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457   (eval "$ac_try") 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   ac_cv_c_bigendian=yes
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466         ac_cv_c_bigendian=no
4467 fi
4468
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474         # It does not; compile a test program.
4475 if test "$cross_compiling" = yes; then
4476   # try to guess the endianness by grepping values into an object file
4477   ac_cv_c_bigendian=unknown
4478   cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h.  */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h.  */
4484 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4485 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4486 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4487 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4488 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4489 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4490 int
4491 main ()
4492 {
4493  _ascii (); _ebcdic ();
4494   ;
4495   return 0;
4496 }
4497 _ACEOF
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505   (eval "$ac_compile") 2>conftest.er1
4506   ac_status=$?
4507   grep -v '^ *+' conftest.er1 >conftest.err
4508   rm -f conftest.er1
4509   cat conftest.err >&5
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } &&
4512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4513   { (case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518   (eval "$ac_try") 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; } &&
4522          { ac_try='test -s conftest.$ac_objext'
4523   { (case "(($ac_try" in
4524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525   *) ac_try_echo=$ac_try;;
4526 esac
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528   (eval "$ac_try") 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; }; then
4532   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4533   ac_cv_c_bigendian=yes
4534 fi
4535 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4536   if test "$ac_cv_c_bigendian" = unknown; then
4537     ac_cv_c_bigendian=no
4538   else
4539     # finding both strings is unlikely to happen, but who knows?
4540     ac_cv_c_bigendian=unknown
4541   fi
4542 fi
4543 else
4544   echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547
4548 fi
4549
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 else
4552   cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h.  */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h.  */
4558 $ac_includes_default
4559 int
4560 main ()
4561 {
4562
4563   /* Are we little or big endian?  From Harbison&Steele.  */
4564   union
4565   {
4566     long int l;
4567     char c[sizeof (long int)];
4568   } u;
4569   u.l = 1;
4570   return u.c[sizeof (long int) - 1] == 1;
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 rm -f conftest$ac_exeext
4577 if { (ac_try="$ac_link"
4578 case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583   (eval "$ac_link") 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587   { (case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592   (eval "$ac_try") 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; }; then
4596   ac_cv_c_bigendian=no
4597 else
4598   echo "$as_me: program exited with status $ac_status" >&5
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 ( exit $ac_status )
4603 ac_cv_c_bigendian=yes
4604 fi
4605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4606 fi
4607
4608
4609 fi
4610
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4614 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4615 case $ac_cv_c_bigendian in
4616   yes)
4617     ENDIAN=big
4618  ;;
4619   no)
4620     ENDIAN=little
4621  ;;
4622   *)
4623     { { echo "$as_me:$LINENO: error: unknown endianness
4624 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4625 echo "$as_me: error: unknown endianness
4626 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4627    { (exit 1); exit 1; }; } ;;
4628 esac
4629
4630
4631 if test "$cross_compiling" = yes; then
4632   LLVM_CROSS_COMPILING=1
4633
4634
4635 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4636 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4637 if test "${ac_cv_build_exeext+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4641   ac_cv_build_exeext=.exe
4642 else
4643   ac_build_prefix=${build_alias}-
4644
4645   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4646 set dummy ${ac_build_prefix}gcc; ac_word=$2
4647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4650   echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652   if test -n "$BUILD_CC"; then
4653   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660   for ac_exec_ext in '' $ac_executable_extensions; do
4661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4662     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664     break 2
4665   fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 BUILD_CC=$ac_cv_prog_BUILD_CC
4673 if test -n "$BUILD_CC"; then
4674   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4675 echo "${ECHO_T}$BUILD_CC" >&6; }
4676 else
4677   { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4679 fi
4680
4681
4682   if test -z "$BUILD_CC"; then
4683      # Extract the first word of "gcc", so it can be a program name with args.
4684 set dummy gcc; ac_word=$2
4685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4687 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   if test -n "$BUILD_CC"; then
4691   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698   for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_prog_BUILD_CC="gcc"
4701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 BUILD_CC=$ac_cv_prog_BUILD_CC
4711 if test -n "$BUILD_CC"; then
4712   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4713 echo "${ECHO_T}$BUILD_CC" >&6; }
4714 else
4715   { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4717 fi
4718
4719
4720      if test -z "$BUILD_CC"; then
4721        # Extract the first word of "cc", so it can be a program name with args.
4722 set dummy cc; ac_word=$2
4723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4725 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   if test -n "$BUILD_CC"; then
4729   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4730 else
4731   ac_prog_rejected=no
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737   for ac_exec_ext in '' $ac_executable_extensions; do
4738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4739     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4740        ac_prog_rejected=yes
4741        continue
4742      fi
4743     ac_cv_prog_BUILD_CC="cc"
4744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745     break 2
4746   fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 if test $ac_prog_rejected = yes; then
4752   # We found a bogon in the path, so make sure we never use it.
4753   set dummy $ac_cv_prog_BUILD_CC
4754   shift
4755   if test $# != 0; then
4756     # We chose a different compiler from the bogus one.
4757     # However, it has the same basename, so the bogon will be chosen
4758     # first if we set BUILD_CC to just the basename; use the full file name.
4759     shift
4760     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4761   fi
4762 fi
4763 fi
4764 fi
4765 BUILD_CC=$ac_cv_prog_BUILD_CC
4766 if test -n "$BUILD_CC"; then
4767   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768 echo "${ECHO_T}$BUILD_CC" >&6; }
4769 else
4770   { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 fi
4773
4774
4775      fi
4776   fi
4777   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4779    { (exit 1); exit 1; }; }
4780   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4781   rm -f conftest*
4782   echo 'int main () { return 0; }' > conftest.$ac_ext
4783   ac_cv_build_exeext=
4784   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4785   (eval $ac_build_link) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; then
4789     for file in conftest.*; do
4790       case $file in
4791       *.c | *.o | *.obj | *.dSYM) ;;
4792       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4793       esac
4794     done
4795   else
4796     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4797 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4798    { (exit 1); exit 1; }; }
4799   fi
4800   rm -f conftest*
4801   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4802 fi
4803 fi
4804
4805 BUILD_EXEEXT=""
4806 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4807 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4808 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4809 ac_build_exeext=$BUILD_EXEEXT
4810
4811   ac_build_prefix=${build_alias}-
4812   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4813 set dummy ${ac_build_prefix}g++; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   if test -n "$BUILD_CXX"; then
4820   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825   IFS=$as_save_IFS
4826   test -z "$as_dir" && as_dir=.
4827   for ac_exec_ext in '' $ac_executable_extensions; do
4828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4829     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831     break 2
4832   fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4840 if test -n "$BUILD_CXX"; then
4841   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4842 echo "${ECHO_T}$BUILD_CXX" >&6; }
4843 else
4844   { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4846 fi
4847
4848
4849   if test -z "$BUILD_CXX"; then
4850      # Extract the first word of "g++", so it can be a program name with args.
4851 set dummy g++; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   if test -n "$BUILD_CXX"; then
4858   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4867     ac_cv_prog_BUILD_CXX="g++"
4868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4878 if test -n "$BUILD_CXX"; then
4879   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4880 echo "${ECHO_T}$BUILD_CXX" >&6; }
4881 else
4882   { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4884 fi
4885
4886
4887      if test -z "$BUILD_CXX"; then
4888        # Extract the first word of "c++", so it can be a program name with args.
4889 set dummy c++; ac_word=$2
4890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4892 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   if test -n "$BUILD_CXX"; then
4896   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4897 else
4898   ac_prog_rejected=no
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904   for ac_exec_ext in '' $ac_executable_extensions; do
4905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4906     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4907        ac_prog_rejected=yes
4908        continue
4909      fi
4910     ac_cv_prog_BUILD_CXX="c++"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 if test $ac_prog_rejected = yes; then
4919   # We found a bogon in the path, so make sure we never use it.
4920   set dummy $ac_cv_prog_BUILD_CXX
4921   shift
4922   if test $# != 0; then
4923     # We chose a different compiler from the bogus one.
4924     # However, it has the same basename, so the bogon will be chosen
4925     # first if we set BUILD_CXX to just the basename; use the full file name.
4926     shift
4927     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4928   fi
4929 fi
4930 fi
4931 fi
4932 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933 if test -n "$BUILD_CXX"; then
4934   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935 echo "${ECHO_T}$BUILD_CXX" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942      fi
4943   fi
4944 else
4945   LLVM_CROSS_COMPILING=0
4946
4947 fi
4948
4949 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4950   cvsbuild="yes"
4951   optimize="no"
4952   CVSBUILD=CVSBUILD=1
4953
4954 else
4955   cvsbuild="no"
4956   optimize="yes"
4957 fi
4958
4959
4960 # Check whether --enable-optimized was given.
4961 if test "${enable_optimized+set}" = set; then
4962   enableval=$enable_optimized;
4963 else
4964   enableval=$optimize
4965 fi
4966
4967 if test ${enableval} = "no" ; then
4968   ENABLE_OPTIMIZED=
4969
4970 else
4971   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4972
4973 fi
4974
4975 # Check whether --enable-profiling was given.
4976 if test "${enable_profiling+set}" = set; then
4977   enableval=$enable_profiling;
4978 else
4979   enableval="no"
4980 fi
4981
4982 if test ${enableval} = "no" ; then
4983   ENABLE_PROFILING=
4984
4985 else
4986   ENABLE_PROFILING=ENABLE_PROFILING=1
4987
4988 fi
4989
4990 # Check whether --enable-assertions was given.
4991 if test "${enable_assertions+set}" = set; then
4992   enableval=$enable_assertions;
4993 else
4994   enableval="yes"
4995 fi
4996
4997 if test ${enableval} = "yes" ; then
4998   DISABLE_ASSERTIONS=
4999
5000 else
5001   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5002
5003 fi
5004
5005 # Check whether --enable-expensive-checks was given.
5006 if test "${enable_expensive_checks+set}" = set; then
5007   enableval=$enable_expensive_checks;
5008 else
5009   enableval="no"
5010 fi
5011
5012 if test ${enableval} = "yes" ; then
5013   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5014
5015   EXPENSIVE_CHECKS=yes
5016
5017 else
5018   ENABLE_EXPENSIVE_CHECKS=
5019
5020   EXPENSIVE_CHECKS=no
5021
5022 fi
5023
5024 # Check whether --enable-debug-runtime was given.
5025 if test "${enable_debug_runtime+set}" = set; then
5026   enableval=$enable_debug_runtime;
5027 else
5028   enableval=no
5029 fi
5030
5031 if test ${enableval} = "no" ; then
5032   DEBUG_RUNTIME=
5033
5034 else
5035   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5036
5037 fi
5038
5039 # Check whether --enable-debug-symbols was given.
5040 if test "${enable_debug_symbols+set}" = set; then
5041   enableval=$enable_debug_symbols;
5042 else
5043   enableval=no
5044 fi
5045
5046 if test ${enableval} = "no" ; then
5047   DEBUG_SYMBOLS=
5048
5049 else
5050   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5051
5052 fi
5053
5054 # Check whether --enable-jit was given.
5055 if test "${enable_jit+set}" = set; then
5056   enableval=$enable_jit;
5057 else
5058   enableval=default
5059 fi
5060
5061 if test ${enableval} = "no"
5062 then
5063   JIT=
5064
5065 else
5066   case "$llvm_cv_target_arch" in
5067     x86)         TARGET_HAS_JIT=1
5068  ;;
5069     Sparc)       TARGET_HAS_JIT=0
5070  ;;
5071     PowerPC)     TARGET_HAS_JIT=1
5072  ;;
5073     x86_64)      TARGET_HAS_JIT=1
5074  ;;
5075     Alpha)       TARGET_HAS_JIT=0
5076  ;;
5077     ARM)         TARGET_HAS_JIT=1
5078  ;;
5079     Mips)        TARGET_HAS_JIT=1
5080  ;;
5081     XCore)       TARGET_HAS_JIT=0
5082  ;;
5083     MSP430)      TARGET_HAS_JIT=0
5084  ;;
5085     MBlaze)      TARGET_HAS_JIT=0
5086  ;;
5087     PTX)         TARGET_HAS_JIT=0
5088  ;;
5089     *)           TARGET_HAS_JIT=0
5090  ;;
5091   esac
5092 fi
5093
5094 # Check whether --enable-docs was given.
5095 if test "${enable_docs+set}" = set; then
5096   enableval=$enable_docs;
5097 else
5098   enableval=default
5099 fi
5100
5101 case "$enableval" in
5102   yes) ENABLE_DOCS=1
5103  ;;
5104   no)  ENABLE_DOCS=0
5105  ;;
5106   default) ENABLE_DOCS=1
5107  ;;
5108   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5110    { (exit 1); exit 1; }; } ;;
5111 esac
5112
5113 # Check whether --enable-doxygen was given.
5114 if test "${enable_doxygen+set}" = set; then
5115   enableval=$enable_doxygen;
5116 else
5117   enableval=default
5118 fi
5119
5120 case "$enableval" in
5121   yes) ENABLE_DOXYGEN=1
5122  ;;
5123   no)  ENABLE_DOXYGEN=0
5124  ;;
5125   default) ENABLE_DOXYGEN=0
5126  ;;
5127   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5128 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5129    { (exit 1); exit 1; }; } ;;
5130 esac
5131
5132 # Check whether --enable-threads was given.
5133 if test "${enable_threads+set}" = set; then
5134   enableval=$enable_threads;
5135 else
5136   enableval=default
5137 fi
5138
5139 case "$enableval" in
5140   yes) ENABLE_THREADS=1
5141  ;;
5142   no)  ENABLE_THREADS=0
5143  ;;
5144   default) ENABLE_THREADS=1
5145  ;;
5146   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5148    { (exit 1); exit 1; }; } ;;
5149 esac
5150
5151 cat >>confdefs.h <<_ACEOF
5152 #define ENABLE_THREADS $ENABLE_THREADS
5153 _ACEOF
5154
5155
5156 # Check whether --enable-pthreads was given.
5157 if test "${enable_pthreads+set}" = set; then
5158   enableval=$enable_pthreads;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) ENABLE_PTHREADS=1
5165  ;;
5166   no)  ENABLE_PTHREADS=0
5167  ;;
5168   default) ENABLE_PTHREADS=1
5169  ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 # Check whether --enable-pic was given.
5176 if test "${enable_pic+set}" = set; then
5177   enableval=$enable_pic;
5178 else
5179   enableval=default
5180 fi
5181
5182 case "$enableval" in
5183   yes) ENABLE_PIC=1
5184  ;;
5185   no)  ENABLE_PIC=0
5186  ;;
5187   default) ENABLE_PIC=1
5188  ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 cat >>confdefs.h <<_ACEOF
5195 #define ENABLE_PIC $ENABLE_PIC
5196 _ACEOF
5197
5198
5199 # Check whether --enable-shared was given.
5200 if test "${enable_shared+set}" = set; then
5201   enableval=$enable_shared;
5202 else
5203   enableval=default
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_SHARED=1
5208  ;;
5209   no)  ENABLE_SHARED=0
5210  ;;
5211   default) ENABLE_SHARED=0
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 # Check whether --enable-embed-stdcxx was given.
5219 if test "${enable_embed_stdcxx+set}" = set; then
5220   enableval=$enable_embed_stdcxx;
5221 else
5222   enableval=default
5223 fi
5224
5225 case "$enableval" in
5226   yes) ENABLE_EMBED_STDCXX=1
5227  ;;
5228   no)  ENABLE_EMBED_STDCXX=0
5229  ;;
5230   default) ENABLE_EMBED_STDCXX=0
5231  ;;
5232   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5234    { (exit 1); exit 1; }; } ;;
5235 esac
5236
5237 # Check whether --enable-timestamps was given.
5238 if test "${enable_timestamps+set}" = set; then
5239   enableval=$enable_timestamps;
5240 else
5241   enableval=default
5242 fi
5243
5244 case "$enableval" in
5245   yes) ENABLE_TIMESTAMPS=1
5246  ;;
5247   no)  ENABLE_TIMESTAMPS=0
5248  ;;
5249   default) ENABLE_TIMESTAMPS=1
5250  ;;
5251   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5253    { (exit 1); exit 1; }; } ;;
5254 esac
5255
5256 cat >>confdefs.h <<_ACEOF
5257 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5258 _ACEOF
5259
5260
5261 TARGETS_TO_BUILD=""
5262 # Check whether --enable-targets was given.
5263 if test "${enable_targets+set}" = set; then
5264   enableval=$enable_targets;
5265 else
5266   enableval=all
5267 fi
5268
5269 if test "$enableval" = host-only ; then
5270   enableval=host
5271 fi
5272 case "$enableval" in
5273   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5274   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5275       case "$a_target" in
5276         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5277         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5279         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5280         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5281         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5282         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5284         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5285         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5286         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5287         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5288         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5289         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5290         host) case "$llvm_cv_target_arch" in
5291             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5294             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5295             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5296             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5297             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5298             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5299             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5300             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5301             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5302             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5303             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5304 echo "$as_me: error: Can not set target to build" >&2;}
5305    { (exit 1); exit 1; }; } ;;
5306           esac ;;
5307         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5308 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5309    { (exit 1); exit 1; }; } ;;
5310       esac
5311   done
5312   ;;
5313 esac
5314 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5315
5316
5317 # Determine whether we are building LLVM support for the native architecture.
5318 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5319 for a_target in $TARGETS_TO_BUILD; do
5320   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5321
5322 cat >>confdefs.h <<_ACEOF
5323 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5324 _ACEOF
5325
5326     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5327     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5328     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5329     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5330     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5331       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5332     fi
5333
5334 cat >>confdefs.h <<_ACEOF
5335 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5336 _ACEOF
5337
5338
5339 cat >>confdefs.h <<_ACEOF
5340 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5341 _ACEOF
5342
5343
5344 cat >>confdefs.h <<_ACEOF
5345 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5346 _ACEOF
5347
5348
5349 cat >>confdefs.h <<_ACEOF
5350 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5351 _ACEOF
5352
5353     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5357 _ACEOF
5358
5359     fi
5360   fi
5361 done
5362
5363 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5364 # target feature def files.
5365 LLVM_ENUM_TARGETS=""
5366 LLVM_ENUM_ASM_PRINTERS=""
5367 LLVM_ENUM_ASM_PARSERS=""
5368 LLVM_ENUM_DISASSEMBLERS=""
5369 for target_to_build in $TARGETS_TO_BUILD; do
5370   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5371   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5372     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5373   fi
5374   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5375     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5376   fi
5377   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5378     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5379   fi
5380 done
5381
5382
5383
5384
5385
5386 # Check whether --enable-cbe-printf-a was given.
5387 if test "${enable_cbe_printf_a+set}" = set; then
5388   enableval=$enable_cbe_printf_a;
5389 else
5390   enableval=default
5391 fi
5392
5393 case "$enableval" in
5394   yes) ENABLE_CBE_PRINTF_A=1
5395  ;;
5396   no)  ENABLE_CBE_PRINTF_A=0
5397  ;;
5398   default)  ENABLE_CBE_PRINTF_A=1
5399  ;;
5400   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5401 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5402    { (exit 1); exit 1; }; } ;;
5403 esac
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5407 _ACEOF
5408
5409
5410
5411 # Check whether --with-optimize-option was given.
5412 if test "${with_optimize_option+set}" = set; then
5413   withval=$with_optimize_option;
5414 else
5415   withval=default
5416 fi
5417
5418 { echo "$as_me:$LINENO: checking optimization flags" >&5
5419 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5420 case "$withval" in
5421   default)
5422     case "$llvm_cv_os_type" in
5423     FreeBSD) optimize_option=-O2 ;;
5424     MingW) optimize_option=-O2 ;;
5425     *)     optimize_option=-O3 ;;
5426     esac ;;
5427   *) optimize_option="$withval" ;;
5428 esac
5429 OPTIMIZE_OPTION=$optimize_option
5430
5431 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5432 echo "${ECHO_T}$optimize_option" >&6; }
5433
5434
5435 # Check whether --with-extra-options was given.
5436 if test "${with_extra_options+set}" = set; then
5437   withval=$with_extra_options;
5438 else
5439   withval=default
5440 fi
5441
5442 case "$withval" in
5443   default) EXTRA_OPTIONS= ;;
5444   *) EXTRA_OPTIONS=$withval ;;
5445 esac
5446 EXTRA_OPTIONS=$EXTRA_OPTIONS
5447
5448
5449
5450 # Check whether --with-extra-ld-options was given.
5451 if test "${with_extra_ld_options+set}" = set; then
5452   withval=$with_extra_ld_options;
5453 else
5454   withval=default
5455 fi
5456
5457 case "$withval" in
5458   default) EXTRA_LD_OPTIONS= ;;
5459   *) EXTRA_LD_OPTIONS=$withval ;;
5460 esac
5461 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5462
5463
5464 # Check whether --enable-bindings was given.
5465 if test "${enable_bindings+set}" = set; then
5466   enableval=$enable_bindings;
5467 else
5468   enableval=default
5469 fi
5470
5471 BINDINGS_TO_BUILD=""
5472 case "$enableval" in
5473   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5474   all ) BINDINGS_TO_BUILD="ocaml" ;;
5475   none | no) BINDINGS_TO_BUILD="" ;;
5476   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5477       case "$a_binding" in
5478         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5479         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5480 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5481    { (exit 1); exit 1; }; } ;;
5482       esac
5483   done
5484   ;;
5485 esac
5486
5487
5488 # Check whether --with-ocaml-libdir was given.
5489 if test "${with_ocaml_libdir+set}" = set; then
5490   withval=$with_ocaml_libdir;
5491 else
5492   withval=auto
5493 fi
5494
5495 case "$withval" in
5496   auto) with_ocaml_libdir="$withval" ;;
5497   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5498   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5499 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5500    { (exit 1); exit 1; }; } ;;
5501 esac
5502
5503
5504 # Check whether --with-clang-srcdir was given.
5505 if test "${with_clang_srcdir+set}" = set; then
5506   withval=$with_clang_srcdir;
5507 else
5508   withval="-"
5509 fi
5510
5511 case "$withval" in
5512   -) clang_src_root="" ;;
5513   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5514   *) clang_src_root="$ac_pwd/$withval" ;;
5515 esac
5516 CLANG_SRC_ROOT=$clang_src_root
5517
5518
5519
5520 # Check whether --with-clang-resource-dir was given.
5521 if test "${with_clang_resource_dir+set}" = set; then
5522   withval=$with_clang_resource_dir;
5523 else
5524   withval=""
5525 fi
5526
5527
5528 cat >>confdefs.h <<_ACEOF
5529 #define CLANG_RESOURCE_DIR "$withval"
5530 _ACEOF
5531
5532
5533
5534 # Check whether --with-c-include-dirs was given.
5535 if test "${with_c_include_dirs+set}" = set; then
5536   withval=$with_c_include_dirs;
5537 else
5538   withval=""
5539 fi
5540
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define C_INCLUDE_DIRS "$withval"
5544 _ACEOF
5545
5546
5547
5548 # Check whether --with-cxx-include-root was given.
5549 if test "${with_cxx_include_root+set}" = set; then
5550   withval=$with_cxx_include_root;
5551 else
5552   withval=""
5553 fi
5554
5555
5556 cat >>confdefs.h <<_ACEOF
5557 #define CXX_INCLUDE_ROOT "$withval"
5558 _ACEOF
5559
5560
5561
5562 # Check whether --with-cxx-include-arch was given.
5563 if test "${with_cxx_include_arch+set}" = set; then
5564   withval=$with_cxx_include_arch;
5565 else
5566   withval=""
5567 fi
5568
5569
5570 cat >>confdefs.h <<_ACEOF
5571 #define CXX_INCLUDE_ARCH "$withval"
5572 _ACEOF
5573
5574
5575
5576 # Check whether --with-cxx-include-32bit-dir was given.
5577 if test "${with_cxx_include_32bit_dir+set}" = set; then
5578   withval=$with_cxx_include_32bit_dir;
5579 else
5580   withval=""
5581 fi
5582
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define CXX_INCLUDE_32BIT_DIR "$withval"
5586 _ACEOF
5587
5588
5589
5590 # Check whether --with-cxx-include-64bit-dir was given.
5591 if test "${with_cxx_include_64bit_dir+set}" = set; then
5592   withval=$with_cxx_include_64bit_dir;
5593 else
5594   withval=""
5595 fi
5596
5597
5598 cat >>confdefs.h <<_ACEOF
5599 #define CXX_INCLUDE_64BIT_DIR "$withval"
5600 _ACEOF
5601
5602
5603
5604 # Check whether --with-binutils-include was given.
5605 if test "${with_binutils_include+set}" = set; then
5606   withval=$with_binutils_include;
5607 else
5608   withval=default
5609 fi
5610
5611 case "$withval" in
5612   default) WITH_BINUTILS_INCDIR=default ;;
5613   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5614   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5615 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5616    { (exit 1); exit 1; }; } ;;
5617 esac
5618 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5619   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5620
5621   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5622      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5623      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5624 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5625    { (exit 1); exit 1; }; };
5626   fi
5627 fi
5628
5629
5630 # Check whether --with-bug-report-url was given.
5631 if test "${with_bug_report_url+set}" = set; then
5632   withval=$with_bug_report_url;
5633 else
5634   withval="http://llvm.org/bugs/"
5635 fi
5636
5637
5638 cat >>confdefs.h <<_ACEOF
5639 #define BUG_REPORT_URL "$withval"
5640 _ACEOF
5641
5642
5643 # Check whether --enable-libffi was given.
5644 if test "${enable_libffi+set}" = set; then
5645   enableval=$enable_libffi; case "$enableval" in
5646     yes) llvm_cv_enable_libffi="yes" ;;
5647     no)  llvm_cv_enable_libffi="no"  ;;
5648     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5649 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5650    { (exit 1); exit 1; }; } ;;
5651   esac
5652 else
5653   llvm_cv_enable_libffi=no
5654 fi
5655
5656
5657
5658 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5659 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5660 if test "${lt_cv_path_NM+set}" = set; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   if test -n "$NM"; then
5664   # Let the user override the test.
5665   lt_cv_path_NM="$NM"
5666 else
5667   lt_nm_to_check="${ac_tool_prefix}nm"
5668   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5669     lt_nm_to_check="$lt_nm_to_check nm"
5670   fi
5671   for lt_tmp_nm in $lt_nm_to_check; do
5672     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5673     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5674       IFS="$lt_save_ifs"
5675       test -z "$ac_dir" && ac_dir=.
5676       tmp_nm="$ac_dir/$lt_tmp_nm"
5677       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5678         # Check to see if the nm accepts a BSD-compat flag.
5679         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5680         #   nm: unknown option "B" ignored
5681         # Tru64's nm complains that /dev/null is an invalid object file
5682         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5683         */dev/null* | *'Invalid file or object type'*)
5684           lt_cv_path_NM="$tmp_nm -B"
5685           break
5686           ;;
5687         *)
5688           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5689           */dev/null*)
5690             lt_cv_path_NM="$tmp_nm -p"
5691             break
5692             ;;
5693           *)
5694             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5695             continue # so that we can try to find one that supports BSD flags
5696             ;;
5697           esac
5698           ;;
5699         esac
5700       fi
5701     done
5702     IFS="$lt_save_ifs"
5703   done
5704   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5705 fi
5706 fi
5707 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5708 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5709 NM="$lt_cv_path_NM"
5710
5711
5712
5713 { echo "$as_me:$LINENO: checking for GNU make" >&5
5714 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5715 if test "${llvm_cv_gnu_make_command+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   llvm_cv_gnu_make_command=''
5719  for a in "$MAKE" make gmake gnumake ; do
5720   if test -z "$a" ; then continue ; fi ;
5721   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5722   then
5723    llvm_cv_gnu_make_command=$a ;
5724    break;
5725   fi
5726  done
5727 fi
5728 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5729 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5730  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5731    ifGNUmake='' ;
5732  else
5733    ifGNUmake='#' ;
5734    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5735 echo "${ECHO_T}\"Not found\"" >&6; };
5736  fi
5737
5738
5739 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5740 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5741 LN_S=$as_ln_s
5742 if test "$LN_S" = "ln -s"; then
5743   { echo "$as_me:$LINENO: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6; }
5745 else
5746   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5747 echo "${ECHO_T}no, using $LN_S" >&6; }
5748 fi
5749
5750 # Extract the first word of "cmp", so it can be a program name with args.
5751 set dummy cmp; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_path_CMP+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   case $CMP in
5758   [\\/]* | ?:[\\/]*)
5759   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5760   ;;
5761   *)
5762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767   for ac_exec_ext in '' $ac_executable_extensions; do
5768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5778   ;;
5779 esac
5780 fi
5781 CMP=$ac_cv_path_CMP
5782 if test -n "$CMP"; then
5783   { echo "$as_me:$LINENO: result: $CMP" >&5
5784 echo "${ECHO_T}$CMP" >&6; }
5785 else
5786   { echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6; }
5788 fi
5789
5790
5791 # Extract the first word of "cp", so it can be a program name with args.
5792 set dummy cp; ac_word=$2
5793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795 if test "${ac_cv_path_CP+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   case $CP in
5799   [\\/]* | ?:[\\/]*)
5800   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5801   ;;
5802   *)
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808   for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5819   ;;
5820 esac
5821 fi
5822 CP=$ac_cv_path_CP
5823 if test -n "$CP"; then
5824   { echo "$as_me:$LINENO: result: $CP" >&5
5825 echo "${ECHO_T}$CP" >&6; }
5826 else
5827   { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5829 fi
5830
5831
5832 # Extract the first word of "date", so it can be a program name with args.
5833 set dummy date; ac_word=$2
5834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5836 if test "${ac_cv_path_DATE+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   case $DATE in
5840   [\\/]* | ?:[\\/]*)
5841   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5842   ;;
5843   *)
5844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849   for ac_exec_ext in '' $ac_executable_extensions; do
5850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5851     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5860   ;;
5861 esac
5862 fi
5863 DATE=$ac_cv_path_DATE
5864 if test -n "$DATE"; then
5865   { echo "$as_me:$LINENO: result: $DATE" >&5
5866 echo "${ECHO_T}$DATE" >&6; }
5867 else
5868   { echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6; }
5870 fi
5871
5872
5873 # Extract the first word of "find", so it can be a program name with args.
5874 set dummy find; ac_word=$2
5875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5877 if test "${ac_cv_path_FIND+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   case $FIND in
5881   [\\/]* | ?:[\\/]*)
5882   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5883   ;;
5884   *)
5885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5892     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898 IFS=$as_save_IFS
5899
5900   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5901   ;;
5902 esac
5903 fi
5904 FIND=$ac_cv_path_FIND
5905 if test -n "$FIND"; then
5906   { echo "$as_me:$LINENO: result: $FIND" >&5
5907 echo "${ECHO_T}$FIND" >&6; }
5908 else
5909   { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5911 fi
5912
5913
5914 # Extract the first word of "grep", so it can be a program name with args.
5915 set dummy grep; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_path_GREP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   case $GREP in
5922   [\\/]* | ?:[\\/]*)
5923   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5924   ;;
5925   *)
5926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931   for ac_exec_ext in '' $ac_executable_extensions; do
5932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5933     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5942   ;;
5943 esac
5944 fi
5945 GREP=$ac_cv_path_GREP
5946 if test -n "$GREP"; then
5947   { echo "$as_me:$LINENO: result: $GREP" >&5
5948 echo "${ECHO_T}$GREP" >&6; }
5949 else
5950   { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5952 fi
5953
5954
5955 # Extract the first word of "mkdir", so it can be a program name with args.
5956 set dummy mkdir; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_path_MKDIR+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   case $MKDIR in
5963   [\\/]* | ?:[\\/]*)
5964   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5965   ;;
5966   *)
5967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972   for ac_exec_ext in '' $ac_executable_extensions; do
5973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5974     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979 done
5980 IFS=$as_save_IFS
5981
5982   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5983   ;;
5984 esac
5985 fi
5986 MKDIR=$ac_cv_path_MKDIR
5987 if test -n "$MKDIR"; then
5988   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5989 echo "${ECHO_T}$MKDIR" >&6; }
5990 else
5991   { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5993 fi
5994
5995
5996 # Extract the first word of "mv", so it can be a program name with args.
5997 set dummy mv; ac_word=$2
5998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6000 if test "${ac_cv_path_MV+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   case $MV in
6004   [\\/]* | ?:[\\/]*)
6005   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6006   ;;
6007   *)
6008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6024   ;;
6025 esac
6026 fi
6027 MV=$ac_cv_path_MV
6028 if test -n "$MV"; then
6029   { echo "$as_me:$LINENO: result: $MV" >&5
6030 echo "${ECHO_T}$MV" >&6; }
6031 else
6032   { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6034 fi
6035
6036
6037 if test -n "$ac_tool_prefix"; then
6038   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_RANLIB+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test -n "$RANLIB"; then
6046   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 RANLIB=$ac_cv_prog_RANLIB
6066 if test -n "$RANLIB"; then
6067   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6068 echo "${ECHO_T}$RANLIB" >&6; }
6069 else
6070   { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if test -z "$ac_cv_prog_RANLIB"; then
6077   ac_ct_RANLIB=$RANLIB
6078   # Extract the first word of "ranlib", so it can be a program name with args.
6079 set dummy ranlib; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   if test -n "$ac_ct_RANLIB"; then
6086   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093   for ac_exec_ext in '' $ac_executable_extensions; do
6094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6095     ac_cv_prog_ac_ct_RANLIB="ranlib"
6096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6106 if test -n "$ac_ct_RANLIB"; then
6107   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6108 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6109 else
6110   { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6112 fi
6113
6114   if test "x$ac_ct_RANLIB" = x; then
6115     RANLIB=":"
6116   else
6117     case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet.  If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet.  If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127     RANLIB=$ac_ct_RANLIB
6128   fi
6129 else
6130   RANLIB="$ac_cv_prog_RANLIB"
6131 fi
6132
6133 if test -n "$ac_tool_prefix"; then
6134   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}ar; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_AR+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -n "$AR"; then
6142   ac_cv_prog_AR="$AR" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_prog_AR="${ac_tool_prefix}ar"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 AR=$ac_cv_prog_AR
6162 if test -n "$AR"; then
6163   { echo "$as_me:$LINENO: result: $AR" >&5
6164 echo "${ECHO_T}$AR" >&6; }
6165 else
6166   { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6168 fi
6169
6170
6171 fi
6172 if test -z "$ac_cv_prog_AR"; then
6173   ac_ct_AR=$AR
6174   # Extract the first word of "ar", so it can be a program name with args.
6175 set dummy ar; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   if test -n "$ac_ct_AR"; then
6182   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189   for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_prog_ac_ct_AR="ar"
6192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6202 if test -n "$ac_ct_AR"; then
6203   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6204 echo "${ECHO_T}$ac_ct_AR" >&6; }
6205 else
6206   { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6208 fi
6209
6210   if test "x$ac_ct_AR" = x; then
6211     AR="false"
6212   else
6213     case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet.  If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&5
6218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet.  If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223     AR=$ac_ct_AR
6224   fi
6225 else
6226   AR="$ac_cv_prog_AR"
6227 fi
6228
6229 # Extract the first word of "rm", so it can be a program name with args.
6230 set dummy rm; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_RM+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   case $RM in
6237   [\\/]* | ?:[\\/]*)
6238   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6239   ;;
6240   *)
6241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6257   ;;
6258 esac
6259 fi
6260 RM=$ac_cv_path_RM
6261 if test -n "$RM"; then
6262   { echo "$as_me:$LINENO: result: $RM" >&5
6263 echo "${ECHO_T}$RM" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269
6270 # Extract the first word of "sed", so it can be a program name with args.
6271 set dummy sed; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_SED+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   case $SED in
6278   [\\/]* | ?:[\\/]*)
6279   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6280   ;;
6281   *)
6282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6298   ;;
6299 esac
6300 fi
6301 SED=$ac_cv_path_SED
6302 if test -n "$SED"; then
6303   { echo "$as_me:$LINENO: result: $SED" >&5
6304 echo "${ECHO_T}$SED" >&6; }
6305 else
6306   { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6308 fi
6309
6310
6311 # Extract the first word of "tar", so it can be a program name with args.
6312 set dummy tar; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_TAR+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   case $TAR in
6319   [\\/]* | ?:[\\/]*)
6320   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6321   ;;
6322   *)
6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6339   ;;
6340 esac
6341 fi
6342 TAR=$ac_cv_path_TAR
6343 if test -n "$TAR"; then
6344   { echo "$as_me:$LINENO: result: $TAR" >&5
6345 echo "${ECHO_T}$TAR" >&6; }
6346 else
6347   { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6349 fi
6350
6351
6352 # Extract the first word of "pwd", so it can be a program name with args.
6353 set dummy pwd; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_path_BINPWD+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   case $BINPWD in
6360   [\\/]* | ?:[\\/]*)
6361   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6362   ;;
6363   *)
6364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369   for ac_exec_ext in '' $ac_executable_extensions; do
6370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6371     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6380   ;;
6381 esac
6382 fi
6383 BINPWD=$ac_cv_path_BINPWD
6384 if test -n "$BINPWD"; then
6385   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6386 echo "${ECHO_T}$BINPWD" >&6; }
6387 else
6388   { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6390 fi
6391
6392
6393
6394 # Extract the first word of "Graphviz", so it can be a program name with args.
6395 set dummy Graphviz; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   case $GRAPHVIZ in
6402   [\\/]* | ?:[\\/]*)
6403   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6404   ;;
6405   *)
6406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411   for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6422   ;;
6423 esac
6424 fi
6425 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6426 if test -n "$GRAPHVIZ"; then
6427   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6428 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6429 else
6430   { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6432 fi
6433
6434
6435 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6436
6437 cat >>confdefs.h <<\_ACEOF
6438 #define HAVE_GRAPHVIZ 1
6439 _ACEOF
6440
6441     if test "$llvm_cv_os_type" = "MingW" ; then
6442     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6443   fi
6444
6445 cat >>confdefs.h <<_ACEOF
6446 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6447 _ACEOF
6448
6449 fi
6450 # Extract the first word of "dot", so it can be a program name with args.
6451 set dummy dot; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_DOT+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   case $DOT in
6458   [\\/]* | ?:[\\/]*)
6459   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6460   ;;
6461   *)
6462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467   for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6478   ;;
6479 esac
6480 fi
6481 DOT=$ac_cv_path_DOT
6482 if test -n "$DOT"; then
6483   { echo "$as_me:$LINENO: result: $DOT" >&5
6484 echo "${ECHO_T}$DOT" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6489
6490
6491 if test "$DOT" != "echo dot" ; then
6492
6493 cat >>confdefs.h <<\_ACEOF
6494 #define HAVE_DOT 1
6495 _ACEOF
6496
6497     if test "$llvm_cv_os_type" = "MingW" ; then
6498     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6499   fi
6500
6501 cat >>confdefs.h <<_ACEOF
6502 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6503 _ACEOF
6504
6505 fi
6506 # Extract the first word of "fdp", so it can be a program name with args.
6507 set dummy fdp; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_path_FDP+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   case $FDP in
6514   [\\/]* | ?:[\\/]*)
6515   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6516   ;;
6517   *)
6518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521   IFS=$as_save_IFS
6522   test -z "$as_dir" && as_dir=.
6523   for ac_exec_ext in '' $ac_executable_extensions; do
6524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6525     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527     break 2
6528   fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6534   ;;
6535 esac
6536 fi
6537 FDP=$ac_cv_path_FDP
6538 if test -n "$FDP"; then
6539   { echo "$as_me:$LINENO: result: $FDP" >&5
6540 echo "${ECHO_T}$FDP" >&6; }
6541 else
6542   { echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6; }
6544 fi
6545
6546
6547 if test "$FDP" != "echo fdp" ; then
6548
6549 cat >>confdefs.h <<\_ACEOF
6550 #define HAVE_FDP 1
6551 _ACEOF
6552
6553     if test "$llvm_cv_os_type" = "MingW" ; then
6554     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6555   fi
6556
6557 cat >>confdefs.h <<_ACEOF
6558 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6559 _ACEOF
6560
6561 fi
6562 # Extract the first word of "neato", so it can be a program name with args.
6563 set dummy neato; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_NEATO+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   case $NEATO in
6570   [\\/]* | ?:[\\/]*)
6571   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6572   ;;
6573   *)
6574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6590   ;;
6591 esac
6592 fi
6593 NEATO=$ac_cv_path_NEATO
6594 if test -n "$NEATO"; then
6595   { echo "$as_me:$LINENO: result: $NEATO" >&5
6596 echo "${ECHO_T}$NEATO" >&6; }
6597 else
6598   { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6600 fi
6601
6602
6603 if test "$NEATO" != "echo neato" ; then
6604
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_NEATO 1
6607 _ACEOF
6608
6609     if test "$llvm_cv_os_type" = "MingW" ; then
6610     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6611   fi
6612
6613 cat >>confdefs.h <<_ACEOF
6614 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6615 _ACEOF
6616
6617 fi
6618 # Extract the first word of "twopi", so it can be a program name with args.
6619 set dummy twopi; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_path_TWOPI+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   case $TWOPI in
6626   [\\/]* | ?:[\\/]*)
6627   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6628   ;;
6629   *)
6630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6646   ;;
6647 esac
6648 fi
6649 TWOPI=$ac_cv_path_TWOPI
6650 if test -n "$TWOPI"; then
6651   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6652 echo "${ECHO_T}$TWOPI" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 if test "$TWOPI" != "echo twopi" ; then
6660
6661 cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_TWOPI 1
6663 _ACEOF
6664
6665     if test "$llvm_cv_os_type" = "MingW" ; then
6666     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6667   fi
6668
6669 cat >>confdefs.h <<_ACEOF
6670 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6671 _ACEOF
6672
6673 fi
6674 # Extract the first word of "circo", so it can be a program name with args.
6675 set dummy circo; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_path_CIRCO+set}" = set; then
6679   echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681   case $CIRCO in
6682   [\\/]* | ?:[\\/]*)
6683   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6684   ;;
6685   *)
6686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6702   ;;
6703 esac
6704 fi
6705 CIRCO=$ac_cv_path_CIRCO
6706 if test -n "$CIRCO"; then
6707   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6708 echo "${ECHO_T}$CIRCO" >&6; }
6709 else
6710   { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6712 fi
6713
6714
6715 if test "$CIRCO" != "echo circo" ; then
6716
6717 cat >>confdefs.h <<\_ACEOF
6718 #define HAVE_CIRCO 1
6719 _ACEOF
6720
6721     if test "$llvm_cv_os_type" = "MingW" ; then
6722     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6723   fi
6724
6725 cat >>confdefs.h <<_ACEOF
6726 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6727 _ACEOF
6728
6729 fi
6730 for ac_prog in gv gsview32
6731 do
6732   # Extract the first word of "$ac_prog", so it can be a program name with args.
6733 set dummy $ac_prog; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_GV+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   case $GV in
6740   [\\/]* | ?:[\\/]*)
6741   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6742   ;;
6743   *)
6744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749   for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759   ;;
6760 esac
6761 fi
6762 GV=$ac_cv_path_GV
6763 if test -n "$GV"; then
6764   { echo "$as_me:$LINENO: result: $GV" >&5
6765 echo "${ECHO_T}$GV" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769 fi
6770
6771
6772   test -n "$GV" && break
6773 done
6774 test -n "$GV" || GV="echo gv"
6775
6776 if test "$GV" != "echo gv" ; then
6777
6778 cat >>confdefs.h <<\_ACEOF
6779 #define HAVE_GV 1
6780 _ACEOF
6781
6782     if test "$llvm_cv_os_type" = "MingW" ; then
6783     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6784   fi
6785
6786 cat >>confdefs.h <<_ACEOF
6787 #define LLVM_PATH_GV "$GV${EXEEXT}"
6788 _ACEOF
6789
6790 fi
6791 # Extract the first word of "dotty", so it can be a program name with args.
6792 set dummy dotty; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_DOTTY+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   case $DOTTY in
6799   [\\/]* | ?:[\\/]*)
6800   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6801   ;;
6802   *)
6803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6819   ;;
6820 esac
6821 fi
6822 DOTTY=$ac_cv_path_DOTTY
6823 if test -n "$DOTTY"; then
6824   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6825 echo "${ECHO_T}$DOTTY" >&6; }
6826 else
6827   { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6829 fi
6830
6831
6832 if test "$DOTTY" != "echo dotty" ; then
6833
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_DOTTY 1
6836 _ACEOF
6837
6838     if test "$llvm_cv_os_type" = "MingW" ; then
6839     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6840   fi
6841
6842 cat >>confdefs.h <<_ACEOF
6843 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6844 _ACEOF
6845
6846 fi
6847 # Extract the first word of "xdot.py", so it can be a program name with args.
6848 set dummy xdot.py; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   case $XDOT_PY in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6875   ;;
6876 esac
6877 fi
6878 XDOT_PY=$ac_cv_path_XDOT_PY
6879 if test -n "$XDOT_PY"; then
6880   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6881 echo "${ECHO_T}$XDOT_PY" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 if test "$XDOT_PY" != "echo xdot.py" ; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_XDOT_PY 1
6892 _ACEOF
6893
6894     if test "$llvm_cv_os_type" = "MingW" ; then
6895     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6896   fi
6897
6898 cat >>confdefs.h <<_ACEOF
6899 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6900 _ACEOF
6901
6902 fi
6903
6904
6905 # Extract the first word of "perl", so it can be a program name with args.
6906 set dummy perl; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_PERL+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $PERL in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6933   ;;
6934 esac
6935 fi
6936 PERL=$ac_cv_path_PERL
6937 if test -n "$PERL"; then
6938   { echo "$as_me:$LINENO: result: $PERL" >&5
6939 echo "${ECHO_T}$PERL" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945
6946 if test "$PERL" != "none"; then
6947   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6948 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6949   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6950     { echo "$as_me:$LINENO: result: yes" >&5
6951 echo "${ECHO_T}yes" >&6; }
6952   else
6953     PERL=none
6954     { echo "$as_me:$LINENO: result: not found" >&5
6955 echo "${ECHO_T}not found" >&6; }
6956   fi
6957 fi
6958
6959
6960 if test x"$PERL" = xnone; then
6961    HAVE_PERL=0
6962
6963    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6964 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6965    { (exit 1); exit 1; }; }
6966 else
6967    HAVE_PERL=1
6968
6969 fi
6970
6971 # Find a good install program.  We prefer a C program (faster),
6972 # so one script is as good as another.  But avoid the broken or
6973 # incompatible versions:
6974 # SysV /etc/install, /usr/sbin/install
6975 # SunOS /usr/etc/install
6976 # IRIX /sbin/install
6977 # AIX /bin/install
6978 # AmigaOS /C/install, which installs bootblocks on floppy discs
6979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6982 # OS/2's system install, which has a completely different semantic
6983 # ./install, which can be erroneously created by make from ./install.sh.
6984 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6985 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6986 if test -z "$INSTALL"; then
6987 if test "${ac_cv_path_install+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   # Account for people who put trailing slashes in PATH elements.
6996 case $as_dir/ in
6997   ./ | .// | /cC/* | \
6998   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6999   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7000   /usr/ucb/* ) ;;
7001   *)
7002     # OSF1 and SCO ODT 3.0 have their own names for install.
7003     # Don't use installbsd from OSF since it installs stuff as root
7004     # by default.
7005     for ac_prog in ginstall scoinst install; do
7006       for ac_exec_ext in '' $ac_executable_extensions; do
7007         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7008           if test $ac_prog = install &&
7009             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7010             # AIX install.  It has an incompatible calling convention.
7011             :
7012           elif test $ac_prog = install &&
7013             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014             # program-specific install script used by HP pwplus--don't use.
7015             :
7016           else
7017             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7018             break 3
7019           fi
7020         fi
7021       done
7022     done
7023     ;;
7024 esac
7025 done
7026 IFS=$as_save_IFS
7027
7028
7029 fi
7030   if test "${ac_cv_path_install+set}" = set; then
7031     INSTALL=$ac_cv_path_install
7032   else
7033     # As a last resort, use the slow shell script.  Don't cache a
7034     # value for INSTALL within a source directory, because that will
7035     # break other packages using the cache if that directory is
7036     # removed, or if the value is a relative name.
7037     INSTALL=$ac_install_sh
7038   fi
7039 fi
7040 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7041 echo "${ECHO_T}$INSTALL" >&6; }
7042
7043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7044 # It thinks the first close brace ends the variable substitution.
7045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7046
7047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7048
7049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7050
7051 case "$INSTALL" in
7052  [\\/$]* | ?:[\\/]* ) ;;
7053  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7054 esac
7055
7056 # Extract the first word of "bzip2", so it can be a program name with args.
7057 set dummy bzip2; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_BZIP2+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   case $BZIP2 in
7064   [\\/]* | ?:[\\/]*)
7065   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7066   ;;
7067   *)
7068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073   for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083   ;;
7084 esac
7085 fi
7086 BZIP2=$ac_cv_path_BZIP2
7087 if test -n "$BZIP2"; then
7088   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7089 echo "${ECHO_T}$BZIP2" >&6; }
7090 else
7091   { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7093 fi
7094
7095
7096 # Extract the first word of "cat", so it can be a program name with args.
7097 set dummy cat; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_CAT+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   case $CAT in
7104   [\\/]* | ?:[\\/]*)
7105   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7106   ;;
7107   *)
7108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113   for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123   ;;
7124 esac
7125 fi
7126 CAT=$ac_cv_path_CAT
7127 if test -n "$CAT"; then
7128   { echo "$as_me:$LINENO: result: $CAT" >&5
7129 echo "${ECHO_T}$CAT" >&6; }
7130 else
7131   { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7133 fi
7134
7135
7136 # Extract the first word of "doxygen", so it can be a program name with args.
7137 set dummy doxygen; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   case $DOXYGEN in
7144   [\\/]* | ?:[\\/]*)
7145   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7146   ;;
7147   *)
7148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153   for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163   ;;
7164 esac
7165 fi
7166 DOXYGEN=$ac_cv_path_DOXYGEN
7167 if test -n "$DOXYGEN"; then
7168   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7169 echo "${ECHO_T}$DOXYGEN" >&6; }
7170 else
7171   { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7173 fi
7174
7175
7176 # Extract the first word of "groff", so it can be a program name with args.
7177 set dummy groff; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_GROFF+set}" = set; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183   case $GROFF in
7184   [\\/]* | ?:[\\/]*)
7185   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7186   ;;
7187   *)
7188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193   for ac_exec_ext in '' $ac_executable_extensions; do
7194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203   ;;
7204 esac
7205 fi
7206 GROFF=$ac_cv_path_GROFF
7207 if test -n "$GROFF"; then
7208   { echo "$as_me:$LINENO: result: $GROFF" >&5
7209 echo "${ECHO_T}$GROFF" >&6; }
7210 else
7211   { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7213 fi
7214
7215
7216 # Extract the first word of "gzip", so it can be a program name with args.
7217 set dummy gzip; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   case $GZIPBIN in
7224   [\\/]* | ?:[\\/]*)
7225   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7226   ;;
7227   *)
7228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233   for ac_exec_ext in '' $ac_executable_extensions; do
7234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243   ;;
7244 esac
7245 fi
7246 GZIPBIN=$ac_cv_path_GZIPBIN
7247 if test -n "$GZIPBIN"; then
7248   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7249 echo "${ECHO_T}$GZIPBIN" >&6; }
7250 else
7251   { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7253 fi
7254
7255
7256 # Extract the first word of "pod2html", so it can be a program name with args.
7257 set dummy pod2html; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_POD2HTML+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   case $POD2HTML in
7264   [\\/]* | ?:[\\/]*)
7265   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7266   ;;
7267   *)
7268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273   for ac_exec_ext in '' $ac_executable_extensions; do
7274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283   ;;
7284 esac
7285 fi
7286 POD2HTML=$ac_cv_path_POD2HTML
7287 if test -n "$POD2HTML"; then
7288   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7289 echo "${ECHO_T}$POD2HTML" >&6; }
7290 else
7291   { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7293 fi
7294
7295
7296 # Extract the first word of "pod2man", so it can be a program name with args.
7297 set dummy pod2man; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_POD2MAN+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   case $POD2MAN in
7304   [\\/]* | ?:[\\/]*)
7305   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7306   ;;
7307   *)
7308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313   for ac_exec_ext in '' $ac_executable_extensions; do
7314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323   ;;
7324 esac
7325 fi
7326 POD2MAN=$ac_cv_path_POD2MAN
7327 if test -n "$POD2MAN"; then
7328   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7329 echo "${ECHO_T}$POD2MAN" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7333 fi
7334
7335
7336 # Extract the first word of "pdfroff", so it can be a program name with args.
7337 set dummy pdfroff; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_path_PDFROFF+set}" = set; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   case $PDFROFF in
7344   [\\/]* | ?:[\\/]*)
7345   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7346   ;;
7347   *)
7348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353   for ac_exec_ext in '' $ac_executable_extensions; do
7354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360 done
7361 IFS=$as_save_IFS
7362
7363   ;;
7364 esac
7365 fi
7366 PDFROFF=$ac_cv_path_PDFROFF
7367 if test -n "$PDFROFF"; then
7368   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7369 echo "${ECHO_T}$PDFROFF" >&6; }
7370 else
7371   { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7373 fi
7374
7375
7376 # Extract the first word of "runtest", so it can be a program name with args.
7377 set dummy runtest; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_RUNTEST+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   case $RUNTEST in
7384   [\\/]* | ?:[\\/]*)
7385   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7386   ;;
7387   *)
7388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391   IFS=$as_save_IFS
7392   test -z "$as_dir" && as_dir=.
7393   for ac_exec_ext in '' $ac_executable_extensions; do
7394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397     break 2
7398   fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403   ;;
7404 esac
7405 fi
7406 RUNTEST=$ac_cv_path_RUNTEST
7407 if test -n "$RUNTEST"; then
7408   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7409 echo "${ECHO_T}$RUNTEST" >&6; }
7410 else
7411   { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7413 fi
7414
7415
7416
7417 no_itcl=true
7418 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7419 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7420
7421 # Check whether --with-tclinclude was given.
7422 if test "${with_tclinclude+set}" = set; then
7423   withval=$with_tclinclude; with_tclinclude=${withval}
7424 else
7425   with_tclinclude=''
7426 fi
7427
7428 if test "${ac_cv_path_tclsh+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431
7432 if test x"${with_tclinclude}" != x ; then
7433   if test -f ${with_tclinclude}/tclsh ; then
7434     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7435   elif test -f ${with_tclinclude}/src/tclsh ; then
7436     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7437   else
7438     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7439 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7440    { (exit 1); exit 1; }; }
7441   fi
7442 fi
7443 fi
7444
7445
7446 if test x"${ac_cv_path_tclsh}" = x ; then
7447   { echo "$as_me:$LINENO: result: none" >&5
7448 echo "${ECHO_T}none" >&6; }
7449   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7450 do
7451   # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_TCLSH+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   case $TCLSH in
7459   [\\/]* | ?:[\\/]*)
7460   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7461   ;;
7462   *)
7463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478   ;;
7479 esac
7480 fi
7481 TCLSH=$ac_cv_path_TCLSH
7482 if test -n "$TCLSH"; then
7483   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7484 echo "${ECHO_T}$TCLSH" >&6; }
7485 else
7486   { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7488 fi
7489
7490
7491   test -n "$TCLSH" && break
7492 done
7493
7494   if test x"${TCLSH}" = x ; then
7495     ac_cv_path_tclsh='';
7496   else
7497     ac_cv_path_tclsh="${TCLSH}";
7498   fi
7499 else
7500   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7501 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7502   TCLSH="${ac_cv_path_tclsh}"
7503
7504 fi
7505
7506 # Extract the first word of "zip", so it can be a program name with args.
7507 set dummy zip; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_ZIP+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   case $ZIP in
7514   [\\/]* | ?:[\\/]*)
7515   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7516   ;;
7517   *)
7518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533   ;;
7534 esac
7535 fi
7536 ZIP=$ac_cv_path_ZIP
7537 if test -n "$ZIP"; then
7538   { echo "$as_me:$LINENO: result: $ZIP" >&5
7539 echo "${ECHO_T}$ZIP" >&6; }
7540 else
7541   { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7543 fi
7544
7545
7546 for ac_prog in ocamlc
7547 do
7548   # Extract the first word of "$ac_prog", so it can be a program name with args.
7549 set dummy $ac_prog; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_OCAMLC+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   case $OCAMLC in
7556   [\\/]* | ?:[\\/]*)
7557   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7558   ;;
7559   *)
7560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575   ;;
7576 esac
7577 fi
7578 OCAMLC=$ac_cv_path_OCAMLC
7579 if test -n "$OCAMLC"; then
7580   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7581 echo "${ECHO_T}$OCAMLC" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587
7588   test -n "$OCAMLC" && break
7589 done
7590
7591 for ac_prog in ocamlopt
7592 do
7593   # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   case $OCAMLOPT in
7601   [\\/]* | ?:[\\/]*)
7602   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7603   ;;
7604   *)
7605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610   for ac_exec_ext in '' $ac_executable_extensions; do
7611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7612     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617 done
7618 IFS=$as_save_IFS
7619
7620   ;;
7621 esac
7622 fi
7623 OCAMLOPT=$ac_cv_path_OCAMLOPT
7624 if test -n "$OCAMLOPT"; then
7625   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7626 echo "${ECHO_T}$OCAMLOPT" >&6; }
7627 else
7628   { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7630 fi
7631
7632
7633   test -n "$OCAMLOPT" && break
7634 done
7635
7636 for ac_prog in ocamldep
7637 do
7638   # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645   case $OCAMLDEP in
7646   [\\/]* | ?:[\\/]*)
7647   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7648   ;;
7649   *)
7650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665   ;;
7666 esac
7667 fi
7668 OCAMLDEP=$ac_cv_path_OCAMLDEP
7669 if test -n "$OCAMLDEP"; then
7670   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7671 echo "${ECHO_T}$OCAMLDEP" >&6; }
7672 else
7673   { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7675 fi
7676
7677
7678   test -n "$OCAMLDEP" && break
7679 done
7680
7681 for ac_prog in ocamldoc
7682 do
7683   # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   case $OCAMLDOC in
7691   [\\/]* | ?:[\\/]*)
7692   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7693   ;;
7694   *)
7695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700   for ac_exec_ext in '' $ac_executable_extensions; do
7701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710   ;;
7711 esac
7712 fi
7713 OCAMLDOC=$ac_cv_path_OCAMLDOC
7714 if test -n "$OCAMLDOC"; then
7715   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7716 echo "${ECHO_T}$OCAMLDOC" >&6; }
7717 else
7718   { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7720 fi
7721
7722
7723   test -n "$OCAMLDOC" && break
7724 done
7725
7726 for ac_prog in gas as
7727 do
7728   # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_path_GAS+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   case $GAS in
7736   [\\/]* | ?:[\\/]*)
7737   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7738   ;;
7739   *)
7740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745   for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755   ;;
7756 esac
7757 fi
7758 GAS=$ac_cv_path_GAS
7759 if test -n "$GAS"; then
7760   { echo "$as_me:$LINENO: result: $GAS" >&5
7761 echo "${ECHO_T}$GAS" >&6; }
7762 else
7763   { echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6; }
7765 fi
7766
7767
7768   test -n "$GAS" && break
7769 done
7770
7771
7772 { echo "$as_me:$LINENO: checking for linker version" >&5
7773 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7774 if test "${llvm_cv_link_version+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777
7778    version_string="$(ld -v 2>&1 | head -1)"
7779
7780    # Check for ld64.
7781    if (echo "$version_string" | grep -q "ld64"); then
7782      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7783    else
7784      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7785    fi
7786
7787 fi
7788 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7789 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7790
7791 cat >>confdefs.h <<_ACEOF
7792 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7793 _ACEOF
7794
7795
7796
7797 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7798 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7799 if test "${llvm_cv_link_use_r+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802    ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808   oldcflags="$CFLAGS"
7809   CFLAGS="$CFLAGS -Wl,-R."
7810   cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816
7817 int
7818 main ()
7819 {
7820
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7827 case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_link") 2>conftest.er1
7833   ac_status=$?
7834   grep -v '^ *+' conftest.er1 >conftest.err
7835   rm -f conftest.er1
7836   cat conftest.err >&5
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } &&
7839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7840   { (case "(($ac_try" in
7841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842   *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845   (eval "$ac_try") 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest$ac_exeext'
7850   { (case "(($ac_try" in
7851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852   *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855   (eval "$ac_try") 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   llvm_cv_link_use_r=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864         llvm_cv_link_use_r=no
7865 fi
7866
7867 rm -f core conftest.err conftest.$ac_objext \
7868       conftest$ac_exeext conftest.$ac_ext
7869   CFLAGS="$oldcflags"
7870   ac_ext=c
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
7876
7877 fi
7878 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7879 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7880 if test "$llvm_cv_link_use_r" = yes ; then
7881
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_LINK_R 1
7884 _ACEOF
7885
7886   fi
7887
7888
7889 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7890 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7891 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894    ac_ext=c
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899
7900   oldcflags="$CFLAGS"
7901   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7902   cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908
7909 int
7910 main ()
7911 {
7912
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (ac_try="$ac_link"
7919 case "(($ac_try" in
7920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921   *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924   (eval "$ac_link") 2>conftest.er1
7925   ac_status=$?
7926   grep -v '^ *+' conftest.er1 >conftest.err
7927   rm -f conftest.er1
7928   cat conftest.err >&5
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); } &&
7931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7932   { (case "(($ac_try" in
7933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934   *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937   (eval "$ac_try") 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); }; } &&
7941          { ac_try='test -s conftest$ac_exeext'
7942   { (case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947   (eval "$ac_try") 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   llvm_cv_link_use_export_dynamic=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956         llvm_cv_link_use_export_dynamic=no
7957 fi
7958
7959 rm -f core conftest.err conftest.$ac_objext \
7960       conftest$ac_exeext conftest.$ac_ext
7961   CFLAGS="$oldcflags"
7962   ac_ext=c
7963 ac_cpp='$CPP $CPPFLAGS'
7964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7967
7968
7969 fi
7970 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7971 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7972 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7973
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_LINK_EXPORT_DYNAMIC 1
7976 _ACEOF
7977
7978   fi
7979
7980
7981 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7982 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7983 if test "${llvm_cv_link_use_version_script+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986    ac_ext=c
7987 ac_cpp='$CPP $CPPFLAGS'
7988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7991
7992   oldcflags="$CFLAGS"
7993
7994   # The following code is from the autoconf manual,
7995   # "11.13: Limitations of Usual Tools".
7996   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7997   # Use mktemp if possible; otherwise fall back on mkdir,
7998   # with $RANDOM to make collisions less likely.
7999   : ${TMPDIR=/tmp}
8000   {
8001     tmp=`
8002       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8003     ` &&
8004     test -n "$tmp" && test -d "$tmp"
8005   } || {
8006     tmp=$TMPDIR/foo$$-$RANDOM
8007     (umask 077 && mkdir "$tmp")
8008   } || exit $?
8009
8010   echo "{" > "$tmp/export.map"
8011   echo "  global: main;" >> "$tmp/export.map"
8012   echo "  local: *;" >> "$tmp/export.map"
8013   echo "};" >> "$tmp/export.map"
8014
8015   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8016   cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022
8023 int
8024 main ()
8025 {
8026
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038   (eval "$ac_link") 2>conftest.er1
8039   ac_status=$?
8040   grep -v '^ *+' conftest.er1 >conftest.err
8041   rm -f conftest.er1
8042   cat conftest.err >&5
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } &&
8045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_try") 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; } &&
8055          { ac_try='test -s conftest$ac_exeext'
8056   { (case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_try") 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   llvm_cv_link_use_version_script=yes
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070         llvm_cv_link_use_version_script=no
8071 fi
8072
8073 rm -f core conftest.err conftest.$ac_objext \
8074       conftest$ac_exeext conftest.$ac_ext
8075   rm "$tmp/export.map"
8076   rmdir "$tmp"
8077   CFLAGS="$oldcflags"
8078   ac_ext=c
8079 ac_cpp='$CPP $CPPFLAGS'
8080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8083
8084
8085 fi
8086 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8087 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8088 if test "$llvm_cv_link_use_version_script" = yes ; then
8089   HAVE_LINK_VERSION_SCRIPT=1
8090
8091   fi
8092
8093
8094
8095
8096 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8097 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8098 if test "${ac_cv_c_const+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107
8108 int
8109 main ()
8110 {
8111 /* FIXME: Include the comments suggested by Paul. */
8112 #ifndef __cplusplus
8113   /* Ultrix mips cc rejects this.  */
8114   typedef int charset[2];
8115   const charset x;
8116   /* SunOS 4.1.1 cc rejects this.  */
8117   char const *const *ccp;
8118   char **p;
8119   /* NEC SVR4.0.2 mips cc rejects this.  */
8120   struct point {int x, y;};
8121   static struct point const zero = {0,0};
8122   /* AIX XL C 1.02.0.0 rejects this.
8123      It does not let you subtract one const X* pointer from another in
8124      an arm of an if-expression whose if-part is not a constant
8125      expression */
8126   const char *g = "string";
8127   ccp = &g + (g ? g-g : 0);
8128   /* HPUX 7.0 cc rejects these. */
8129   ++ccp;
8130   p = (char**) ccp;
8131   ccp = (char const *const *) p;
8132   { /* SCO 3.2v4 cc rejects this.  */
8133     char *t;
8134     char const *s = 0 ? (char *) 0 : (char const *) 0;
8135
8136     *t++ = 0;
8137     if (s) return 0;
8138   }
8139   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8140     int x[] = {25, 17};
8141     const int *foo = &x[0];
8142     ++foo;
8143   }
8144   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8145     typedef const int *iptr;
8146     iptr p = 0;
8147     ++p;
8148   }
8149   { /* AIX XL C 1.02.0.0 rejects this saying
8150        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8151     struct s { int j; const int *ap[3]; };
8152     struct s *b; b->j = 5;
8153   }
8154   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8155     const int foo = 10;
8156     if (!foo) return 0;
8157   }
8158   return !x[0] && !zero.x;
8159 #endif
8160
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8167 case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_compile") 2>conftest.er1
8173   ac_status=$?
8174   grep -v '^ *+' conftest.er1 >conftest.err
8175   rm -f conftest.er1
8176   cat conftest.err >&5
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } &&
8179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8180   { (case "(($ac_try" in
8181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182   *) ac_try_echo=$ac_try;;
8183 esac
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185   (eval "$ac_try") 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; } &&
8189          { ac_try='test -s conftest.$ac_objext'
8190   { (case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195   (eval "$ac_try") 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_cv_c_const=yes
8200 else
8201   echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204         ac_cv_c_const=no
8205 fi
8206
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8210 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8211 if test $ac_cv_c_const = no; then
8212
8213 cat >>confdefs.h <<\_ACEOF
8214 #define const
8215 _ACEOF
8216
8217 fi
8218
8219
8220
8221
8222
8223
8224 ac_header_dirent=no
8225 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8226   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8228 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238 #include <sys/types.h>
8239 #include <$ac_hdr>
8240
8241 int
8242 main ()
8243 {
8244 if ((DIR *) 0)
8245 return 0;
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8252 case "(($ac_try" in
8253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254   *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257   (eval "$ac_compile") 2>conftest.er1
8258   ac_status=$?
8259   grep -v '^ *+' conftest.er1 >conftest.err
8260   rm -f conftest.er1
8261   cat conftest.err >&5
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); } &&
8264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8265   { (case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270   (eval "$ac_try") 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; } &&
8274          { ac_try='test -s conftest.$ac_objext'
8275   { (case "(($ac_try" in
8276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277   *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280   (eval "$ac_try") 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   eval "$as_ac_Header=yes"
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289         eval "$as_ac_Header=no"
8290 fi
8291
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 ac_res=`eval echo '${'$as_ac_Header'}'`
8295                { echo "$as_me:$LINENO: result: $ac_res" >&5
8296 echo "${ECHO_T}$ac_res" >&6; }
8297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8298   cat >>confdefs.h <<_ACEOF
8299 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8300 _ACEOF
8301
8302 ac_header_dirent=$ac_hdr; break
8303 fi
8304
8305 done
8306 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8307 if test $ac_header_dirent = dirent.h; then
8308   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8309 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8310 if test "${ac_cv_search_opendir+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   ac_func_search_save_LIBS=$LIBS
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h.  */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h.  */
8320
8321 /* Override any GCC internal prototype to avoid an error.
8322    Use char because int might match the return type of a GCC
8323    builtin and then its argument prototype would still apply.  */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char opendir ();
8328 int
8329 main ()
8330 {
8331 return opendir ();
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 for ac_lib in '' dir; do
8337   if test -z "$ac_lib"; then
8338     ac_res="none required"
8339   else
8340     ac_res=-l$ac_lib
8341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8342   fi
8343   rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (ac_try="$ac_link"
8345 case "(($ac_try" in
8346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347   *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350   (eval "$ac_link") 2>conftest.er1
8351   ac_status=$?
8352   grep -v '^ *+' conftest.er1 >conftest.err
8353   rm -f conftest.er1
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } &&
8357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358   { (case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_try") 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; } &&
8367          { ac_try='test -s conftest$ac_exeext'
8368   { (case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_try") 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_cv_search_opendir=$ac_res
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext \
8386       conftest$ac_exeext
8387   if test "${ac_cv_search_opendir+set}" = set; then
8388   break
8389 fi
8390 done
8391 if test "${ac_cv_search_opendir+set}" = set; then
8392   :
8393 else
8394   ac_cv_search_opendir=no
8395 fi
8396 rm conftest.$ac_ext
8397 LIBS=$ac_func_search_save_LIBS
8398 fi
8399 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8400 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8401 ac_res=$ac_cv_search_opendir
8402 if test "$ac_res" != no; then
8403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8404
8405 fi
8406
8407 else
8408   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8410 if test "${ac_cv_search_opendir+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   ac_func_search_save_LIBS=$LIBS
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420
8421 /* Override any GCC internal prototype to avoid an error.
8422    Use char because int might match the return type of a GCC
8423    builtin and then its argument prototype would still apply.  */
8424 #ifdef __cplusplus
8425 extern "C"
8426 #endif
8427 char opendir ();
8428 int
8429 main ()
8430 {
8431 return opendir ();
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 for ac_lib in '' x; do
8437   if test -z "$ac_lib"; then
8438     ac_res="none required"
8439   else
8440     ac_res=-l$ac_lib
8441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8442   fi
8443   rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (ac_try="$ac_link"
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_link") 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); } &&
8457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458   { (case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_try") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; } &&
8467          { ac_try='test -s conftest$ac_exeext'
8468   { (case "(($ac_try" in
8469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470   *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473   (eval "$ac_try") 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477   ac_cv_search_opendir=$ac_res
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482
8483 fi
8484
8485 rm -f core conftest.err conftest.$ac_objext \
8486       conftest$ac_exeext
8487   if test "${ac_cv_search_opendir+set}" = set; then
8488   break
8489 fi
8490 done
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492   :
8493 else
8494   ac_cv_search_opendir=no
8495 fi
8496 rm conftest.$ac_ext
8497 LIBS=$ac_func_search_save_LIBS
8498 fi
8499 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8500 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8501 ac_res=$ac_cv_search_opendir
8502 if test "$ac_res" != no; then
8503   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8504
8505 fi
8506
8507 fi
8508
8509
8510 for ac_header in dlfcn.h
8511 do
8512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8514   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 fi
8519 ac_res=`eval echo '${'$as_ac_Header'}'`
8520                { echo "$as_me:$LINENO: result: $ac_res" >&5
8521 echo "${ECHO_T}$ac_res" >&6; }
8522 else
8523   # Is the header compilable?
8524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 $ac_includes_default
8533 #include <$ac_header>
8534 _ACEOF
8535 rm -f conftest.$ac_objext
8536 if { (ac_try="$ac_compile"
8537 case "(($ac_try" in
8538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539   *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542   (eval "$ac_compile") 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550   { (case "(($ac_try" in
8551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552   *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555   (eval "$ac_try") 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; } &&
8559          { ac_try='test -s conftest.$ac_objext'
8560   { (case "(($ac_try" in
8561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562   *) ac_try_echo=$ac_try;;
8563 esac
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565   (eval "$ac_try") 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   ac_header_compiler=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574         ac_header_compiler=no
8575 fi
8576
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8579 echo "${ECHO_T}$ac_header_compiler" >&6; }
8580
8581 # Is the header present?
8582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590 #include <$ac_header>
8591 _ACEOF
8592 if { (ac_try="$ac_cpp conftest.$ac_ext"
8593 case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } >/dev/null; then
8605   if test -s conftest.err; then
8606     ac_cpp_err=$ac_c_preproc_warn_flag
8607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8608   else
8609     ac_cpp_err=
8610   fi
8611 else
8612   ac_cpp_err=yes
8613 fi
8614 if test -z "$ac_cpp_err"; then
8615   ac_header_preproc=yes
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620   ac_header_preproc=no
8621 fi
8622
8623 rm -f conftest.err conftest.$ac_ext
8624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8625 echo "${ECHO_T}$ac_header_preproc" >&6; }
8626
8627 # So?  What about this header?
8628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8629   yes:no: )
8630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8634     ac_header_preproc=yes
8635     ;;
8636   no:yes:* )
8637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8649     ( cat <<\_ASBOX
8650 ## ----------------------------------- ##
8651 ## Report this to llvmbugs@cs.uiuc.edu ##
8652 ## ----------------------------------- ##
8653 _ASBOX
8654      ) | sed "s/^/$as_me: WARNING:     /" >&2
8655     ;;
8656 esac
8657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662   eval "$as_ac_Header=\$ac_header_preproc"
8663 fi
8664 ac_res=`eval echo '${'$as_ac_Header'}'`
8665                { echo "$as_me:$LINENO: result: $ac_res" >&5
8666 echo "${ECHO_T}$ac_res" >&6; }
8667
8668 fi
8669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8670   cat >>confdefs.h <<_ACEOF
8671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8672 _ACEOF
8673
8674 fi
8675
8676 done
8677
8678 # Check whether --enable-ltdl-install was given.
8679 if test "${enable_ltdl_install+set}" = set; then
8680   enableval=$enable_ltdl_install;
8681 fi
8682
8683
8684
8685
8686 if test x"${enable_ltdl_install-no}" != xno; then
8687   INSTALL_LTDL_TRUE=
8688   INSTALL_LTDL_FALSE='#'
8689 else
8690   INSTALL_LTDL_TRUE='#'
8691   INSTALL_LTDL_FALSE=
8692 fi
8693
8694
8695
8696 if test x"${enable_ltdl_convenience-no}" != xno; then
8697   CONVENIENCE_LTDL_TRUE=
8698   CONVENIENCE_LTDL_FALSE='#'
8699 else
8700   CONVENIENCE_LTDL_TRUE='#'
8701   CONVENIENCE_LTDL_FALSE=
8702 fi
8703
8704
8705 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8706 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8707 library_names_spec=
8708 libname_spec='lib$name'
8709 soname_spec=
8710 shrext_cmds=".so"
8711 postinstall_cmds=
8712 postuninstall_cmds=
8713 finish_cmds=
8714 finish_eval=
8715 shlibpath_var=
8716 shlibpath_overrides_runpath=unknown
8717 version_type=none
8718 dynamic_linker="$host_os ld.so"
8719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8720 if test "$GCC" = yes; then
8721   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8722   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8723     # if the path contains ";" then we assume it to be the separator
8724     # otherwise default to the standard path separator (i.e. ":") - it is
8725     # assumed that no part of a normal pathname contains ";" but that should
8726     # okay in the real world where ";" in dirpaths is itself problematic.
8727     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8728   else
8729     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8730   fi
8731 else
8732   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8733 fi
8734 need_lib_prefix=unknown
8735 hardcode_into_libs=no
8736
8737 # when you set need_version to no, make sure it does not cause -set_version
8738 # flags to be left without arguments
8739 need_version=unknown
8740
8741 case $host_os in
8742 aix3*)
8743   version_type=linux
8744   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8745   shlibpath_var=LIBPATH
8746
8747   # AIX 3 has no versioning support, so we append a major version to the name.
8748   soname_spec='${libname}${release}${shared_ext}$major'
8749   ;;
8750
8751 aix4* | aix5*)
8752   version_type=linux
8753   need_lib_prefix=no
8754   need_version=no
8755   hardcode_into_libs=yes
8756   if test "$host_cpu" = ia64; then
8757     # AIX 5 supports IA64
8758     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8759     shlibpath_var=LD_LIBRARY_PATH
8760   else
8761     # With GCC up to 2.95.x, collect2 would create an import file
8762     # for dependence libraries.  The import file would start with
8763     # the line `#! .'.  This would cause the generated library to
8764     # depend on `.', always an invalid library.  This was fixed in
8765     # development snapshots of GCC prior to 3.0.
8766     case $host_os in
8767       aix4 | aix4.[01] | aix4.[01].*)
8768       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8769            echo ' yes '
8770            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8771         :
8772       else
8773         can_build_shared=no
8774       fi
8775       ;;
8776     esac
8777     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8778     # soname into executable. Probably we can add versioning support to
8779     # collect2, so additional links can be useful in future.
8780     if test "$aix_use_runtimelinking" = yes; then
8781       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8782       # instead of lib<name>.a to let people know that these are not
8783       # typical AIX shared libraries.
8784       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785     else
8786       # We preserve .a as extension for shared libraries through AIX4.2
8787       # and later when we are not doing run time linking.
8788       library_names_spec='${libname}${release}.a $libname.a'
8789       soname_spec='${libname}${release}${shared_ext}$major'
8790     fi
8791     shlibpath_var=LIBPATH
8792   fi
8793   ;;
8794
8795 amigaos*)
8796   library_names_spec='$libname.ixlibrary $libname.a'
8797   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8798   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'
8799   ;;
8800
8801 beos*)
8802   library_names_spec='${libname}${shared_ext}'
8803   dynamic_linker="$host_os ld.so"
8804   shlibpath_var=LIBRARY_PATH
8805   ;;
8806
8807 bsdi[45]*)
8808   version_type=linux
8809   need_version=no
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811   soname_spec='${libname}${release}${shared_ext}$major'
8812   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8813   shlibpath_var=LD_LIBRARY_PATH
8814   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8815   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8816   # the default ld.so.conf also contains /usr/contrib/lib and
8817   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8818   # libtool to hard-code these into programs
8819   ;;
8820
8821 cygwin* | mingw* | pw32*)
8822   version_type=windows
8823   shrext_cmds=".dll"
8824   need_version=no
8825   need_lib_prefix=no
8826
8827   case $GCC,$host_os in
8828   yes,cygwin* | yes,mingw* | yes,pw32*)
8829     library_names_spec='$libname.dll.a'
8830     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8831     postinstall_cmds='base_file=`basename \${file}`~
8832       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8833       dldir=$destdir/`dirname \$dlpath`~
8834       test -d \$dldir || mkdir -p \$dldir~
8835       $install_prog $dir/$dlname \$dldir/$dlname~
8836       chmod a+x \$dldir/$dlname'
8837     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8838       dlpath=$dir/\$dldll~
8839        $rm \$dlpath'
8840     shlibpath_overrides_runpath=yes
8841
8842     case $host_os in
8843     cygwin*)
8844       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8845       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8847       ;;
8848     mingw*)
8849       # MinGW DLLs use traditional 'lib' prefix
8850       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8851       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8852       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8853         # It is most probably a Windows format PATH printed by
8854         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8855         # path with ; separators, and with drive letters. We can handle the
8856         # drive letters (cygwin fileutils understands them), so leave them,
8857         # especially as we might pass files found there to a mingw objdump,
8858         # which wouldn't understand a cygwinified path. Ahh.
8859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8860       else
8861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8862       fi
8863       ;;
8864     pw32*)
8865       # pw32 DLLs use 'pw' prefix rather than 'lib'
8866       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8867       ;;
8868     esac
8869     ;;
8870
8871   *)
8872     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8873     ;;
8874   esac
8875   dynamic_linker='Win32 ld.exe'
8876   # FIXME: first we should search . and the directory the executable is in
8877   shlibpath_var=PATH
8878   ;;
8879
8880 darwin* | rhapsody*)
8881   dynamic_linker="$host_os dyld"
8882   version_type=darwin
8883   need_lib_prefix=no
8884   need_version=no
8885   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8886   soname_spec='${libname}${release}${major}$shared_ext'
8887   shlibpath_overrides_runpath=yes
8888   shlibpath_var=DYLD_LIBRARY_PATH
8889   shrext_cmds='.dylib'
8890   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8891   if test "$GCC" = yes; then
8892     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"`
8893   else
8894     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8895   fi
8896   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8897   ;;
8898
8899 dgux*)
8900   version_type=linux
8901   need_lib_prefix=no
8902   need_version=no
8903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8904   soname_spec='${libname}${release}${shared_ext}$major'
8905   shlibpath_var=LD_LIBRARY_PATH
8906   ;;
8907
8908 freebsd1.*)
8909   dynamic_linker=no
8910   ;;
8911
8912 kfreebsd*-gnu)
8913   version_type=linux
8914   need_lib_prefix=no
8915   need_version=no
8916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8917   soname_spec='${libname}${release}${shared_ext}$major'
8918   shlibpath_var=LD_LIBRARY_PATH
8919   shlibpath_overrides_runpath=no
8920   hardcode_into_libs=yes
8921   dynamic_linker='GNU ld.so'
8922   ;;
8923
8924 freebsd* | dragonfly*)
8925   # DragonFly does not have aout.  When/if they implement a new
8926   # versioning mechanism, adjust this.
8927   if test -x /usr/bin/objformat; then
8928     objformat=`/usr/bin/objformat`
8929   else
8930     case $host_os in
8931     freebsd[123].*) objformat=aout ;;
8932     *) objformat=elf ;;
8933     esac
8934   fi
8935   version_type=freebsd-$objformat
8936   case $version_type in
8937     freebsd-elf*)
8938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8939       need_version=no
8940       need_lib_prefix=no
8941       ;;
8942     freebsd-*)
8943       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8944       need_version=yes
8945       ;;
8946   esac
8947   shlibpath_var=LD_LIBRARY_PATH
8948   case $host_os in
8949   freebsd2.*)
8950     shlibpath_overrides_runpath=yes
8951     ;;
8952   freebsd3.[01]* | freebsdelf3.[01]*)
8953     shlibpath_overrides_runpath=yes
8954     hardcode_into_libs=yes
8955     ;;
8956   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8957   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8958     shlibpath_overrides_runpath=no
8959     hardcode_into_libs=yes
8960     ;;
8961   freebsd*) # from 4.6 on
8962     shlibpath_overrides_runpath=yes
8963     hardcode_into_libs=yes
8964     ;;
8965   esac
8966   ;;
8967
8968 gnu*)
8969   version_type=linux
8970   need_lib_prefix=no
8971   need_version=no
8972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8973   soname_spec='${libname}${release}${shared_ext}$major'
8974   shlibpath_var=LD_LIBRARY_PATH
8975   hardcode_into_libs=yes
8976   ;;
8977
8978 hpux9* | hpux10* | hpux11*)
8979   # Give a soname corresponding to the major version so that dld.sl refuses to
8980   # link against other versions.
8981   version_type=sunos
8982   need_lib_prefix=no
8983   need_version=no
8984   case $host_cpu in
8985   ia64*)
8986     shrext_cmds='.so'
8987     hardcode_into_libs=yes
8988     dynamic_linker="$host_os dld.so"
8989     shlibpath_var=LD_LIBRARY_PATH
8990     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992     soname_spec='${libname}${release}${shared_ext}$major'
8993     if test "X$HPUX_IA64_MODE" = X32; then
8994       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8995     else
8996       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8997     fi
8998     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8999     ;;
9000    hppa*64*)
9001      shrext_cmds='.sl'
9002      hardcode_into_libs=yes
9003      dynamic_linker="$host_os dld.sl"
9004      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9005      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9006      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007      soname_spec='${libname}${release}${shared_ext}$major'
9008      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9009      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9010      ;;
9011    *)
9012     shrext_cmds='.sl'
9013     dynamic_linker="$host_os dld.sl"
9014     shlibpath_var=SHLIB_PATH
9015     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017     soname_spec='${libname}${release}${shared_ext}$major'
9018     ;;
9019   esac
9020   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9021   postinstall_cmds='chmod 555 $lib'
9022   ;;
9023
9024 interix3*)
9025   version_type=linux
9026   need_lib_prefix=no
9027   need_version=no
9028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9029   soname_spec='${libname}${release}${shared_ext}$major'
9030   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9031   shlibpath_var=LD_LIBRARY_PATH
9032   shlibpath_overrides_runpath=no
9033   hardcode_into_libs=yes
9034   ;;
9035
9036 irix5* | irix6* | nonstopux*)
9037   case $host_os in
9038     nonstopux*) version_type=nonstopux ;;
9039     *)
9040         if test "$lt_cv_prog_gnu_ld" = yes; then
9041                 version_type=linux
9042         else
9043                 version_type=irix
9044         fi ;;
9045   esac
9046   need_lib_prefix=no
9047   need_version=no
9048   soname_spec='${libname}${release}${shared_ext}$major'
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9050   case $host_os in
9051   irix5* | nonstopux*)
9052     libsuff= shlibsuff=
9053     ;;
9054   *)
9055     case $LD in # libtool.m4 will add one of these switches to LD
9056     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9057       libsuff= shlibsuff= libmagic=32-bit;;
9058     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9059       libsuff=32 shlibsuff=N32 libmagic=N32;;
9060     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9061       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9062     *) libsuff= shlibsuff= libmagic=never-match;;
9063     esac
9064     ;;
9065   esac
9066   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9067   shlibpath_overrides_runpath=no
9068   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9069   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9070   hardcode_into_libs=yes
9071   ;;
9072
9073 # No shared lib support for Linux oldld, aout, or coff.
9074 linux*oldld* | linux*aout* | linux*coff*)
9075   dynamic_linker=no
9076   ;;
9077
9078 # This must be Linux ELF.
9079 linux*)
9080   version_type=linux
9081   need_lib_prefix=no
9082   need_version=no
9083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084   soname_spec='${libname}${release}${shared_ext}$major'
9085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9086   shlibpath_var=LD_LIBRARY_PATH
9087   shlibpath_overrides_runpath=no
9088   # This implies no fast_install, which is unacceptable.
9089   # Some rework will be needed to allow for fast_install
9090   # before this can be enabled.
9091   hardcode_into_libs=yes
9092
9093   # Append ld.so.conf contents to the search path
9094   if test -f /etc/ld.so.conf; then
9095     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' ' '`
9096     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9097   fi
9098
9099   # We used to test for /lib/ld.so.1 and disable shared libraries on
9100   # powerpc, because MkLinux only supported shared libraries with the
9101   # GNU dynamic linker.  Since this was broken with cross compilers,
9102   # most powerpc-linux boxes support dynamic linking these days and
9103   # people can always --disable-shared, the test was removed, and we
9104   # assume the GNU/Linux dynamic linker is in use.
9105   dynamic_linker='GNU/Linux ld.so'
9106   ;;
9107
9108 knetbsd*-gnu)
9109   version_type=linux
9110   need_lib_prefix=no
9111   need_version=no
9112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   shlibpath_var=LD_LIBRARY_PATH
9115   shlibpath_overrides_runpath=no
9116   hardcode_into_libs=yes
9117   dynamic_linker='GNU ld.so'
9118   ;;
9119
9120 netbsd*)
9121   version_type=sunos
9122   need_lib_prefix=no
9123   need_version=no
9124   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9126     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9127     dynamic_linker='NetBSD (a.out) ld.so'
9128   else
9129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9130     soname_spec='${libname}${release}${shared_ext}$major'
9131     dynamic_linker='NetBSD ld.elf_so'
9132   fi
9133   shlibpath_var=LD_LIBRARY_PATH
9134   shlibpath_overrides_runpath=yes
9135   hardcode_into_libs=yes
9136   ;;
9137
9138 newsos6)
9139   version_type=linux
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   shlibpath_overrides_runpath=yes
9143   ;;
9144
9145 nto-qnx*)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   shlibpath_var=LD_LIBRARY_PATH
9152   shlibpath_overrides_runpath=yes
9153   ;;
9154
9155 openbsd*)
9156   version_type=sunos
9157   sys_lib_dlsearch_path_spec="/usr/lib"
9158   need_lib_prefix=no
9159   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9160   case $host_os in
9161     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9162     *)                         need_version=no  ;;
9163   esac
9164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9166   shlibpath_var=LD_LIBRARY_PATH
9167   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9168     case $host_os in
9169       openbsd2.[89] | openbsd2.[89].*)
9170         shlibpath_overrides_runpath=no
9171         ;;
9172       *)
9173         shlibpath_overrides_runpath=yes
9174         ;;
9175       esac
9176   else
9177     shlibpath_overrides_runpath=yes
9178   fi
9179   ;;
9180
9181 os2*)
9182   libname_spec='$name'
9183   shrext_cmds=".dll"
9184   need_lib_prefix=no
9185   library_names_spec='$libname${shared_ext} $libname.a'
9186   dynamic_linker='OS/2 ld.exe'
9187   shlibpath_var=LIBPATH
9188   ;;
9189
9190 osf3* | osf4* | osf5*)
9191   version_type=osf
9192   need_lib_prefix=no
9193   need_version=no
9194   soname_spec='${libname}${release}${shared_ext}$major'
9195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196   shlibpath_var=LD_LIBRARY_PATH
9197   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9198   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9199   ;;
9200
9201 solaris*)
9202   version_type=linux
9203   need_lib_prefix=no
9204   need_version=no
9205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206   soname_spec='${libname}${release}${shared_ext}$major'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   shlibpath_overrides_runpath=yes
9209   hardcode_into_libs=yes
9210   # ldd complains unless libraries are executable
9211   postinstall_cmds='chmod +x $lib'
9212   ;;
9213
9214 sunos4*)
9215   version_type=sunos
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9217   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9218   shlibpath_var=LD_LIBRARY_PATH
9219   shlibpath_overrides_runpath=yes
9220   if test "$with_gnu_ld" = yes; then
9221     need_lib_prefix=no
9222   fi
9223   need_version=yes
9224   ;;
9225
9226 sysv4 | sysv4.3*)
9227   version_type=linux
9228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229   soname_spec='${libname}${release}${shared_ext}$major'
9230   shlibpath_var=LD_LIBRARY_PATH
9231   case $host_vendor in
9232     sni)
9233       shlibpath_overrides_runpath=no
9234       need_lib_prefix=no
9235       export_dynamic_flag_spec='${wl}-Blargedynsym'
9236       runpath_var=LD_RUN_PATH
9237       ;;
9238     siemens)
9239       need_lib_prefix=no
9240       ;;
9241     motorola)
9242       need_lib_prefix=no
9243       need_version=no
9244       shlibpath_overrides_runpath=no
9245       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9246       ;;
9247   esac
9248   ;;
9249
9250 sysv4*MP*)
9251   if test -d /usr/nec ;then
9252     version_type=linux
9253     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9254     soname_spec='$libname${shared_ext}.$major'
9255     shlibpath_var=LD_LIBRARY_PATH
9256   fi
9257   ;;
9258
9259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9260   version_type=freebsd-elf
9261   need_lib_prefix=no
9262   need_version=no
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9264   soname_spec='${libname}${release}${shared_ext}$major'
9265   shlibpath_var=LD_LIBRARY_PATH
9266   hardcode_into_libs=yes
9267   if test "$with_gnu_ld" = yes; then
9268     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9269     shlibpath_overrides_runpath=no
9270   else
9271     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9272     shlibpath_overrides_runpath=yes
9273     case $host_os in
9274       sco3.2v5*)
9275         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9276         ;;
9277     esac
9278   fi
9279   sys_lib_dlsearch_path_spec='/usr/lib'
9280   ;;
9281
9282 uts4*)
9283   version_type=linux
9284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285   soname_spec='${libname}${release}${shared_ext}$major'
9286   shlibpath_var=LD_LIBRARY_PATH
9287   ;;
9288
9289 *)
9290   dynamic_linker=no
9291   ;;
9292 esac
9293 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9294 echo "${ECHO_T}$dynamic_linker" >&6; }
9295 test "$dynamic_linker" = no && can_build_shared=no
9296
9297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9298 if test "$GCC" = yes; then
9299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9300 fi
9301
9302
9303 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9304 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9305 if test "${libltdl_cv_shlibext+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308
9309 module=yes
9310 eval libltdl_cv_shlibext=$shrext_cmds
9311
9312 fi
9313 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9314 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9315 if test -n "$libltdl_cv_shlibext"; then
9316
9317 cat >>confdefs.h <<_ACEOF
9318 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9319 _ACEOF
9320
9321 fi
9322
9323
9324 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9325 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9326 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   libltdl_cv_shlibpath_var="$shlibpath_var"
9330 fi
9331 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9332 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9333 if test -n "$libltdl_cv_shlibpath_var"; then
9334
9335 cat >>confdefs.h <<_ACEOF
9336 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9337 _ACEOF
9338
9339 fi
9340
9341
9342 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9343 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9344 if test "${libltdl_cv_sys_search_path+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9348 fi
9349 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9350 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9351 if test -n "$libltdl_cv_sys_search_path"; then
9352   sys_search_path=
9353   for dir in $libltdl_cv_sys_search_path; do
9354     if test -z "$sys_search_path"; then
9355       sys_search_path="$dir"
9356     else
9357       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9358     fi
9359   done
9360
9361 cat >>confdefs.h <<_ACEOF
9362 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9363 _ACEOF
9364
9365 fi
9366
9367 { echo "$as_me:$LINENO: checking for objdir" >&5
9368 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9369 if test "${libltdl_cv_objdir+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   libltdl_cv_objdir="$objdir"
9373   if test -n "$objdir"; then
9374     :
9375   else
9376     rm -f .libs 2>/dev/null
9377     mkdir .libs 2>/dev/null
9378     if test -d .libs; then
9379       libltdl_cv_objdir=.libs
9380     else
9381       # MS-DOS does not allow filenames that begin with a dot.
9382       libltdl_cv_objdir=_libs
9383     fi
9384   rmdir .libs 2>/dev/null
9385   fi
9386
9387 fi
9388 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9389 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9390
9391 cat >>confdefs.h <<_ACEOF
9392 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9393 _ACEOF
9394
9395
9396
9397
9398
9399
9400 # Check for command to grab the raw symbol name followed by C symbol from nm.
9401 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9402 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9403 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9404   echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406
9407 # These are sane defaults that work on at least a few old systems.
9408 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9409
9410 # Character class describing NM global symbol codes.
9411 symcode='[BCDEGRST]'
9412
9413 # Regexp to match symbols that can be accessed directly from C.
9414 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9415
9416 # Transform an extracted symbol line into a proper C declaration
9417 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9418
9419 # Transform an extracted symbol line into symbol name and symbol address
9420 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'"
9421
9422 # Define system-specific variables.
9423 case $host_os in
9424 aix*)
9425   symcode='[BCDT]'
9426   ;;
9427 cygwin* | mingw* | pw32*)
9428   symcode='[ABCDGISTW]'
9429   ;;
9430 hpux*) # Its linker distinguishes data from code symbols
9431   if test "$host_cpu" = ia64; then
9432     symcode='[ABCDEGRST]'
9433   fi
9434   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9435   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'"
9436   ;;
9437 linux*)
9438   if test "$host_cpu" = ia64; then
9439     symcode='[ABCDGIRSTW]'
9440     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9441     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'"
9442   fi
9443   ;;
9444 irix* | nonstopux*)
9445   symcode='[BCDEGRST]'
9446   ;;
9447 osf*)
9448   symcode='[BCDEGQRST]'
9449   ;;
9450 solaris*)
9451   symcode='[BDRT]'
9452   ;;
9453 sco3.2v5*)
9454   symcode='[DT]'
9455   ;;
9456 sysv4.2uw2*)
9457   symcode='[DT]'
9458   ;;
9459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9460   symcode='[ABDT]'
9461   ;;
9462 sysv4)
9463   symcode='[DFNSTU]'
9464   ;;
9465 esac
9466
9467 # Handle CRLF in mingw tool chain
9468 opt_cr=
9469 case $build_os in
9470 mingw*)
9471   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9472   ;;
9473 esac
9474
9475 # If we're using GNU nm, then use its standard symbol codes.
9476 case `$NM -V 2>&1` in
9477 *GNU* | *'with BFD'*)
9478   symcode='[ABCDGIRSTW]' ;;
9479 esac
9480
9481 # Try without a prefix undercore, then with it.
9482 for ac_symprfx in "" "_"; do
9483
9484   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9485   symxfrm="\\1 $ac_symprfx\\2 \\2"
9486
9487   # Write the raw and C identifiers.
9488   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9489
9490   # Check to see that the pipe works correctly.
9491   pipe_works=no
9492
9493   rm -f conftest*
9494   cat > conftest.$ac_ext <<EOF
9495 #ifdef __cplusplus
9496 extern "C" {
9497 #endif
9498 char nm_test_var;
9499 void nm_test_func(){}
9500 #ifdef __cplusplus
9501 }
9502 #endif
9503 int main(){nm_test_var='a';nm_test_func();return(0);}
9504 EOF
9505
9506   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507   (eval $ac_compile) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; then
9511     # Now try to grab the symbols.
9512     nlist=conftest.nm
9513     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9514   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && test -s "$nlist"; then
9518       # Try sorting and uniquifying the output.
9519       if sort "$nlist" | uniq > "$nlist"T; then
9520         mv -f "$nlist"T "$nlist"
9521       else
9522         rm -f "$nlist"T
9523       fi
9524
9525       # Make sure that we snagged all the symbols we need.
9526       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9527         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9528           cat <<EOF > conftest.$ac_ext
9529 #ifdef __cplusplus
9530 extern "C" {
9531 #endif
9532
9533 EOF
9534           # Now generate the symbol file.
9535           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9536
9537           cat <<EOF >> conftest.$ac_ext
9538 #if defined (__STDC__) && __STDC__
9539 # define lt_ptr_t void *
9540 #else
9541 # define lt_ptr_t char *
9542 # define const
9543 #endif
9544
9545 /* The mapping between symbol names and symbols. */
9546 const struct {
9547   const char *name;
9548   lt_ptr_t address;
9549 }
9550 lt_preloaded_symbols[] =
9551 {
9552 EOF
9553           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9554           cat <<\EOF >> conftest.$ac_ext
9555   {0, (lt_ptr_t) 0}
9556 };
9557
9558 #ifdef __cplusplus
9559 }
9560 #endif
9561 EOF
9562           # Now try linking the two files.
9563           mv conftest.$ac_objext conftstm.$ac_objext
9564           lt_save_LIBS="$LIBS"
9565           lt_save_CFLAGS="$CFLAGS"
9566           LIBS="conftstm.$ac_objext"
9567           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9568           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569   (eval $ac_link) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9573             pipe_works=yes
9574           fi
9575           LIBS="$lt_save_LIBS"
9576           CFLAGS="$lt_save_CFLAGS"
9577         else
9578           echo "cannot find nm_test_func in $nlist" >&5
9579         fi
9580       else
9581         echo "cannot find nm_test_var in $nlist" >&5
9582       fi
9583     else
9584       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9585     fi
9586   else
9587     echo "$progname: failed program was:" >&5
9588     cat conftest.$ac_ext >&5
9589   fi
9590   rm -f conftest* conftst*
9591
9592   # Do not use the global_symbol_pipe unless it works.
9593   if test "$pipe_works" = yes; then
9594     break
9595   else
9596     lt_cv_sys_global_symbol_pipe=
9597   fi
9598 done
9599
9600 fi
9601
9602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9603   lt_cv_sys_global_symbol_to_cdecl=
9604 fi
9605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9606   { echo "$as_me:$LINENO: result: failed" >&5
9607 echo "${ECHO_T}failed" >&6; }
9608 else
9609   { echo "$as_me:$LINENO: result: ok" >&5
9610 echo "${ECHO_T}ok" >&6; }
9611 fi
9612
9613
9614 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9615 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9616 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9620     libltdl_cv_preloaded_symbols=yes
9621   else
9622     libltdl_cv_preloaded_symbols=no
9623   fi
9624
9625 fi
9626 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9627 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9628 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9629
9630 cat >>confdefs.h <<\_ACEOF
9631 #define HAVE_PRELOADED_SYMBOLS 1
9632 _ACEOF
9633
9634 fi
9635
9636 LIBADD_DL=
9637
9638 ac_ext=c
9639 ac_cpp='$CPP $CPPFLAGS'
9640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9643
9644
9645 { echo "$as_me:$LINENO: checking for shl_load" >&5
9646 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9647 if test "${ac_cv_func_shl_load+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9658 #define shl_load innocuous_shl_load
9659
9660 /* System header to define __stub macros and hopefully few prototypes,
9661     which can conflict with char shl_load (); below.
9662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663     <limits.h> exists even on freestanding compilers.  */
9664
9665 #ifdef __STDC__
9666 # include <limits.h>
9667 #else
9668 # include <assert.h>
9669 #endif
9670
9671 #undef shl_load
9672
9673 /* Override any GCC internal prototype to avoid an error.
9674    Use char because int might match the return type of a GCC
9675    builtin and then its argument prototype would still apply.  */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 char shl_load ();
9680 /* The GNU C library defines this for functions which it implements
9681     to always fail with ENOSYS.  Some functions are actually named
9682     something starting with __ and the normal name is an alias.  */
9683 #if defined __stub_shl_load || defined __stub___shl_load
9684 choke me
9685 #endif
9686
9687 int
9688 main ()
9689 {
9690 return shl_load ();
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9697 case "(($ac_try" in
9698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699   *) ac_try_echo=$ac_try;;
9700 esac
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702   (eval "$ac_link") 2>conftest.er1
9703   ac_status=$?
9704   grep -v '^ *+' conftest.er1 >conftest.err
9705   rm -f conftest.er1
9706   cat conftest.err >&5
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } &&
9709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9710   { (case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715   (eval "$ac_try") 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; } &&
9719          { ac_try='test -s conftest$ac_exeext'
9720   { (case "(($ac_try" in
9721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722   *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725   (eval "$ac_try") 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; }; then
9729   ac_cv_func_shl_load=yes
9730 else
9731   echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734         ac_cv_func_shl_load=no
9735 fi
9736
9737 rm -f core conftest.err conftest.$ac_objext \
9738       conftest$ac_exeext conftest.$ac_ext
9739 fi
9740 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9741 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9742 if test $ac_cv_func_shl_load = yes; then
9743
9744 cat >>confdefs.h <<\_ACEOF
9745 #define HAVE_SHL_LOAD 1
9746 _ACEOF
9747
9748 else
9749   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9750 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   ac_check_lib_save_LIBS=$LIBS
9755 LIBS="-ldld  $LIBS"
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h.  */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h.  */
9762
9763 /* Override any GCC internal prototype to avoid an error.
9764    Use char because int might match the return type of a GCC
9765    builtin and then its argument prototype would still apply.  */
9766 #ifdef __cplusplus
9767 extern "C"
9768 #endif
9769 char shl_load ();
9770 int
9771 main ()
9772 {
9773 return shl_load ();
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9780 case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_link") 2>conftest.er1
9786   ac_status=$?
9787   grep -v '^ *+' conftest.er1 >conftest.err
9788   rm -f conftest.er1
9789   cat conftest.err >&5
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793   { (case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_try") 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; } &&
9802          { ac_try='test -s conftest$ac_exeext'
9803   { (case "(($ac_try" in
9804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805   *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808   (eval "$ac_try") 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812   ac_cv_lib_dld_shl_load=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         ac_cv_lib_dld_shl_load=no
9818 fi
9819
9820 rm -f core conftest.err conftest.$ac_objext \
9821       conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9823 fi
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9826 if test $ac_cv_lib_dld_shl_load = yes; then
9827
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_SHL_LOAD 1
9830 _ACEOF
9831
9832         LIBADD_DL="$LIBADD_DL -ldld"
9833 else
9834   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-ldl  $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847
9848 /* Override any GCC internal prototype to avoid an error.
9849    Use char because int might match the return type of a GCC
9850    builtin and then its argument prototype would still apply.  */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char dlopen ();
9855 int
9856 main ()
9857 {
9858 return dlopen ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_link") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; } &&
9887          { ac_try='test -s conftest$ac_exeext'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897   ac_cv_lib_dl_dlopen=yes
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902         ac_cv_lib_dl_dlopen=no
9903 fi
9904
9905 rm -f core conftest.err conftest.$ac_objext \
9906       conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9908 fi
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9910 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9911 if test $ac_cv_lib_dl_dlopen = yes; then
9912
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_LIBDL 1
9915 _ACEOF
9916
9917                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9918 else
9919   cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h.  */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h.  */
9925 #if HAVE_DLFCN_H
9926 #  include <dlfcn.h>
9927 #endif
9928
9929 int
9930 main ()
9931 {
9932 dlopen(0, 0);
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_link") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } &&
9951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9952   { (case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_try") 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; } &&
9961          { ac_try='test -s conftest$ac_exeext'
9962   { (case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_try") 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971
9972 cat >>confdefs.h <<\_ACEOF
9973 #define HAVE_LIBDL 1
9974 _ACEOF
9975  libltdl_cv_func_dlopen="yes"
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9981 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   ac_check_lib_save_LIBS=$LIBS
9986 LIBS="-lsvld  $LIBS"
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993
9994 /* Override any GCC internal prototype to avoid an error.
9995    Use char because int might match the return type of a GCC
9996    builtin and then its argument prototype would still apply.  */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char dlopen ();
10001 int
10002 main ()
10003 {
10004 return dlopen ();
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013   *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016   (eval "$ac_link") 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024   { (case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_try") 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033          { ac_try='test -s conftest$ac_exeext'
10034   { (case "(($ac_try" in
10035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036   *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039   (eval "$ac_try") 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; }; then
10043   ac_cv_lib_svld_dlopen=yes
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048         ac_cv_lib_svld_dlopen=no
10049 fi
10050
10051 rm -f core conftest.err conftest.$ac_objext \
10052       conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10054 fi
10055 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10057 if test $ac_cv_lib_svld_dlopen = yes; then
10058
10059 cat >>confdefs.h <<\_ACEOF
10060 #define HAVE_LIBDL 1
10061 _ACEOF
10062
10063                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10064 else
10065   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10066 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-ldld  $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078
10079 /* Override any GCC internal prototype to avoid an error.
10080    Use char because int might match the return type of a GCC
10081    builtin and then its argument prototype would still apply.  */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char dld_link ();
10086 int
10087 main ()
10088 {
10089 return dld_link ();
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_link") 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } &&
10108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109   { (case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114   (eval "$ac_try") 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; } &&
10118          { ac_try='test -s conftest$ac_exeext'
10119   { (case "(($ac_try" in
10120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121   *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124   (eval "$ac_try") 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_cv_lib_dld_dld_link=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133         ac_cv_lib_dld_dld_link=no
10134 fi
10135
10136 rm -f core conftest.err conftest.$ac_objext \
10137       conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10141 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10142 if test $ac_cv_lib_dld_dld_link = yes; then
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_DLD 1
10146 _ACEOF
10147
10148                 LIBADD_DL="$LIBADD_DL -ldld"
10149 else
10150   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10151 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10152 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10161 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10163 #define _dyld_func_lookup innocuous__dyld_func_lookup
10164
10165 /* System header to define __stub macros and hopefully few prototypes,
10166     which can conflict with char _dyld_func_lookup (); below.
10167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168     <limits.h> exists even on freestanding compilers.  */
10169
10170 #ifdef __STDC__
10171 # include <limits.h>
10172 #else
10173 # include <assert.h>
10174 #endif
10175
10176 #undef _dyld_func_lookup
10177
10178 /* Override any GCC internal prototype to avoid an error.
10179    Use char because int might match the return type of a GCC
10180    builtin and then its argument prototype would still apply.  */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char _dyld_func_lookup ();
10185 /* The GNU C library defines this for functions which it implements
10186     to always fail with ENOSYS.  Some functions are actually named
10187     something starting with __ and the normal name is an alias.  */
10188 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10189 choke me
10190 #endif
10191
10192 int
10193 main ()
10194 {
10195 return _dyld_func_lookup ();
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207   (eval "$ac_link") 2>conftest.er1
10208   ac_status=$?
10209   grep -v '^ *+' conftest.er1 >conftest.err
10210   rm -f conftest.er1
10211   cat conftest.err >&5
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } &&
10214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10215   { (case "(($ac_try" in
10216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217   *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220   (eval "$ac_try") 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; } &&
10224          { ac_try='test -s conftest$ac_exeext'
10225   { (case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230   (eval "$ac_try") 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); }; }; then
10234   ac_cv_func__dyld_func_lookup=yes
10235 else
10236   echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239         ac_cv_func__dyld_func_lookup=no
10240 fi
10241
10242 rm -f core conftest.err conftest.$ac_objext \
10243       conftest$ac_exeext conftest.$ac_ext
10244 fi
10245 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10246 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10247 if test $ac_cv_func__dyld_func_lookup = yes; then
10248
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_DYLD 1
10251 _ACEOF
10252
10253 fi
10254
10255
10256 fi
10257
10258
10259 fi
10260
10261
10262 fi
10263
10264 rm -f core conftest.err conftest.$ac_objext \
10265       conftest$ac_exeext conftest.$ac_ext
10266
10267 fi
10268
10269
10270 fi
10271
10272
10273 fi
10274
10275
10276 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10277 then
10278   lt_save_LIBS="$LIBS"
10279   LIBS="$LIBS $LIBADD_DL"
10280
10281 for ac_func in dlerror
10282 do
10283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10297 #define $ac_func innocuous_$ac_func
10298
10299 /* System header to define __stub macros and hopefully few prototypes,
10300     which can conflict with char $ac_func (); below.
10301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10302     <limits.h> exists even on freestanding compilers.  */
10303
10304 #ifdef __STDC__
10305 # include <limits.h>
10306 #else
10307 # include <assert.h>
10308 #endif
10309
10310 #undef $ac_func
10311
10312 /* Override any GCC internal prototype to avoid an error.
10313    Use char because int might match the return type of a GCC
10314    builtin and then its argument prototype would still apply.  */
10315 #ifdef __cplusplus
10316 extern "C"
10317 #endif
10318 char $ac_func ();
10319 /* The GNU C library defines this for functions which it implements
10320     to always fail with ENOSYS.  Some functions are actually named
10321     something starting with __ and the normal name is an alias.  */
10322 #if defined __stub_$ac_func || defined __stub___$ac_func
10323 choke me
10324 #endif
10325
10326 int
10327 main ()
10328 {
10329 return $ac_func ();
10330   ;
10331   return 0;
10332 }
10333 _ACEOF
10334 rm -f conftest.$ac_objext conftest$ac_exeext
10335 if { (ac_try="$ac_link"
10336 case "(($ac_try" in
10337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338   *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341   (eval "$ac_link") 2>conftest.er1
10342   ac_status=$?
10343   grep -v '^ *+' conftest.er1 >conftest.err
10344   rm -f conftest.er1
10345   cat conftest.err >&5
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10349   { (case "(($ac_try" in
10350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351   *) ac_try_echo=$ac_try;;
10352 esac
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354   (eval "$ac_try") 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest$ac_exeext'
10359   { (case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_try") 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   eval "$as_ac_var=yes"
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373         eval "$as_ac_var=no"
10374 fi
10375
10376 rm -f core conftest.err conftest.$ac_objext \
10377       conftest$ac_exeext conftest.$ac_ext
10378 fi
10379 ac_res=`eval echo '${'$as_ac_var'}'`
10380                { echo "$as_me:$LINENO: result: $ac_res" >&5
10381 echo "${ECHO_T}$ac_res" >&6; }
10382 if test `eval echo '${'$as_ac_var'}'` = yes; then
10383   cat >>confdefs.h <<_ACEOF
10384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10385 _ACEOF
10386
10387 fi
10388 done
10389
10390   LIBS="$lt_save_LIBS"
10391 fi
10392 ac_ext=c
10393 ac_cpp='$CPP $CPPFLAGS'
10394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10397
10398
10399
10400 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10401 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10402 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   ac_cv_sys_symbol_underscore=no
10406   cat > conftest.$ac_ext <<EOF
10407 void nm_test_func(){}
10408 int main(){nm_test_func;return 0;}
10409 EOF
10410   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411   (eval $ac_compile) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); }; then
10415     # Now try to grab the symbols.
10416     ac_nlist=conftest.nm
10417     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10418   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } && test -s "$ac_nlist"; then
10422       # See whether the symbols have a leading underscore.
10423       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10424         ac_cv_sys_symbol_underscore=yes
10425       else
10426         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10427           :
10428         else
10429           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10430         fi
10431       fi
10432     else
10433       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10434     fi
10435   else
10436     echo "configure: failed program was:" >&5
10437     cat conftest.c >&5
10438   fi
10439   rm -rf conftest*
10440
10441 fi
10442 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10443 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10444
10445
10446 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10447   if test x"$libltdl_cv_func_dlopen" = xyes ||
10448      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10449         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10450 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10451 if test "${libltdl_cv_need_uscore+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   libltdl_cv_need_uscore=unknown
10455           save_LIBS="$LIBS"
10456           LIBS="$LIBS $LIBADD_DL"
10457           if test "$cross_compiling" = yes; then :
10458   libltdl_cv_need_uscore=cross
10459 else
10460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10461   lt_status=$lt_dlunknown
10462   cat > conftest.$ac_ext <<EOF
10463 #line 10463 "configure"
10464 #include "confdefs.h"
10465
10466 #if HAVE_DLFCN_H
10467 #include <dlfcn.h>
10468 #endif
10469
10470 #include <stdio.h>
10471
10472 #ifdef RTLD_GLOBAL
10473 #  define LT_DLGLOBAL           RTLD_GLOBAL
10474 #else
10475 #  ifdef DL_GLOBAL
10476 #    define LT_DLGLOBAL         DL_GLOBAL
10477 #  else
10478 #    define LT_DLGLOBAL         0
10479 #  endif
10480 #endif
10481
10482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10483    find out it does not work in some platform. */
10484 #ifndef LT_DLLAZY_OR_NOW
10485 #  ifdef RTLD_LAZY
10486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10487 #  else
10488 #    ifdef DL_LAZY
10489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10490 #    else
10491 #      ifdef RTLD_NOW
10492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10493 #      else
10494 #        ifdef DL_NOW
10495 #          define LT_DLLAZY_OR_NOW      DL_NOW
10496 #        else
10497 #          define LT_DLLAZY_OR_NOW      0
10498 #        endif
10499 #      endif
10500 #    endif
10501 #  endif
10502 #endif
10503
10504 #ifdef __cplusplus
10505 extern "C" void exit (int);
10506 #endif
10507
10508 void fnord() { int i=42;}
10509 int main ()
10510 {
10511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10512   int status = $lt_dlunknown;
10513
10514   if (self)
10515     {
10516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10517       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10518       /* dlclose (self); */
10519     }
10520   else
10521     puts (dlerror ());
10522
10523     exit (status);
10524 }
10525 EOF
10526   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527   (eval $ac_link) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10531     (./conftest; exit; ) >&5 2>/dev/null
10532     lt_status=$?
10533     case x$lt_status in
10534       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10535       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10536       x$lt_dlunknown|x*)  ;;
10537     esac
10538   else :
10539     # compilation failed
10540
10541   fi
10542 fi
10543 rm -fr conftest*
10544
10545           LIBS="$save_LIBS"
10546
10547 fi
10548 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10549 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10550   fi
10551 fi
10552
10553 if test x"$libltdl_cv_need_uscore" = xyes; then
10554
10555 cat >>confdefs.h <<\_ACEOF
10556 #define NEED_USCORE 1
10557 _ACEOF
10558
10559 fi
10560
10561
10562 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10563 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10564 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567   # PORTME does your system automatically load deplibs for dlopen?
10568   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10569   # For now, we just catch OSes we know something about -- in the
10570   # future, we'll try test this programmatically.
10571   libltdl_cv_sys_dlopen_deplibs=unknown
10572   case "$host_os" in
10573   aix3*|aix4.1.*|aix4.2.*)
10574     # Unknown whether this is true for these versions of AIX, but
10575     # we want this `case' here to explicitly catch those versions.
10576     libltdl_cv_sys_dlopen_deplibs=unknown
10577     ;;
10578   aix[45]*)
10579     libltdl_cv_sys_dlopen_deplibs=yes
10580     ;;
10581   darwin*)
10582     # Assuming the user has installed a libdl from somewhere, this is true
10583     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10584     libltdl_cv_sys_dlopen_deplibs=yes
10585     ;;
10586   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10587     # GNU and its variants, using gnu ld.so (Glibc)
10588     libltdl_cv_sys_dlopen_deplibs=yes
10589     ;;
10590   hpux10*|hpux11*)
10591     libltdl_cv_sys_dlopen_deplibs=yes
10592     ;;
10593   interix*)
10594     libltdl_cv_sys_dlopen_deplibs=yes
10595     ;;
10596   irix[12345]*|irix6.[01]*)
10597     # Catch all versions of IRIX before 6.2, and indicate that we don't
10598     # know how it worked for any of those versions.
10599     libltdl_cv_sys_dlopen_deplibs=unknown
10600     ;;
10601   irix*)
10602     # The case above catches anything before 6.2, and it's known that
10603     # at 6.2 and later dlopen does load deplibs.
10604     libltdl_cv_sys_dlopen_deplibs=yes
10605     ;;
10606   netbsd*)
10607     libltdl_cv_sys_dlopen_deplibs=yes
10608     ;;
10609   openbsd*)
10610     libltdl_cv_sys_dlopen_deplibs=yes
10611     ;;
10612   osf[1234]*)
10613     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10614     # it did *not* use an RPATH in a shared library to find objects the
10615     # library depends on, so we explicitly say `no'.
10616     libltdl_cv_sys_dlopen_deplibs=no
10617     ;;
10618   osf5.0|osf5.0a|osf5.1)
10619     # dlopen *does* load deplibs and with the right loader patch applied
10620     # it even uses RPATH in a shared library to search for shared objects
10621     # that the library depends on, but there's no easy way to know if that
10622     # patch is installed.  Since this is the case, all we can really
10623     # say is unknown -- it depends on the patch being installed.  If
10624     # it is, this changes to `yes'.  Without it, it would be `no'.
10625     libltdl_cv_sys_dlopen_deplibs=unknown
10626     ;;
10627   osf*)
10628     # the two cases above should catch all versions of osf <= 5.1.  Read
10629     # the comments above for what we know about them.
10630     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10631     # is used to find them so we can finally say `yes'.
10632     libltdl_cv_sys_dlopen_deplibs=yes
10633     ;;
10634   solaris*)
10635     libltdl_cv_sys_dlopen_deplibs=yes
10636     ;;
10637   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10638     libltdl_cv_sys_dlopen_deplibs=yes
10639     ;;
10640   esac
10641
10642 fi
10643 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10644 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10645 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10646
10647 cat >>confdefs.h <<\_ACEOF
10648 #define LTDL_DLOPEN_DEPLIBS 1
10649 _ACEOF
10650
10651 fi
10652
10653
10654 for ac_header in argz.h
10655 do
10656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 fi
10663 ac_res=`eval echo '${'$as_ac_Header'}'`
10664                { echo "$as_me:$LINENO: result: $ac_res" >&5
10665 echo "${ECHO_T}$ac_res" >&6; }
10666 else
10667   # Is the header compilable?
10668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676 $ac_includes_default
10677 #include <$ac_header>
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (ac_try="$ac_compile"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_compile") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } &&
10693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10694   { (case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_try") 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; } &&
10703          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; }; then
10713   ac_header_compiler=yes
10714 else
10715   echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718         ac_header_compiler=no
10719 fi
10720
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6; }
10724
10725 # Is the header present?
10726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 #include <$ac_header>
10735 _ACEOF
10736 if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 case "(($ac_try" in
10738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739   *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743   ac_status=$?
10744   grep -v '^ *+' conftest.er1 >conftest.err
10745   rm -f conftest.er1
10746   cat conftest.err >&5
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); } >/dev/null; then
10749   if test -s conftest.err; then
10750     ac_cpp_err=$ac_c_preproc_warn_flag
10751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10752   else
10753     ac_cpp_err=
10754   fi
10755 else
10756   ac_cpp_err=yes
10757 fi
10758 if test -z "$ac_cpp_err"; then
10759   ac_header_preproc=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764   ac_header_preproc=no
10765 fi
10766
10767 rm -f conftest.err conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6; }
10770
10771 # So?  What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10773   yes:no: )
10774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778     ac_header_preproc=yes
10779     ;;
10780   no:yes:* )
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10793     ( cat <<\_ASBOX
10794 ## ----------------------------------- ##
10795 ## Report this to llvmbugs@cs.uiuc.edu ##
10796 ## ----------------------------------- ##
10797 _ASBOX
10798      ) | sed "s/^/$as_me: WARNING:     /" >&2
10799     ;;
10800 esac
10801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804   echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806   eval "$as_ac_Header=\$ac_header_preproc"
10807 fi
10808 ac_res=`eval echo '${'$as_ac_Header'}'`
10809                { echo "$as_me:$LINENO: result: $ac_res" >&5
10810 echo "${ECHO_T}$ac_res" >&6; }
10811
10812 fi
10813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10814   cat >>confdefs.h <<_ACEOF
10815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816 _ACEOF
10817
10818 fi
10819
10820 done
10821
10822
10823 { echo "$as_me:$LINENO: checking for error_t" >&5
10824 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10825 if test "${ac_cv_type_error_t+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834 #if HAVE_ARGZ_H
10835 #  include <argz.h>
10836 #endif
10837
10838 typedef error_t ac__type_new_;
10839 int
10840 main ()
10841 {
10842 if ((ac__type_new_ *) 0)
10843   return 0;
10844 if (sizeof (ac__type_new_))
10845   return 0;
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_compile") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; } &&
10874          { ac_try='test -s conftest.$ac_objext'
10875   { (case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_try") 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; }; then
10884   ac_cv_type_error_t=yes
10885 else
10886   echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889         ac_cv_type_error_t=no
10890 fi
10891
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 fi
10894 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10895 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10896 if test $ac_cv_type_error_t = yes; then
10897
10898 cat >>confdefs.h <<_ACEOF
10899 #define HAVE_ERROR_T 1
10900 _ACEOF
10901
10902
10903 else
10904
10905 cat >>confdefs.h <<\_ACEOF
10906 #define error_t int
10907 _ACEOF
10908
10909 fi
10910
10911
10912
10913
10914
10915
10916
10917 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10918 do
10919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925   cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10933 #define $ac_func innocuous_$ac_func
10934
10935 /* System header to define __stub macros and hopefully few prototypes,
10936     which can conflict with char $ac_func (); below.
10937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10938     <limits.h> exists even on freestanding compilers.  */
10939
10940 #ifdef __STDC__
10941 # include <limits.h>
10942 #else
10943 # include <assert.h>
10944 #endif
10945
10946 #undef $ac_func
10947
10948 /* Override any GCC internal prototype to avoid an error.
10949    Use char because int might match the return type of a GCC
10950    builtin and then its argument prototype would still apply.  */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 char $ac_func ();
10955 /* The GNU C library defines this for functions which it implements
10956     to always fail with ENOSYS.  Some functions are actually named
10957     something starting with __ and the normal name is an alias.  */
10958 #if defined __stub_$ac_func || defined __stub___$ac_func
10959 choke me
10960 #endif
10961
10962 int
10963 main ()
10964 {
10965 return $ac_func ();
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_link") 2>conftest.er1
10978   ac_status=$?
10979   grep -v '^ *+' conftest.er1 >conftest.err
10980   rm -f conftest.er1
10981   cat conftest.err >&5
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } &&
10984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985   { (case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_try") 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; } &&
10994          { ac_try='test -s conftest$ac_exeext'
10995   { (case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_try") 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; }; then
11004   eval "$as_ac_var=yes"
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009         eval "$as_ac_var=no"
11010 fi
11011
11012 rm -f core conftest.err conftest.$ac_objext \
11013       conftest$ac_exeext conftest.$ac_ext
11014 fi
11015 ac_res=`eval echo '${'$as_ac_var'}'`
11016                { echo "$as_me:$LINENO: result: $ac_res" >&5
11017 echo "${ECHO_T}$ac_res" >&6; }
11018 if test `eval echo '${'$as_ac_var'}'` = yes; then
11019   cat >>confdefs.h <<_ACEOF
11020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11021 _ACEOF
11022
11023 fi
11024 done
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11054                   stdio.h unistd.h
11055 do
11056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 fi
11063 ac_res=`eval echo '${'$as_ac_Header'}'`
11064                { echo "$as_me:$LINENO: result: $ac_res" >&5
11065 echo "${ECHO_T}$ac_res" >&6; }
11066 else
11067   # Is the header compilable?
11068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 $ac_includes_default
11077 #include <$ac_header>
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086   (eval "$ac_compile") 2>conftest.er1
11087   ac_status=$?
11088   grep -v '^ *+' conftest.er1 >conftest.err
11089   rm -f conftest.er1
11090   cat conftest.err >&5
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); } &&
11093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11094   { (case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_try") 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; } &&
11103          { ac_try='test -s conftest.$ac_objext'
11104   { (case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109   (eval "$ac_try") 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; }; then
11113   ac_header_compiler=yes
11114 else
11115   echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118         ac_header_compiler=no
11119 fi
11120
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123 echo "${ECHO_T}$ac_header_compiler" >&6; }
11124
11125 # Is the header present?
11126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11128 cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134 #include <$ac_header>
11135 _ACEOF
11136 if { (ac_try="$ac_cpp conftest.$ac_ext"
11137 case "(($ac_try" in
11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139   *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } >/dev/null; then
11149   if test -s conftest.err; then
11150     ac_cpp_err=$ac_c_preproc_warn_flag
11151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11152   else
11153     ac_cpp_err=
11154   fi
11155 else
11156   ac_cpp_err=yes
11157 fi
11158 if test -z "$ac_cpp_err"; then
11159   ac_header_preproc=yes
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164   ac_header_preproc=no
11165 fi
11166
11167 rm -f conftest.err conftest.$ac_ext
11168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11169 echo "${ECHO_T}$ac_header_preproc" >&6; }
11170
11171 # So?  What about this header?
11172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11173   yes:no: )
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11178     ac_header_preproc=yes
11179     ;;
11180   no:yes:* )
11181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11193     ( cat <<\_ASBOX
11194 ## ----------------------------------- ##
11195 ## Report this to llvmbugs@cs.uiuc.edu ##
11196 ## ----------------------------------- ##
11197 _ASBOX
11198      ) | sed "s/^/$as_me: WARNING:     /" >&2
11199     ;;
11200 esac
11201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206   eval "$as_ac_Header=\$ac_header_preproc"
11207 fi
11208 ac_res=`eval echo '${'$as_ac_Header'}'`
11209                { echo "$as_me:$LINENO: result: $ac_res" >&5
11210 echo "${ECHO_T}$ac_res" >&6; }
11211
11212 fi
11213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11214   cat >>confdefs.h <<_ACEOF
11215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11216 _ACEOF
11217
11218 fi
11219
11220 done
11221
11222
11223
11224
11225
11226 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11227 do
11228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 fi
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236                { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11238 else
11239   # Is the header compilable?
11240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 $ac_includes_default
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_compile") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266   { (case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_try") 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; } &&
11275          { ac_try='test -s conftest.$ac_objext'
11276   { (case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_try") 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_header_compiler=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290         ac_header_compiler=no
11291 fi
11292
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295 echo "${ECHO_T}$ac_header_compiler" >&6; }
11296
11297 # Is the header present?
11298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306 #include <$ac_header>
11307 _ACEOF
11308 if { (ac_try="$ac_cpp conftest.$ac_ext"
11309 case "(($ac_try" in
11310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311   *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315   ac_status=$?
11316   grep -v '^ *+' conftest.er1 >conftest.err
11317   rm -f conftest.er1
11318   cat conftest.err >&5
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } >/dev/null; then
11321   if test -s conftest.err; then
11322     ac_cpp_err=$ac_c_preproc_warn_flag
11323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11324   else
11325     ac_cpp_err=
11326   fi
11327 else
11328   ac_cpp_err=yes
11329 fi
11330 if test -z "$ac_cpp_err"; then
11331   ac_header_preproc=yes
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11335
11336   ac_header_preproc=no
11337 fi
11338
11339 rm -f conftest.err conftest.$ac_ext
11340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341 echo "${ECHO_T}$ac_header_preproc" >&6; }
11342
11343 # So?  What about this header?
11344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345   yes:no: )
11346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350     ac_header_preproc=yes
11351     ;;
11352   no:yes:* )
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11365     ( cat <<\_ASBOX
11366 ## ----------------------------------- ##
11367 ## Report this to llvmbugs@cs.uiuc.edu ##
11368 ## ----------------------------------- ##
11369 _ASBOX
11370      ) | sed "s/^/$as_me: WARNING:     /" >&2
11371     ;;
11372 esac
11373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   eval "$as_ac_Header=\$ac_header_preproc"
11379 fi
11380 ac_res=`eval echo '${'$as_ac_Header'}'`
11381                { echo "$as_me:$LINENO: result: $ac_res" >&5
11382 echo "${ECHO_T}$ac_res" >&6; }
11383
11384 fi
11385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11386   cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11388 _ACEOF
11389
11390 fi
11391
11392 done
11393
11394
11395
11396 for ac_header in string.h strings.h
11397 do
11398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 fi
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406                { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11408 else
11409   # Is the header compilable?
11410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h.  */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h.  */
11418 $ac_includes_default
11419 #include <$ac_header>
11420 _ACEOF
11421 rm -f conftest.$ac_objext
11422 if { (ac_try="$ac_compile"
11423 case "(($ac_try" in
11424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425   *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428   (eval "$ac_compile") 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436   { (case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_try") 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; } &&
11445          { ac_try='test -s conftest.$ac_objext'
11446   { (case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451   (eval "$ac_try") 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; }; then
11455   ac_header_compiler=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460         ac_header_compiler=no
11461 fi
11462
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465 echo "${ECHO_T}$ac_header_compiler" >&6; }
11466
11467 # Is the header present?
11468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476 #include <$ac_header>
11477 _ACEOF
11478 if { (ac_try="$ac_cpp conftest.$ac_ext"
11479 case "(($ac_try" in
11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481   *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } >/dev/null; then
11491   if test -s conftest.err; then
11492     ac_cpp_err=$ac_c_preproc_warn_flag
11493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11494   else
11495     ac_cpp_err=
11496   fi
11497 else
11498   ac_cpp_err=yes
11499 fi
11500 if test -z "$ac_cpp_err"; then
11501   ac_header_preproc=yes
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506   ac_header_preproc=no
11507 fi
11508
11509 rm -f conftest.err conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511 echo "${ECHO_T}$ac_header_preproc" >&6; }
11512
11513 # So?  What about this header?
11514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11515   yes:no: )
11516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520     ac_header_preproc=yes
11521     ;;
11522   no:yes:* )
11523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11535     ( cat <<\_ASBOX
11536 ## ----------------------------------- ##
11537 ## Report this to llvmbugs@cs.uiuc.edu ##
11538 ## ----------------------------------- ##
11539 _ASBOX
11540      ) | sed "s/^/$as_me: WARNING:     /" >&2
11541     ;;
11542 esac
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   eval "$as_ac_Header=\$ac_header_preproc"
11549 fi
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551                { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11553
11554 fi
11555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11556   cat >>confdefs.h <<_ACEOF
11557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11558 _ACEOF
11559  break
11560 fi
11561
11562 done
11563
11564
11565
11566
11567 for ac_func in strchr index
11568 do
11569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11583 #define $ac_func innocuous_$ac_func
11584
11585 /* System header to define __stub macros and hopefully few prototypes,
11586     which can conflict with char $ac_func (); below.
11587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588     <limits.h> exists even on freestanding compilers.  */
11589
11590 #ifdef __STDC__
11591 # include <limits.h>
11592 #else
11593 # include <assert.h>
11594 #endif
11595
11596 #undef $ac_func
11597
11598 /* Override any GCC internal prototype to avoid an error.
11599    Use char because int might match the return type of a GCC
11600    builtin and then its argument prototype would still apply.  */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char $ac_func ();
11605 /* The GNU C library defines this for functions which it implements
11606     to always fail with ENOSYS.  Some functions are actually named
11607     something starting with __ and the normal name is an alias.  */
11608 #if defined __stub_$ac_func || defined __stub___$ac_func
11609 choke me
11610 #endif
11611
11612 int
11613 main ()
11614 {
11615 return $ac_func ();
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_link") 2>conftest.er1
11628   ac_status=$?
11629   grep -v '^ *+' conftest.er1 >conftest.err
11630   rm -f conftest.er1
11631   cat conftest.err >&5
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } &&
11634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635   { (case "(($ac_try" in
11636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637   *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640   (eval "$ac_try") 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; } &&
11644          { ac_try='test -s conftest$ac_exeext'
11645   { (case "(($ac_try" in
11646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647   *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650   (eval "$ac_try") 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); }; }; then
11654   eval "$as_ac_var=yes"
11655 else
11656   echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659         eval "$as_ac_var=no"
11660 fi
11661
11662 rm -f core conftest.err conftest.$ac_objext \
11663       conftest$ac_exeext conftest.$ac_ext
11664 fi
11665 ac_res=`eval echo '${'$as_ac_var'}'`
11666                { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669   cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 _ACEOF
11672  break
11673 fi
11674 done
11675
11676
11677
11678 for ac_func in strrchr rindex
11679 do
11680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11694 #define $ac_func innocuous_$ac_func
11695
11696 /* System header to define __stub macros and hopefully few prototypes,
11697     which can conflict with char $ac_func (); below.
11698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699     <limits.h> exists even on freestanding compilers.  */
11700
11701 #ifdef __STDC__
11702 # include <limits.h>
11703 #else
11704 # include <assert.h>
11705 #endif
11706
11707 #undef $ac_func
11708
11709 /* Override any GCC internal prototype to avoid an error.
11710    Use char because int might match the return type of a GCC
11711    builtin and then its argument prototype would still apply.  */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 char $ac_func ();
11716 /* The GNU C library defines this for functions which it implements
11717     to always fail with ENOSYS.  Some functions are actually named
11718     something starting with __ and the normal name is an alias.  */
11719 #if defined __stub_$ac_func || defined __stub___$ac_func
11720 choke me
11721 #endif
11722
11723 int
11724 main ()
11725 {
11726 return $ac_func ();
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735   *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738   (eval "$ac_link") 2>conftest.er1
11739   ac_status=$?
11740   grep -v '^ *+' conftest.er1 >conftest.err
11741   rm -f conftest.er1
11742   cat conftest.err >&5
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } &&
11745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746   { (case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_try") 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; } &&
11755          { ac_try='test -s conftest$ac_exeext'
11756   { (case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_try") 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; }; then
11765   eval "$as_ac_var=yes"
11766 else
11767   echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770         eval "$as_ac_var=no"
11771 fi
11772
11773 rm -f core conftest.err conftest.$ac_objext \
11774       conftest$ac_exeext conftest.$ac_ext
11775 fi
11776 ac_res=`eval echo '${'$as_ac_var'}'`
11777                { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11779 if test `eval echo '${'$as_ac_var'}'` = yes; then
11780   cat >>confdefs.h <<_ACEOF
11781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11782 _ACEOF
11783  break
11784 fi
11785 done
11786
11787
11788
11789 for ac_func in memcpy bcopy
11790 do
11791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11805 #define $ac_func innocuous_$ac_func
11806
11807 /* System header to define __stub macros and hopefully few prototypes,
11808     which can conflict with char $ac_func (); below.
11809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810     <limits.h> exists even on freestanding compilers.  */
11811
11812 #ifdef __STDC__
11813 # include <limits.h>
11814 #else
11815 # include <assert.h>
11816 #endif
11817
11818 #undef $ac_func
11819
11820 /* Override any GCC internal prototype to avoid an error.
11821    Use char because int might match the return type of a GCC
11822    builtin and then its argument prototype would still apply.  */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char $ac_func ();
11827 /* The GNU C library defines this for functions which it implements
11828     to always fail with ENOSYS.  Some functions are actually named
11829     something starting with __ and the normal name is an alias.  */
11830 #if defined __stub_$ac_func || defined __stub___$ac_func
11831 choke me
11832 #endif
11833
11834 int
11835 main ()
11836 {
11837 return $ac_func ();
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_link") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857   { (case "(($ac_try" in
11858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859   *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862   (eval "$ac_try") 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; } &&
11866          { ac_try='test -s conftest$ac_exeext'
11867   { (case "(($ac_try" in
11868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869   *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872   (eval "$ac_try") 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   eval "$as_ac_var=yes"
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881         eval "$as_ac_var=no"
11882 fi
11883
11884 rm -f core conftest.err conftest.$ac_objext \
11885       conftest$ac_exeext conftest.$ac_ext
11886 fi
11887 ac_res=`eval echo '${'$as_ac_var'}'`
11888                { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11890 if test `eval echo '${'$as_ac_var'}'` = yes; then
11891   cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11893 _ACEOF
11894  break
11895 fi
11896 done
11897
11898
11899
11900 for ac_func in memmove strcmp
11901 do
11902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11916 #define $ac_func innocuous_$ac_func
11917
11918 /* System header to define __stub macros and hopefully few prototypes,
11919     which can conflict with char $ac_func (); below.
11920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921     <limits.h> exists even on freestanding compilers.  */
11922
11923 #ifdef __STDC__
11924 # include <limits.h>
11925 #else
11926 # include <assert.h>
11927 #endif
11928
11929 #undef $ac_func
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932    Use char because int might match the return type of a GCC
11933    builtin and then its argument prototype would still apply.  */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char $ac_func ();
11938 /* The GNU C library defines this for functions which it implements
11939     to always fail with ENOSYS.  Some functions are actually named
11940     something starting with __ and the normal name is an alias.  */
11941 #if defined __stub_$ac_func || defined __stub___$ac_func
11942 choke me
11943 #endif
11944
11945 int
11946 main ()
11947 {
11948 return $ac_func ();
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957   *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960   (eval "$ac_link") 2>conftest.er1
11961   ac_status=$?
11962   grep -v '^ *+' conftest.er1 >conftest.err
11963   rm -f conftest.er1
11964   cat conftest.err >&5
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968   { (case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_try") 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; } &&
11977          { ac_try='test -s conftest$ac_exeext'
11978   { (case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983   (eval "$ac_try") 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   eval "$as_ac_var=yes"
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992         eval "$as_ac_var=no"
11993 fi
11994
11995 rm -f core conftest.err conftest.$ac_objext \
11996       conftest$ac_exeext conftest.$ac_ext
11997 fi
11998 ac_res=`eval echo '${'$as_ac_var'}'`
11999                { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_var'}'` = yes; then
12002   cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12004 _ACEOF
12005
12006 fi
12007 done
12008
12009
12010
12011
12012 for ac_func in closedir opendir readdir
12013 do
12014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020   cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h.  */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h.  */
12026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12028 #define $ac_func innocuous_$ac_func
12029
12030 /* System header to define __stub macros and hopefully few prototypes,
12031     which can conflict with char $ac_func (); below.
12032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033     <limits.h> exists even on freestanding compilers.  */
12034
12035 #ifdef __STDC__
12036 # include <limits.h>
12037 #else
12038 # include <assert.h>
12039 #endif
12040
12041 #undef $ac_func
12042
12043 /* Override any GCC internal prototype to avoid an error.
12044    Use char because int might match the return type of a GCC
12045    builtin and then its argument prototype would still apply.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 char $ac_func ();
12050 /* The GNU C library defines this for functions which it implements
12051     to always fail with ENOSYS.  Some functions are actually named
12052     something starting with __ and the normal name is an alias.  */
12053 #if defined __stub_$ac_func || defined __stub___$ac_func
12054 choke me
12055 #endif
12056
12057 int
12058 main ()
12059 {
12060 return $ac_func ();
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest.$ac_objext conftest$ac_exeext
12066 if { (ac_try="$ac_link"
12067 case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_link") 2>conftest.er1
12073   ac_status=$?
12074   grep -v '^ *+' conftest.er1 >conftest.err
12075   rm -f conftest.er1
12076   cat conftest.err >&5
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } &&
12079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080   { (case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085   (eval "$ac_try") 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; } &&
12089          { ac_try='test -s conftest$ac_exeext'
12090   { (case "(($ac_try" in
12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092   *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095   (eval "$ac_try") 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; }; then
12099   eval "$as_ac_var=yes"
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104         eval "$as_ac_var=no"
12105 fi
12106
12107 rm -f core conftest.err conftest.$ac_objext \
12108       conftest$ac_exeext conftest.$ac_ext
12109 fi
12110 ac_res=`eval echo '${'$as_ac_var'}'`
12111                { echo "$as_me:$LINENO: result: $ac_res" >&5
12112 echo "${ECHO_T}$ac_res" >&6; }
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114   cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 _ACEOF
12117
12118 fi
12119 done
12120
12121
12122
12123 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12124 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12125
12126 ICC=no
12127 IXX=no
12128 case $CC in
12129   icc*|icpc*)
12130     ICC=yes
12131     IXX=yes
12132     ;;
12133    *)
12134     ;;
12135 esac
12136
12137 if test "$GCC" != "yes" && test "$ICC" != "yes"
12138 then
12139   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12140 echo "$as_me: error: gcc|icc required but not found" >&2;}
12141    { (exit 1); exit 1; }; }
12142 fi
12143
12144 if test "$GXX" != "yes" && test "$IXX" != "yes"
12145 then
12146   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12147 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12148    { (exit 1); exit 1; }; }
12149 fi
12150
12151 if test "$GCC" = "yes"
12152 then
12153   cat >conftest.$ac_ext <<_ACEOF
12154 #if !defined(__GNUC__) || __GNUC__ < 3
12155 #error Unsupported GCC version
12156 #endif
12157
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_compile") 2>conftest.er1
12167   ac_status=$?
12168   grep -v '^ *+' conftest.er1 >conftest.err
12169   rm -f conftest.er1
12170   cat conftest.err >&5
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } &&
12173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12174   { (case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_try") 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; } &&
12183          { ac_try='test -s conftest.$ac_objext'
12184   { (case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_try") 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; }; then
12193   :
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12199 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12200    { (exit 1); exit 1; }; }
12201 fi
12202
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 fi
12205
12206 if test -z "$llvm_cv_gnu_make_command"
12207 then
12208   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12209 echo "$as_me: error: GNU Make required but not found" >&2;}
12210    { (exit 1); exit 1; }; }
12211 fi
12212
12213 { echo "$as_me:$LINENO: result: ok" >&5
12214 echo "${ECHO_T}ok" >&6; }
12215
12216 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12217 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12218 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12219
12220 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12221
12222 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12223 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12224
12225
12226
12227 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12228 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12229 if test "${ac_cv_lib_m_sin+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lm  $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240
12241 /* Override any GCC internal prototype to avoid an error.
12242    Use char because int might match the return type of a GCC
12243    builtin and then its argument prototype would still apply.  */
12244 #ifdef __cplusplus
12245 extern "C"
12246 #endif
12247 char sin ();
12248 int
12249 main ()
12250 {
12251 return sin ();
12252   ;
12253   return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_link") 2>conftest.er1
12264   ac_status=$?
12265   grep -v '^ *+' conftest.er1 >conftest.err
12266   rm -f conftest.er1
12267   cat conftest.err >&5
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } &&
12270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271   { (case "(($ac_try" in
12272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273   *) ac_try_echo=$ac_try;;
12274 esac
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276   (eval "$ac_try") 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; } &&
12280          { ac_try='test -s conftest$ac_exeext'
12281   { (case "(($ac_try" in
12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283   *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286   (eval "$ac_try") 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; }; then
12290   ac_cv_lib_m_sin=yes
12291 else
12292   echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295         ac_cv_lib_m_sin=no
12296 fi
12297
12298 rm -f core conftest.err conftest.$ac_objext \
12299       conftest$ac_exeext conftest.$ac_ext
12300 LIBS=$ac_check_lib_save_LIBS
12301 fi
12302 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12303 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12304 if test $ac_cv_lib_m_sin = yes; then
12305   cat >>confdefs.h <<_ACEOF
12306 #define HAVE_LIBM 1
12307 _ACEOF
12308
12309   LIBS="-lm $LIBS"
12310
12311 fi
12312
12313 if test "$llvm_cv_os_type" = "MingW" ; then
12314
12315 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12316 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12317 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12318   echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320   ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-limagehlp  $LIBS"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328
12329
12330 int
12331 main ()
12332 {
12333 return main ();
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345   (eval "$ac_link") 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } &&
12352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12353   { (case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358   (eval "$ac_try") 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; } &&
12362          { ac_try='test -s conftest$ac_exeext'
12363   { (case "(($ac_try" in
12364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365   *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368   (eval "$ac_try") 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; }; then
12372   ac_cv_lib_imagehlp_main=yes
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377         ac_cv_lib_imagehlp_main=no
12378 fi
12379
12380 rm -f core conftest.err conftest.$ac_objext \
12381       conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12383 fi
12384 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12385 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12386 if test $ac_cv_lib_imagehlp_main = yes; then
12387   cat >>confdefs.h <<_ACEOF
12388 #define HAVE_LIBIMAGEHLP 1
12389 _ACEOF
12390
12391   LIBS="-limagehlp $LIBS"
12392
12393 fi
12394
12395
12396 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12397 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_psapi_main+set}" = set; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401   ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-lpsapi  $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409
12410
12411 int
12412 main ()
12413 {
12414 return main ();
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423   *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426   (eval "$ac_link") 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } &&
12433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12434   { (case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439   (eval "$ac_try") 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; } &&
12443          { ac_try='test -s conftest$ac_exeext'
12444   { (case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449   (eval "$ac_try") 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_lib_psapi_main=yes
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458         ac_cv_lib_psapi_main=no
12459 fi
12460
12461 rm -f core conftest.err conftest.$ac_objext \
12462       conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12464 fi
12465 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12466 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12467 if test $ac_cv_lib_psapi_main = yes; then
12468   cat >>confdefs.h <<_ACEOF
12469 #define HAVE_LIBPSAPI 1
12470 _ACEOF
12471
12472   LIBS="-lpsapi $LIBS"
12473
12474 fi
12475
12476 fi
12477
12478 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12479 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12480 if test "${ac_cv_search_dlopen+set}" = set; then
12481   echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483   ac_func_search_save_LIBS=$LIBS
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490
12491 /* Override any GCC internal prototype to avoid an error.
12492    Use char because int might match the return type of a GCC
12493    builtin and then its argument prototype would still apply.  */
12494 #ifdef __cplusplus
12495 extern "C"
12496 #endif
12497 char dlopen ();
12498 int
12499 main ()
12500 {
12501 return dlopen ();
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 for ac_lib in '' dl; do
12507   if test -z "$ac_lib"; then
12508     ac_res="none required"
12509   else
12510     ac_res=-l$ac_lib
12511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12512   fi
12513   rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (ac_try="$ac_link"
12515 case "(($ac_try" in
12516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517   *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520   (eval "$ac_link") 2>conftest.er1
12521   ac_status=$?
12522   grep -v '^ *+' conftest.er1 >conftest.err
12523   rm -f conftest.er1
12524   cat conftest.err >&5
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } &&
12527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528   { (case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_try") 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (case "(($ac_try" in
12539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540   *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543   (eval "$ac_try") 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; }; then
12547   ac_cv_search_dlopen=$ac_res
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552
12553 fi
12554
12555 rm -f core conftest.err conftest.$ac_objext \
12556       conftest$ac_exeext
12557   if test "${ac_cv_search_dlopen+set}" = set; then
12558   break
12559 fi
12560 done
12561 if test "${ac_cv_search_dlopen+set}" = set; then
12562   :
12563 else
12564   ac_cv_search_dlopen=no
12565 fi
12566 rm conftest.$ac_ext
12567 LIBS=$ac_func_search_save_LIBS
12568 fi
12569 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12570 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12571 ac_res=$ac_cv_search_dlopen
12572 if test "$ac_res" != no; then
12573   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12574
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_DLOPEN 1
12577 _ACEOF
12578
12579 else
12580   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12581 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12582 fi
12583
12584
12585 if test "$llvm_cv_enable_libffi" = "yes" ; then
12586   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12587 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12588 if test "${ac_cv_search_ffi_call+set}" = set; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591   ac_func_search_save_LIBS=$LIBS
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598
12599 /* Override any GCC internal prototype to avoid an error.
12600    Use char because int might match the return type of a GCC
12601    builtin and then its argument prototype would still apply.  */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 char ffi_call ();
12606 int
12607 main ()
12608 {
12609 return ffi_call ();
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 for ac_lib in '' ffi; do
12615   if test -z "$ac_lib"; then
12616     ac_res="none required"
12617   else
12618     ac_res=-l$ac_lib
12619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12620   fi
12621   rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625   *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628   (eval "$ac_link") 2>conftest.er1
12629   ac_status=$?
12630   grep -v '^ *+' conftest.er1 >conftest.err
12631   rm -f conftest.er1
12632   cat conftest.err >&5
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); } &&
12635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636   { (case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; } &&
12645          { ac_try='test -s conftest$ac_exeext'
12646   { (case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_try") 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; }; then
12655   ac_cv_search_ffi_call=$ac_res
12656 else
12657   echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660
12661 fi
12662
12663 rm -f core conftest.err conftest.$ac_objext \
12664       conftest$ac_exeext
12665   if test "${ac_cv_search_ffi_call+set}" = set; then
12666   break
12667 fi
12668 done
12669 if test "${ac_cv_search_ffi_call+set}" = set; then
12670   :
12671 else
12672   ac_cv_search_ffi_call=no
12673 fi
12674 rm conftest.$ac_ext
12675 LIBS=$ac_func_search_save_LIBS
12676 fi
12677 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12678 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12679 ac_res=$ac_cv_search_ffi_call
12680 if test "$ac_res" != no; then
12681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_FFI_CALL 1
12685 _ACEOF
12686
12687 else
12688   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12689 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12690    { (exit 1); exit 1; }; }
12691 fi
12692
12693 fi
12694
12695 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12696 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12697 if test "${ac_cv_search_mallinfo+set}" = set; then
12698   echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700   ac_func_search_save_LIBS=$LIBS
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707
12708 /* Override any GCC internal prototype to avoid an error.
12709    Use char because int might match the return type of a GCC
12710    builtin and then its argument prototype would still apply.  */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char mallinfo ();
12715 int
12716 main ()
12717 {
12718 return mallinfo ();
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 for ac_lib in '' malloc; do
12724   if test -z "$ac_lib"; then
12725     ac_res="none required"
12726   else
12727     ac_res=-l$ac_lib
12728     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12729   fi
12730   rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (ac_try="$ac_link"
12732 case "(($ac_try" in
12733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734   *) ac_try_echo=$ac_try;;
12735 esac
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737   (eval "$ac_link") 2>conftest.er1
12738   ac_status=$?
12739   grep -v '^ *+' conftest.er1 >conftest.err
12740   rm -f conftest.er1
12741   cat conftest.err >&5
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } &&
12744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12745   { (case "(($ac_try" in
12746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747   *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750   (eval "$ac_try") 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; } &&
12754          { ac_try='test -s conftest$ac_exeext'
12755   { (case "(($ac_try" in
12756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757   *) ac_try_echo=$ac_try;;
12758 esac
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760   (eval "$ac_try") 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; }; then
12764   ac_cv_search_mallinfo=$ac_res
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769
12770 fi
12771
12772 rm -f core conftest.err conftest.$ac_objext \
12773       conftest$ac_exeext
12774   if test "${ac_cv_search_mallinfo+set}" = set; then
12775   break
12776 fi
12777 done
12778 if test "${ac_cv_search_mallinfo+set}" = set; then
12779   :
12780 else
12781   ac_cv_search_mallinfo=no
12782 fi
12783 rm conftest.$ac_ext
12784 LIBS=$ac_func_search_save_LIBS
12785 fi
12786 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12787 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12788 ac_res=$ac_cv_search_mallinfo
12789 if test "$ac_res" != no; then
12790   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12791
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_MALLINFO 1
12794 _ACEOF
12795
12796 fi
12797
12798
12799 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12800
12801 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12802 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12803 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12804   echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806   ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-lpthread  $LIBS"
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814
12815 /* Override any GCC internal prototype to avoid an error.
12816    Use char because int might match the return type of a GCC
12817    builtin and then its argument prototype would still apply.  */
12818 #ifdef __cplusplus
12819 extern "C"
12820 #endif
12821 char pthread_mutex_init ();
12822 int
12823 main ()
12824 {
12825 return pthread_mutex_init ();
12826   ;
12827   return 0;
12828 }
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837   (eval "$ac_link") 2>conftest.er1
12838   ac_status=$?
12839   grep -v '^ *+' conftest.er1 >conftest.err
12840   rm -f conftest.er1
12841   cat conftest.err >&5
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); } &&
12844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845   { (case "(($ac_try" in
12846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847   *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850   (eval "$ac_try") 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; } &&
12854          { ac_try='test -s conftest$ac_exeext'
12855   { (case "(($ac_try" in
12856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857   *) ac_try_echo=$ac_try;;
12858 esac
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860   (eval "$ac_try") 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; }; then
12864   ac_cv_lib_pthread_pthread_mutex_init=yes
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869         ac_cv_lib_pthread_pthread_mutex_init=no
12870 fi
12871
12872 rm -f core conftest.err conftest.$ac_objext \
12873       conftest$ac_exeext conftest.$ac_ext
12874 LIBS=$ac_check_lib_save_LIBS
12875 fi
12876 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12877 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12878 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12879   cat >>confdefs.h <<_ACEOF
12880 #define HAVE_LIBPTHREAD 1
12881 _ACEOF
12882
12883   LIBS="-lpthread $LIBS"
12884
12885 fi
12886
12887   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12888 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12889 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12890   echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892   ac_func_search_save_LIBS=$LIBS
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h.  */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h.  */
12899
12900 /* Override any GCC internal prototype to avoid an error.
12901    Use char because int might match the return type of a GCC
12902    builtin and then its argument prototype would still apply.  */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char pthread_mutex_lock ();
12907 int
12908 main ()
12909 {
12910 return pthread_mutex_lock ();
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 for ac_lib in '' pthread; do
12916   if test -z "$ac_lib"; then
12917     ac_res="none required"
12918   else
12919     ac_res=-l$ac_lib
12920     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12921   fi
12922   rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (ac_try="$ac_link"
12924 case "(($ac_try" in
12925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926   *) ac_try_echo=$ac_try;;
12927 esac
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929   (eval "$ac_link") 2>conftest.er1
12930   ac_status=$?
12931   grep -v '^ *+' conftest.er1 >conftest.err
12932   rm -f conftest.er1
12933   cat conftest.err >&5
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } &&
12936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12937   { (case "(($ac_try" in
12938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939   *) ac_try_echo=$ac_try;;
12940 esac
12941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942   (eval "$ac_try") 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); }; } &&
12946          { ac_try='test -s conftest$ac_exeext'
12947   { (case "(($ac_try" in
12948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949   *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952   (eval "$ac_try") 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); }; }; then
12956   ac_cv_search_pthread_mutex_lock=$ac_res
12957 else
12958   echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961
12962 fi
12963
12964 rm -f core conftest.err conftest.$ac_objext \
12965       conftest$ac_exeext
12966   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12967   break
12968 fi
12969 done
12970 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12971   :
12972 else
12973   ac_cv_search_pthread_mutex_lock=no
12974 fi
12975 rm conftest.$ac_ext
12976 LIBS=$ac_func_search_save_LIBS
12977 fi
12978 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12979 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12980 ac_res=$ac_cv_search_pthread_mutex_lock
12981 if test "$ac_res" != no; then
12982   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12983
12984 cat >>confdefs.h <<\_ACEOF
12985 #define HAVE_PTHREAD_MUTEX_LOCK 1
12986 _ACEOF
12987
12988 fi
12989
12990   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12991 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12992 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12993   echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995   ac_func_search_save_LIBS=$LIBS
12996 cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002
13003 /* Override any GCC internal prototype to avoid an error.
13004    Use char because int might match the return type of a GCC
13005    builtin and then its argument prototype would still apply.  */
13006 #ifdef __cplusplus
13007 extern "C"
13008 #endif
13009 char pthread_rwlock_init ();
13010 int
13011 main ()
13012 {
13013 return pthread_rwlock_init ();
13014   ;
13015   return 0;
13016 }
13017 _ACEOF
13018 for ac_lib in '' pthread; do
13019   if test -z "$ac_lib"; then
13020     ac_res="none required"
13021   else
13022     ac_res=-l$ac_lib
13023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13024   fi
13025   rm -f conftest.$ac_objext conftest$ac_exeext
13026 if { (ac_try="$ac_link"
13027 case "(($ac_try" in
13028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029   *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032   (eval "$ac_link") 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } &&
13039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040   { (case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045   (eval "$ac_try") 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; } &&
13049          { ac_try='test -s conftest$ac_exeext'
13050   { (case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_try") 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; }; then
13059   ac_cv_search_pthread_rwlock_init=$ac_res
13060 else
13061   echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064
13065 fi
13066
13067 rm -f core conftest.err conftest.$ac_objext \
13068       conftest$ac_exeext
13069   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13070   break
13071 fi
13072 done
13073 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13074   :
13075 else
13076   ac_cv_search_pthread_rwlock_init=no
13077 fi
13078 rm conftest.$ac_ext
13079 LIBS=$ac_func_search_save_LIBS
13080 fi
13081 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13082 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13083 ac_res=$ac_cv_search_pthread_rwlock_init
13084 if test "$ac_res" != no; then
13085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13086
13087 cat >>confdefs.h <<\_ACEOF
13088 #define HAVE_PTHREAD_RWLOCK_INIT 1
13089 _ACEOF
13090
13091 fi
13092
13093   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13094 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13095 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13096   echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098   ac_func_search_save_LIBS=$LIBS
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105
13106 /* Override any GCC internal prototype to avoid an error.
13107    Use char because int might match the return type of a GCC
13108    builtin and then its argument prototype would still apply.  */
13109 #ifdef __cplusplus
13110 extern "C"
13111 #endif
13112 char pthread_getspecific ();
13113 int
13114 main ()
13115 {
13116 return pthread_getspecific ();
13117   ;
13118   return 0;
13119 }
13120 _ACEOF
13121 for ac_lib in '' pthread; do
13122   if test -z "$ac_lib"; then
13123     ac_res="none required"
13124   else
13125     ac_res=-l$ac_lib
13126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13127   fi
13128   rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132   *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135   (eval "$ac_link") 2>conftest.er1
13136   ac_status=$?
13137   grep -v '^ *+' conftest.er1 >conftest.err
13138   rm -f conftest.er1
13139   cat conftest.err >&5
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143   { (case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148   (eval "$ac_try") 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest$ac_exeext'
13153   { (case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158   (eval "$ac_try") 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; }; then
13162   ac_cv_search_pthread_getspecific=$ac_res
13163 else
13164   echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167
13168 fi
13169
13170 rm -f core conftest.err conftest.$ac_objext \
13171       conftest$ac_exeext
13172   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13173   break
13174 fi
13175 done
13176 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13177   :
13178 else
13179   ac_cv_search_pthread_getspecific=no
13180 fi
13181 rm conftest.$ac_ext
13182 LIBS=$ac_func_search_save_LIBS
13183 fi
13184 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13185 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13186 ac_res=$ac_cv_search_pthread_getspecific
13187 if test "$ac_res" != no; then
13188   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13189
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_PTHREAD_GETSPECIFIC 1
13192 _ACEOF
13193
13194 fi
13195
13196 fi
13197
13198
13199 # Check whether --with-udis86 was given.
13200 if test "${with_udis86+set}" = set; then
13201   withval=$with_udis86;
13202       USE_UDIS86=1
13203
13204       case "$withval" in
13205         /usr/lib|yes) ;;
13206         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13207       esac
13208
13209 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13210 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13211 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ludis86  $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222
13223 /* Override any GCC internal prototype to avoid an error.
13224    Use char because int might match the return type of a GCC
13225    builtin and then its argument prototype would still apply.  */
13226 #ifdef __cplusplus
13227 extern "C"
13228 #endif
13229 char ud_init ();
13230 int
13231 main ()
13232 {
13233 return ud_init ();
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_link") 2>conftest.er1
13246   ac_status=$?
13247   grep -v '^ *+' conftest.er1 >conftest.err
13248   rm -f conftest.er1
13249   cat conftest.err >&5
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); } &&
13252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13253   { (case "(($ac_try" in
13254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255   *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258   (eval "$ac_try") 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; } &&
13262          { ac_try='test -s conftest$ac_exeext'
13263   { (case "(($ac_try" in
13264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265   *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268   (eval "$ac_try") 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_cv_lib_udis86_ud_init=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277         ac_cv_lib_udis86_ud_init=no
13278 fi
13279
13280 rm -f core conftest.err conftest.$ac_objext \
13281       conftest$ac_exeext conftest.$ac_ext
13282 LIBS=$ac_check_lib_save_LIBS
13283 fi
13284 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13285 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13286 if test $ac_cv_lib_udis86_ud_init = yes; then
13287   cat >>confdefs.h <<_ACEOF
13288 #define HAVE_LIBUDIS86 1
13289 _ACEOF
13290
13291   LIBS="-ludis86 $LIBS"
13292
13293 else
13294
13295         echo "Error! You need to have libudis86 around."
13296         exit -1
13297
13298 fi
13299
13300
13301 else
13302   USE_UDIS86=0
13303
13304 fi
13305
13306
13307 cat >>confdefs.h <<_ACEOF
13308 #define USE_UDIS86 $USE_UDIS86
13309 _ACEOF
13310
13311
13312
13313 # Check whether --with-oprofile was given.
13314 if test "${with_oprofile+set}" = set; then
13315   withval=$with_oprofile;
13316       USE_OPROFILE=1
13317
13318       case "$withval" in
13319         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13320         no) llvm_cv_oppath=
13321             USE_OPROFILE=0
13322  ;;
13323         *) llvm_cv_oppath="${withval}/lib/oprofile"
13324            CPPFLAGS="-I${withval}/include";;
13325       esac
13326       if test -n "$llvm_cv_oppath" ; then
13327         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13328                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13329 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13330 if test "${ac_cv_search_bfd_init+set}" = set; then
13331   echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333   ac_func_search_save_LIBS=$LIBS
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h.  */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h.  */
13340
13341 /* Override any GCC internal prototype to avoid an error.
13342    Use char because int might match the return type of a GCC
13343    builtin and then its argument prototype would still apply.  */
13344 #ifdef __cplusplus
13345 extern "C"
13346 #endif
13347 char bfd_init ();
13348 int
13349 main ()
13350 {
13351 return bfd_init ();
13352   ;
13353   return 0;
13354 }
13355 _ACEOF
13356 for ac_lib in '' bfd; do
13357   if test -z "$ac_lib"; then
13358     ac_res="none required"
13359   else
13360     ac_res=-l$ac_lib
13361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13362   fi
13363   rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (ac_try="$ac_link"
13365 case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_link") 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13378   { (case "(($ac_try" in
13379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380   *) ac_try_echo=$ac_try;;
13381 esac
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383   (eval "$ac_try") 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; } &&
13387          { ac_try='test -s conftest$ac_exeext'
13388   { (case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_try") 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   ac_cv_search_bfd_init=$ac_res
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402
13403 fi
13404
13405 rm -f core conftest.err conftest.$ac_objext \
13406       conftest$ac_exeext
13407   if test "${ac_cv_search_bfd_init+set}" = set; then
13408   break
13409 fi
13410 done
13411 if test "${ac_cv_search_bfd_init+set}" = set; then
13412   :
13413 else
13414   ac_cv_search_bfd_init=no
13415 fi
13416 rm conftest.$ac_ext
13417 LIBS=$ac_func_search_save_LIBS
13418 fi
13419 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13420 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13421 ac_res=$ac_cv_search_bfd_init
13422 if test "$ac_res" != no; then
13423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13424
13425 fi
13426
13427         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13428 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13429 if test "${ac_cv_search_op_open_agent+set}" = set; then
13430   echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432   ac_func_search_save_LIBS=$LIBS
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439
13440 /* Override any GCC internal prototype to avoid an error.
13441    Use char because int might match the return type of a GCC
13442    builtin and then its argument prototype would still apply.  */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 char op_open_agent ();
13447 int
13448 main ()
13449 {
13450 return op_open_agent ();
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 for ac_lib in '' opagent; do
13456   if test -z "$ac_lib"; then
13457     ac_res="none required"
13458   else
13459     ac_res=-l$ac_lib
13460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13461   fi
13462   rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_link") 2>conftest.er1
13470   ac_status=$?
13471   grep -v '^ *+' conftest.er1 >conftest.err
13472   rm -f conftest.er1
13473   cat conftest.err >&5
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } &&
13476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13477   { (case "(($ac_try" in
13478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479   *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482   (eval "$ac_try") 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); }; } &&
13486          { ac_try='test -s conftest$ac_exeext'
13487   { (case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492   (eval "$ac_try") 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); }; }; then
13496   ac_cv_search_op_open_agent=$ac_res
13497 else
13498   echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501
13502 fi
13503
13504 rm -f core conftest.err conftest.$ac_objext \
13505       conftest$ac_exeext
13506   if test "${ac_cv_search_op_open_agent+set}" = set; then
13507   break
13508 fi
13509 done
13510 if test "${ac_cv_search_op_open_agent+set}" = set; then
13511   :
13512 else
13513   ac_cv_search_op_open_agent=no
13514 fi
13515 rm conftest.$ac_ext
13516 LIBS=$ac_func_search_save_LIBS
13517 fi
13518 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13519 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13520 ac_res=$ac_cv_search_op_open_agent
13521 if test "$ac_res" != no; then
13522   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13523
13524 else
13525
13526           echo "Error! You need to have libopagent around."
13527           exit -1
13528
13529 fi
13530
13531         if test "${ac_cv_header_opagent_h+set}" = set; then
13532   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13533 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13534 if test "${ac_cv_header_opagent_h+set}" = set; then
13535   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
13540   # Is the header compilable?
13541 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13542 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 $ac_includes_default
13550 #include <opagent.h>
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559   (eval "$ac_compile") 2>conftest.er1
13560   ac_status=$?
13561   grep -v '^ *+' conftest.er1 >conftest.err
13562   rm -f conftest.er1
13563   cat conftest.err >&5
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); } &&
13566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567   { (case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_try") 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; } &&
13576          { ac_try='test -s conftest.$ac_objext'
13577   { (case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582   (eval "$ac_try") 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; }; then
13586   ac_header_compiler=yes
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591         ac_header_compiler=no
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596 echo "${ECHO_T}$ac_header_compiler" >&6; }
13597
13598 # Is the header present?
13599 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13600 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 #include <opagent.h>
13608 _ACEOF
13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
13610 case "(($ac_try" in
13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612   *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13616   ac_status=$?
13617   grep -v '^ *+' conftest.er1 >conftest.err
13618   rm -f conftest.er1
13619   cat conftest.err >&5
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } >/dev/null; then
13622   if test -s conftest.err; then
13623     ac_cpp_err=$ac_c_preproc_warn_flag
13624     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13625   else
13626     ac_cpp_err=
13627   fi
13628 else
13629   ac_cpp_err=yes
13630 fi
13631 if test -z "$ac_cpp_err"; then
13632   ac_header_preproc=yes
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637   ac_header_preproc=no
13638 fi
13639
13640 rm -f conftest.err conftest.$ac_ext
13641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13642 echo "${ECHO_T}$ac_header_preproc" >&6; }
13643
13644 # So?  What about this header?
13645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13646   yes:no: )
13647     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13648 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13649     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13650 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13651     ac_header_preproc=yes
13652     ;;
13653   no:yes:* )
13654     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13655 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13656     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13657 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13658     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13659 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13660     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13661 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13662     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13663 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13664     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13665 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13666     ( cat <<\_ASBOX
13667 ## ----------------------------------- ##
13668 ## Report this to llvmbugs@cs.uiuc.edu ##
13669 ## ----------------------------------- ##
13670 _ASBOX
13671      ) | sed "s/^/$as_me: WARNING:     /" >&2
13672     ;;
13673 esac
13674 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13675 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13676 if test "${ac_cv_header_opagent_h+set}" = set; then
13677   echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679   ac_cv_header_opagent_h=$ac_header_preproc
13680 fi
13681 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13682 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13683
13684 fi
13685 if test $ac_cv_header_opagent_h = yes; then
13686   :
13687 else
13688
13689           echo "Error! You need to have opagent.h around."
13690           exit -1
13691
13692 fi
13693
13694
13695       fi
13696
13697 else
13698
13699       USE_OPROFILE=0
13700
13701
13702 fi
13703
13704
13705 cat >>confdefs.h <<_ACEOF
13706 #define USE_OPROFILE $USE_OPROFILE
13707 _ACEOF
13708
13709
13710
13711
13712
13713
13714
13715
13716 ac_header_dirent=no
13717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13718   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13719 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13720 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 #include <sys/types.h>
13731 #include <$ac_hdr>
13732
13733 int
13734 main ()
13735 {
13736 if ((DIR *) 0)
13737 return 0;
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 rm -f conftest.$ac_objext
13743 if { (ac_try="$ac_compile"
13744 case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_compile") 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } &&
13756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757   { (case "(($ac_try" in
13758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759   *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762   (eval "$ac_try") 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; } &&
13766          { ac_try='test -s conftest.$ac_objext'
13767   { (case "(($ac_try" in
13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769   *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772   (eval "$ac_try") 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; }; then
13776   eval "$as_ac_Header=yes"
13777 else
13778   echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781         eval "$as_ac_Header=no"
13782 fi
13783
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 fi
13786 ac_res=`eval echo '${'$as_ac_Header'}'`
13787                { echo "$as_me:$LINENO: result: $ac_res" >&5
13788 echo "${ECHO_T}$ac_res" >&6; }
13789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13790   cat >>confdefs.h <<_ACEOF
13791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13792 _ACEOF
13793
13794 ac_header_dirent=$ac_hdr; break
13795 fi
13796
13797 done
13798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13799 if test $ac_header_dirent = dirent.h; then
13800   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13802 if test "${ac_cv_search_opendir+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   ac_func_search_save_LIBS=$LIBS
13806 cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h.  */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h.  */
13812
13813 /* Override any GCC internal prototype to avoid an error.
13814    Use char because int might match the return type of a GCC
13815    builtin and then its argument prototype would still apply.  */
13816 #ifdef __cplusplus
13817 extern "C"
13818 #endif
13819 char opendir ();
13820 int
13821 main ()
13822 {
13823 return opendir ();
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 for ac_lib in '' dir; do
13829   if test -z "$ac_lib"; then
13830     ac_res="none required"
13831   else
13832     ac_res=-l$ac_lib
13833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13834   fi
13835   rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839   *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842   (eval "$ac_link") 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850   { (case "(($ac_try" in
13851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852   *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855   (eval "$ac_try") 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; } &&
13859          { ac_try='test -s conftest$ac_exeext'
13860   { (case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_try") 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; }; then
13869   ac_cv_search_opendir=$ac_res
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874
13875 fi
13876
13877 rm -f core conftest.err conftest.$ac_objext \
13878       conftest$ac_exeext
13879   if test "${ac_cv_search_opendir+set}" = set; then
13880   break
13881 fi
13882 done
13883 if test "${ac_cv_search_opendir+set}" = set; then
13884   :
13885 else
13886   ac_cv_search_opendir=no
13887 fi
13888 rm conftest.$ac_ext
13889 LIBS=$ac_func_search_save_LIBS
13890 fi
13891 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13892 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13893 ac_res=$ac_cv_search_opendir
13894 if test "$ac_res" != no; then
13895   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13896
13897 fi
13898
13899 else
13900   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13902 if test "${ac_cv_search_opendir+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   ac_func_search_save_LIBS=$LIBS
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914    Use char because int might match the return type of a GCC
13915    builtin and then its argument prototype would still apply.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char opendir ();
13920 int
13921 main ()
13922 {
13923 return opendir ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 for ac_lib in '' x; do
13929   if test -z "$ac_lib"; then
13930     ac_res="none required"
13931   else
13932     ac_res=-l$ac_lib
13933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13934   fi
13935   rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (ac_try="$ac_link"
13937 case "(($ac_try" in
13938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939   *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942   (eval "$ac_link") 2>conftest.er1
13943   ac_status=$?
13944   grep -v '^ *+' conftest.er1 >conftest.err
13945   rm -f conftest.er1
13946   cat conftest.err >&5
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } &&
13949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13950   { (case "(($ac_try" in
13951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952   *) ac_try_echo=$ac_try;;
13953 esac
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955   (eval "$ac_try") 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; } &&
13959          { ac_try='test -s conftest$ac_exeext'
13960   { (case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965   (eval "$ac_try") 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); }; }; then
13969   ac_cv_search_opendir=$ac_res
13970 else
13971   echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974
13975 fi
13976
13977 rm -f core conftest.err conftest.$ac_objext \
13978       conftest$ac_exeext
13979   if test "${ac_cv_search_opendir+set}" = set; then
13980   break
13981 fi
13982 done
13983 if test "${ac_cv_search_opendir+set}" = set; then
13984   :
13985 else
13986   ac_cv_search_opendir=no
13987 fi
13988 rm conftest.$ac_ext
13989 LIBS=$ac_func_search_save_LIBS
13990 fi
13991 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13992 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13993 ac_res=$ac_cv_search_opendir
13994 if test "$ac_res" != no; then
13995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13996
13997 fi
13998
13999 fi
14000
14001 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14002 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14003 if test "${ac_cv_header_mmap_anon+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006    ac_ext=c
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011
14012   cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h.  */
14018 #include <sys/mman.h>
14019 #include <unistd.h>
14020 #include <fcntl.h>
14021 int
14022 main ()
14023 {
14024 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14025   ;
14026   return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (ac_try="$ac_compile"
14031 case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_compile") 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14044   { (case "(($ac_try" in
14045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046   *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049   (eval "$ac_try") 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; } &&
14053          { ac_try='test -s conftest.$ac_objext'
14054   { (case "(($ac_try" in
14055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056   *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059   (eval "$ac_try") 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }; then
14063   ac_cv_header_mmap_anon=yes
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068         ac_cv_header_mmap_anon=no
14069 fi
14070
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072   ac_ext=c
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077
14078
14079 fi
14080 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14081 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14082 if test "$ac_cv_header_mmap_anon" = yes; then
14083
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_MMAP_ANONYMOUS 1
14086 _ACEOF
14087
14088 fi
14089
14090 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14091 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14092 if test "${ac_cv_header_stat_broken+set}" = set; then
14093   echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095   cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h.  */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h.  */
14101 #include <sys/types.h>
14102 #include <sys/stat.h>
14103
14104 #if defined S_ISBLK && defined S_IFDIR
14105 # if S_ISBLK (S_IFDIR)
14106 You lose.
14107 # endif
14108 #endif
14109
14110 #if defined S_ISBLK && defined S_IFCHR
14111 # if S_ISBLK (S_IFCHR)
14112 You lose.
14113 # endif
14114 #endif
14115
14116 #if defined S_ISLNK && defined S_IFREG
14117 # if S_ISLNK (S_IFREG)
14118 You lose.
14119 # endif
14120 #endif
14121
14122 #if defined S_ISSOCK && defined S_IFREG
14123 # if S_ISSOCK (S_IFREG)
14124 You lose.
14125 # endif
14126 #endif
14127
14128 _ACEOF
14129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130   $EGREP "You lose" >/dev/null 2>&1; then
14131   ac_cv_header_stat_broken=yes
14132 else
14133   ac_cv_header_stat_broken=no
14134 fi
14135 rm -f conftest*
14136
14137 fi
14138 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14139 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14140 if test $ac_cv_header_stat_broken = yes; then
14141
14142 cat >>confdefs.h <<\_ACEOF
14143 #define STAT_MACROS_BROKEN 1
14144 _ACEOF
14145
14146 fi
14147
14148 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14149 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14151   echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153   cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h.  */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h.  */
14159 #include <sys/types.h>
14160 #include <sys/wait.h>
14161 #ifndef WEXITSTATUS
14162 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14163 #endif
14164 #ifndef WIFEXITED
14165 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14166 #endif
14167
14168 int
14169 main ()
14170 {
14171   int s;
14172   wait (&s);
14173   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (ac_try="$ac_compile"
14180 case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185   (eval "$ac_compile") 2>conftest.er1
14186   ac_status=$?
14187   grep -v '^ *+' conftest.er1 >conftest.err
14188   rm -f conftest.er1
14189   cat conftest.err >&5
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } &&
14192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14193   { (case "(($ac_try" in
14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195   *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198   (eval "$ac_try") 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; } &&
14202          { ac_try='test -s conftest.$ac_objext'
14203   { (case "(($ac_try" in
14204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205   *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208   (eval "$ac_try") 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; }; then
14212   ac_cv_header_sys_wait_h=yes
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217         ac_cv_header_sys_wait_h=no
14218 fi
14219
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 fi
14222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14223 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14224 if test $ac_cv_header_sys_wait_h = yes; then
14225
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_SYS_WAIT_H 1
14228 _ACEOF
14229
14230 fi
14231
14232 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14233 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14234 if test "${ac_cv_header_time+set}" = set; then
14235   echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237   cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 #include <sys/types.h>
14244 #include <sys/time.h>
14245 #include <time.h>
14246
14247 int
14248 main ()
14249 {
14250 if ((struct tm *) 0)
14251 return 0;
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 rm -f conftest.$ac_objext
14257 if { (ac_try="$ac_compile"
14258 case "(($ac_try" in
14259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260   *) ac_try_echo=$ac_try;;
14261 esac
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263   (eval "$ac_compile") 2>conftest.er1
14264   ac_status=$?
14265   grep -v '^ *+' conftest.er1 >conftest.err
14266   rm -f conftest.er1
14267   cat conftest.err >&5
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); } &&
14270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271   { (case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_try") 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; } &&
14280          { ac_try='test -s conftest.$ac_objext'
14281   { (case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_try") 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_cv_header_time=yes
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295         ac_cv_header_time=no
14296 fi
14297
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 fi
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14301 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14302 if test $ac_cv_header_time = yes; then
14303
14304 cat >>confdefs.h <<\_ACEOF
14305 #define TIME_WITH_SYS_TIME 1
14306 _ACEOF
14307
14308 fi
14309
14310
14311
14312
14313
14314
14315
14316
14317 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14318 do
14319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 fi
14326 ac_res=`eval echo '${'$as_ac_Header'}'`
14327                { echo "$as_me:$LINENO: result: $ac_res" >&5
14328 echo "${ECHO_T}$ac_res" >&6; }
14329 else
14330   # Is the header compilable?
14331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339 $ac_includes_default
14340 #include <$ac_header>
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (ac_try="$ac_compile"
14344 case "(($ac_try" in
14345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346   *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349   (eval "$ac_compile") 2>conftest.er1
14350   ac_status=$?
14351   grep -v '^ *+' conftest.er1 >conftest.err
14352   rm -f conftest.er1
14353   cat conftest.err >&5
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } &&
14356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14357   { (case "(($ac_try" in
14358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359   *) ac_try_echo=$ac_try;;
14360 esac
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362   (eval "$ac_try") 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; } &&
14366          { ac_try='test -s conftest.$ac_objext'
14367   { (case "(($ac_try" in
14368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369   *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372   (eval "$ac_try") 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; }; then
14376   ac_header_compiler=yes
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381         ac_header_compiler=no
14382 fi
14383
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6; }
14387
14388 # Is the header present?
14389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 #include <$ac_header>
14398 _ACEOF
14399 if { (ac_try="$ac_cpp conftest.$ac_ext"
14400 case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } >/dev/null; then
14412   if test -s conftest.err; then
14413     ac_cpp_err=$ac_c_preproc_warn_flag
14414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14415   else
14416     ac_cpp_err=
14417   fi
14418 else
14419   ac_cpp_err=yes
14420 fi
14421 if test -z "$ac_cpp_err"; then
14422   ac_header_preproc=yes
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427   ac_header_preproc=no
14428 fi
14429
14430 rm -f conftest.err conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432 echo "${ECHO_T}$ac_header_preproc" >&6; }
14433
14434 # So?  What about this header?
14435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14436   yes:no: )
14437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14441     ac_header_preproc=yes
14442     ;;
14443   no:yes:* )
14444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14456     ( cat <<\_ASBOX
14457 ## ----------------------------------- ##
14458 ## Report this to llvmbugs@cs.uiuc.edu ##
14459 ## ----------------------------------- ##
14460 _ASBOX
14461      ) | sed "s/^/$as_me: WARNING:     /" >&2
14462     ;;
14463 esac
14464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469   eval "$as_ac_Header=\$ac_header_preproc"
14470 fi
14471 ac_res=`eval echo '${'$as_ac_Header'}'`
14472                { echo "$as_me:$LINENO: result: $ac_res" >&5
14473 echo "${ECHO_T}$ac_res" >&6; }
14474
14475 fi
14476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14477   cat >>confdefs.h <<_ACEOF
14478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14479 _ACEOF
14480
14481 fi
14482
14483 done
14484
14485
14486
14487
14488
14489
14490
14491 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14492 do
14493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14498   echo $ECHO_N "(cached) $ECHO_C" >&6
14499 fi
14500 ac_res=`eval echo '${'$as_ac_Header'}'`
14501                { echo "$as_me:$LINENO: result: $ac_res" >&5
14502 echo "${ECHO_T}$ac_res" >&6; }
14503 else
14504   # Is the header compilable?
14505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h.  */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h.  */
14513 $ac_includes_default
14514 #include <$ac_header>
14515 _ACEOF
14516 rm -f conftest.$ac_objext
14517 if { (ac_try="$ac_compile"
14518 case "(($ac_try" in
14519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520   *) ac_try_echo=$ac_try;;
14521 esac
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523   (eval "$ac_compile") 2>conftest.er1
14524   ac_status=$?
14525   grep -v '^ *+' conftest.er1 >conftest.err
14526   rm -f conftest.er1
14527   cat conftest.err >&5
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); } &&
14530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14531   { (case "(($ac_try" in
14532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533   *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536   (eval "$ac_try") 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }; } &&
14540          { ac_try='test -s conftest.$ac_objext'
14541   { (case "(($ac_try" in
14542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543   *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546   (eval "$ac_try") 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; }; then
14550   ac_header_compiler=yes
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555         ac_header_compiler=no
14556 fi
14557
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14560 echo "${ECHO_T}$ac_header_compiler" >&6; }
14561
14562 # Is the header present?
14563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h.  */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h.  */
14571 #include <$ac_header>
14572 _ACEOF
14573 if { (ac_try="$ac_cpp conftest.$ac_ext"
14574 case "(($ac_try" in
14575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576   *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14580   ac_status=$?
14581   grep -v '^ *+' conftest.er1 >conftest.err
14582   rm -f conftest.er1
14583   cat conftest.err >&5
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } >/dev/null; then
14586   if test -s conftest.err; then
14587     ac_cpp_err=$ac_c_preproc_warn_flag
14588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14589   else
14590     ac_cpp_err=
14591   fi
14592 else
14593   ac_cpp_err=yes
14594 fi
14595 if test -z "$ac_cpp_err"; then
14596   ac_header_preproc=yes
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601   ac_header_preproc=no
14602 fi
14603
14604 rm -f conftest.err conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14606 echo "${ECHO_T}$ac_header_preproc" >&6; }
14607
14608 # So?  What about this header?
14609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14610   yes:no: )
14611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14615     ac_header_preproc=yes
14616     ;;
14617   no:yes:* )
14618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14630     ( cat <<\_ASBOX
14631 ## ----------------------------------- ##
14632 ## Report this to llvmbugs@cs.uiuc.edu ##
14633 ## ----------------------------------- ##
14634 _ASBOX
14635      ) | sed "s/^/$as_me: WARNING:     /" >&2
14636     ;;
14637 esac
14638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643   eval "$as_ac_Header=\$ac_header_preproc"
14644 fi
14645 ac_res=`eval echo '${'$as_ac_Header'}'`
14646                { echo "$as_me:$LINENO: result: $ac_res" >&5
14647 echo "${ECHO_T}$ac_res" >&6; }
14648
14649 fi
14650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14651   cat >>confdefs.h <<_ACEOF
14652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14653 _ACEOF
14654
14655 fi
14656
14657 done
14658
14659
14660
14661 for ac_header in utime.h windows.h
14662 do
14663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14665   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 fi
14670 ac_res=`eval echo '${'$as_ac_Header'}'`
14671                { echo "$as_me:$LINENO: result: $ac_res" >&5
14672 echo "${ECHO_T}$ac_res" >&6; }
14673 else
14674   # Is the header compilable?
14675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h.  */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h.  */
14683 $ac_includes_default
14684 #include <$ac_header>
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (ac_try="$ac_compile"
14688 case "(($ac_try" in
14689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690   *) ac_try_echo=$ac_try;;
14691 esac
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693   (eval "$ac_compile") 2>conftest.er1
14694   ac_status=$?
14695   grep -v '^ *+' conftest.er1 >conftest.err
14696   rm -f conftest.er1
14697   cat conftest.err >&5
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14701   { (case "(($ac_try" in
14702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703   *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706   (eval "$ac_try") 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; } &&
14710          { ac_try='test -s conftest.$ac_objext'
14711   { (case "(($ac_try" in
14712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713   *) ac_try_echo=$ac_try;;
14714 esac
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716   (eval "$ac_try") 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; }; then
14720   ac_header_compiler=yes
14721 else
14722   echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14724
14725         ac_header_compiler=no
14726 fi
14727
14728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14730 echo "${ECHO_T}$ac_header_compiler" >&6; }
14731
14732 # Is the header present?
14733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h.  */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h.  */
14741 #include <$ac_header>
14742 _ACEOF
14743 if { (ac_try="$ac_cpp conftest.$ac_ext"
14744 case "(($ac_try" in
14745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746   *) ac_try_echo=$ac_try;;
14747 esac
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14750   ac_status=$?
14751   grep -v '^ *+' conftest.er1 >conftest.err
14752   rm -f conftest.er1
14753   cat conftest.err >&5
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } >/dev/null; then
14756   if test -s conftest.err; then
14757     ac_cpp_err=$ac_c_preproc_warn_flag
14758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14759   else
14760     ac_cpp_err=
14761   fi
14762 else
14763   ac_cpp_err=yes
14764 fi
14765 if test -z "$ac_cpp_err"; then
14766   ac_header_preproc=yes
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771   ac_header_preproc=no
14772 fi
14773
14774 rm -f conftest.err conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14776 echo "${ECHO_T}$ac_header_preproc" >&6; }
14777
14778 # So?  What about this header?
14779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14780   yes:no: )
14781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14785     ac_header_preproc=yes
14786     ;;
14787   no:yes:* )
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14800     ( cat <<\_ASBOX
14801 ## ----------------------------------- ##
14802 ## Report this to llvmbugs@cs.uiuc.edu ##
14803 ## ----------------------------------- ##
14804 _ASBOX
14805      ) | sed "s/^/$as_me: WARNING:     /" >&2
14806     ;;
14807 esac
14808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14811   echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813   eval "$as_ac_Header=\$ac_header_preproc"
14814 fi
14815 ac_res=`eval echo '${'$as_ac_Header'}'`
14816                { echo "$as_me:$LINENO: result: $ac_res" >&5
14817 echo "${ECHO_T}$ac_res" >&6; }
14818
14819 fi
14820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14821   cat >>confdefs.h <<_ACEOF
14822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14823 _ACEOF
14824
14825 fi
14826
14827 done
14828
14829
14830
14831
14832
14833
14834 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14835 do
14836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14838   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 fi
14843 ac_res=`eval echo '${'$as_ac_Header'}'`
14844                { echo "$as_me:$LINENO: result: $ac_res" >&5
14845 echo "${ECHO_T}$ac_res" >&6; }
14846 else
14847   # Is the header compilable?
14848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 $ac_includes_default
14857 #include <$ac_header>
14858 _ACEOF
14859 rm -f conftest.$ac_objext
14860 if { (ac_try="$ac_compile"
14861 case "(($ac_try" in
14862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863   *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866   (eval "$ac_compile") 2>conftest.er1
14867   ac_status=$?
14868   grep -v '^ *+' conftest.er1 >conftest.err
14869   rm -f conftest.er1
14870   cat conftest.err >&5
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } &&
14873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874   { (case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_try") 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; } &&
14883          { ac_try='test -s conftest.$ac_objext'
14884   { (case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_try") 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   ac_header_compiler=yes
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898         ac_header_compiler=no
14899 fi
14900
14901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14903 echo "${ECHO_T}$ac_header_compiler" >&6; }
14904
14905 # Is the header present?
14906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14908 cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 #include <$ac_header>
14915 _ACEOF
14916 if { (ac_try="$ac_cpp conftest.$ac_ext"
14917 case "(($ac_try" in
14918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919   *) ac_try_echo=$ac_try;;
14920 esac
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14923   ac_status=$?
14924   grep -v '^ *+' conftest.er1 >conftest.err
14925   rm -f conftest.er1
14926   cat conftest.err >&5
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } >/dev/null; then
14929   if test -s conftest.err; then
14930     ac_cpp_err=$ac_c_preproc_warn_flag
14931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14932   else
14933     ac_cpp_err=
14934   fi
14935 else
14936   ac_cpp_err=yes
14937 fi
14938 if test -z "$ac_cpp_err"; then
14939   ac_header_preproc=yes
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944   ac_header_preproc=no
14945 fi
14946
14947 rm -f conftest.err conftest.$ac_ext
14948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14949 echo "${ECHO_T}$ac_header_preproc" >&6; }
14950
14951 # So?  What about this header?
14952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14953   yes:no: )
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14958     ac_header_preproc=yes
14959     ;;
14960   no:yes:* )
14961     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14963     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14964 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14965     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14967     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14968 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14971     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14973     ( cat <<\_ASBOX
14974 ## ----------------------------------- ##
14975 ## Report this to llvmbugs@cs.uiuc.edu ##
14976 ## ----------------------------------- ##
14977 _ASBOX
14978      ) | sed "s/^/$as_me: WARNING:     /" >&2
14979     ;;
14980 esac
14981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14984   echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986   eval "$as_ac_Header=\$ac_header_preproc"
14987 fi
14988 ac_res=`eval echo '${'$as_ac_Header'}'`
14989                { echo "$as_me:$LINENO: result: $ac_res" >&5
14990 echo "${ECHO_T}$ac_res" >&6; }
14991
14992 fi
14993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14994   cat >>confdefs.h <<_ACEOF
14995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14996 _ACEOF
14997
14998 fi
14999
15000 done
15001
15002
15003
15004
15005
15006 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15007 do
15008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15010   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 fi
15015 ac_res=`eval echo '${'$as_ac_Header'}'`
15016                { echo "$as_me:$LINENO: result: $ac_res" >&5
15017 echo "${ECHO_T}$ac_res" >&6; }
15018 else
15019   # Is the header compilable?
15020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028 $ac_includes_default
15029 #include <$ac_header>
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038   (eval "$ac_compile") 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } &&
15045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046   { (case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_try") 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest.$ac_objext'
15056   { (case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_try") 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; }; then
15065   ac_header_compiler=yes
15066 else
15067   echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070         ac_header_compiler=no
15071 fi
15072
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075 echo "${ECHO_T}$ac_header_compiler" >&6; }
15076
15077 # Is the header present?
15078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 #include <$ac_header>
15087 _ACEOF
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091   *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15095   ac_status=$?
15096   grep -v '^ *+' conftest.er1 >conftest.err
15097   rm -f conftest.er1
15098   cat conftest.err >&5
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } >/dev/null; then
15101   if test -s conftest.err; then
15102     ac_cpp_err=$ac_c_preproc_warn_flag
15103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15104   else
15105     ac_cpp_err=
15106   fi
15107 else
15108   ac_cpp_err=yes
15109 fi
15110 if test -z "$ac_cpp_err"; then
15111   ac_header_preproc=yes
15112 else
15113   echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15115
15116   ac_header_preproc=no
15117 fi
15118
15119 rm -f conftest.err conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15121 echo "${ECHO_T}$ac_header_preproc" >&6; }
15122
15123 # So?  What about this header?
15124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15125   yes:no: )
15126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15130     ac_header_preproc=yes
15131     ;;
15132   no:yes:* )
15133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15145     ( cat <<\_ASBOX
15146 ## ----------------------------------- ##
15147 ## Report this to llvmbugs@cs.uiuc.edu ##
15148 ## ----------------------------------- ##
15149 _ASBOX
15150      ) | sed "s/^/$as_me: WARNING:     /" >&2
15151     ;;
15152 esac
15153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15156   echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158   eval "$as_ac_Header=\$ac_header_preproc"
15159 fi
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161                { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15163
15164 fi
15165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15166   cat >>confdefs.h <<_ACEOF
15167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15168 _ACEOF
15169
15170 fi
15171
15172 done
15173
15174
15175 for ac_header in valgrind/valgrind.h
15176 do
15177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 fi
15184 ac_res=`eval echo '${'$as_ac_Header'}'`
15185                { echo "$as_me:$LINENO: result: $ac_res" >&5
15186 echo "${ECHO_T}$ac_res" >&6; }
15187 else
15188   # Is the header compilable?
15189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197 $ac_includes_default
15198 #include <$ac_header>
15199 _ACEOF
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204   *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207   (eval "$ac_compile") 2>conftest.er1
15208   ac_status=$?
15209   grep -v '^ *+' conftest.er1 >conftest.err
15210   rm -f conftest.er1
15211   cat conftest.err >&5
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); } &&
15214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215   { (case "(($ac_try" in
15216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217   *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220   (eval "$ac_try") 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; } &&
15224          { ac_try='test -s conftest.$ac_objext'
15225   { (case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_try") 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; }; then
15234   ac_header_compiler=yes
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239         ac_header_compiler=no
15240 fi
15241
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15244 echo "${ECHO_T}$ac_header_compiler" >&6; }
15245
15246 # Is the header present?
15247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h.  */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h.  */
15255 #include <$ac_header>
15256 _ACEOF
15257 if { (ac_try="$ac_cpp conftest.$ac_ext"
15258 case "(($ac_try" in
15259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260   *) ac_try_echo=$ac_try;;
15261 esac
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15264   ac_status=$?
15265   grep -v '^ *+' conftest.er1 >conftest.err
15266   rm -f conftest.er1
15267   cat conftest.err >&5
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); } >/dev/null; then
15270   if test -s conftest.err; then
15271     ac_cpp_err=$ac_c_preproc_warn_flag
15272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15273   else
15274     ac_cpp_err=
15275   fi
15276 else
15277   ac_cpp_err=yes
15278 fi
15279 if test -z "$ac_cpp_err"; then
15280   ac_header_preproc=yes
15281 else
15282   echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285   ac_header_preproc=no
15286 fi
15287
15288 rm -f conftest.err conftest.$ac_ext
15289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15290 echo "${ECHO_T}$ac_header_preproc" >&6; }
15291
15292 # So?  What about this header?
15293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15294   yes:no: )
15295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15299     ac_header_preproc=yes
15300     ;;
15301   no:yes:* )
15302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15314     ( cat <<\_ASBOX
15315 ## ----------------------------------- ##
15316 ## Report this to llvmbugs@cs.uiuc.edu ##
15317 ## ----------------------------------- ##
15318 _ASBOX
15319      ) | sed "s/^/$as_me: WARNING:     /" >&2
15320     ;;
15321 esac
15322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327   eval "$as_ac_Header=\$ac_header_preproc"
15328 fi
15329 ac_res=`eval echo '${'$as_ac_Header'}'`
15330                { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15332
15333 fi
15334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15335   cat >>confdefs.h <<_ACEOF
15336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15337 _ACEOF
15338
15339 fi
15340
15341 done
15342
15343
15344 for ac_header in fenv.h
15345 do
15346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 fi
15353 ac_res=`eval echo '${'$as_ac_Header'}'`
15354                { echo "$as_me:$LINENO: result: $ac_res" >&5
15355 echo "${ECHO_T}$ac_res" >&6; }
15356 else
15357   # Is the header compilable?
15358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h.  */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h.  */
15366 $ac_includes_default
15367 #include <$ac_header>
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373   *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376   (eval "$ac_compile") 2>conftest.er1
15377   ac_status=$?
15378   grep -v '^ *+' conftest.er1 >conftest.err
15379   rm -f conftest.er1
15380   cat conftest.err >&5
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); } &&
15383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384   { (case "(($ac_try" in
15385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386   *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389   (eval "$ac_try") 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; } &&
15393          { ac_try='test -s conftest.$ac_objext'
15394   { (case "(($ac_try" in
15395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396   *) ac_try_echo=$ac_try;;
15397 esac
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399   (eval "$ac_try") 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403   ac_header_compiler=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408         ac_header_compiler=no
15409 fi
15410
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413 echo "${ECHO_T}$ac_header_compiler" >&6; }
15414
15415 # Is the header present?
15416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15418 cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424 #include <$ac_header>
15425 _ACEOF
15426 if { (ac_try="$ac_cpp conftest.$ac_ext"
15427 case "(($ac_try" in
15428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429   *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15433   ac_status=$?
15434   grep -v '^ *+' conftest.er1 >conftest.err
15435   rm -f conftest.er1
15436   cat conftest.err >&5
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); } >/dev/null; then
15439   if test -s conftest.err; then
15440     ac_cpp_err=$ac_c_preproc_warn_flag
15441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15442   else
15443     ac_cpp_err=
15444   fi
15445 else
15446   ac_cpp_err=yes
15447 fi
15448 if test -z "$ac_cpp_err"; then
15449   ac_header_preproc=yes
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454   ac_header_preproc=no
15455 fi
15456
15457 rm -f conftest.err conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15459 echo "${ECHO_T}$ac_header_preproc" >&6; }
15460
15461 # So?  What about this header?
15462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15463   yes:no: )
15464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15468     ac_header_preproc=yes
15469     ;;
15470   no:yes:* )
15471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15473     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15474 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15478 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15481     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15483     ( cat <<\_ASBOX
15484 ## ----------------------------------- ##
15485 ## Report this to llvmbugs@cs.uiuc.edu ##
15486 ## ----------------------------------- ##
15487 _ASBOX
15488      ) | sed "s/^/$as_me: WARNING:     /" >&2
15489     ;;
15490 esac
15491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494   echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496   eval "$as_ac_Header=\$ac_header_preproc"
15497 fi
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499                { echo "$as_me:$LINENO: result: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15501
15502 fi
15503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504   cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15506 _ACEOF
15507
15508 fi
15509
15510 done
15511
15512 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15513
15514 for ac_header in pthread.h
15515 do
15516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521   echo $ECHO_N "(cached) $ECHO_C" >&6
15522 fi
15523 ac_res=`eval echo '${'$as_ac_Header'}'`
15524                { echo "$as_me:$LINENO: result: $ac_res" >&5
15525 echo "${ECHO_T}$ac_res" >&6; }
15526 else
15527   # Is the header compilable?
15528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536 $ac_includes_default
15537 #include <$ac_header>
15538 _ACEOF
15539 rm -f conftest.$ac_objext
15540 if { (ac_try="$ac_compile"
15541 case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_compile") 2>conftest.er1
15547   ac_status=$?
15548   grep -v '^ *+' conftest.er1 >conftest.err
15549   rm -f conftest.er1
15550   cat conftest.err >&5
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); } &&
15553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15554   { (case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559   (eval "$ac_try") 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; } &&
15563          { ac_try='test -s conftest.$ac_objext'
15564   { (case "(($ac_try" in
15565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566   *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569   (eval "$ac_try") 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); }; }; then
15573   ac_header_compiler=yes
15574 else
15575   echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578         ac_header_compiler=no
15579 fi
15580
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15583 echo "${ECHO_T}$ac_header_compiler" >&6; }
15584
15585 # Is the header present?
15586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h.  */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h.  */
15594 #include <$ac_header>
15595 _ACEOF
15596 if { (ac_try="$ac_cpp conftest.$ac_ext"
15597 case "(($ac_try" in
15598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599   *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15603   ac_status=$?
15604   grep -v '^ *+' conftest.er1 >conftest.err
15605   rm -f conftest.er1
15606   cat conftest.err >&5
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); } >/dev/null; then
15609   if test -s conftest.err; then
15610     ac_cpp_err=$ac_c_preproc_warn_flag
15611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15612   else
15613     ac_cpp_err=
15614   fi
15615 else
15616   ac_cpp_err=yes
15617 fi
15618 if test -z "$ac_cpp_err"; then
15619   ac_header_preproc=yes
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624   ac_header_preproc=no
15625 fi
15626
15627 rm -f conftest.err conftest.$ac_ext
15628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15629 echo "${ECHO_T}$ac_header_preproc" >&6; }
15630
15631 # So?  What about this header?
15632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15633   yes:no: )
15634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15638     ac_header_preproc=yes
15639     ;;
15640   no:yes:* )
15641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15653     ( cat <<\_ASBOX
15654 ## ----------------------------------- ##
15655 ## Report this to llvmbugs@cs.uiuc.edu ##
15656 ## ----------------------------------- ##
15657 _ASBOX
15658      ) | sed "s/^/$as_me: WARNING:     /" >&2
15659     ;;
15660 esac
15661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15664   echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666   eval "$as_ac_Header=\$ac_header_preproc"
15667 fi
15668 ac_res=`eval echo '${'$as_ac_Header'}'`
15669                { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15671
15672 fi
15673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15674   cat >>confdefs.h <<_ACEOF
15675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15676 _ACEOF
15677  HAVE_PTHREAD=1
15678
15679 else
15680   HAVE_PTHREAD=0
15681
15682 fi
15683
15684 done
15685
15686 else
15687   HAVE_PTHREAD=0
15688
15689 fi
15690
15691 if test "$llvm_cv_enable_libffi" = "yes" ; then
15692
15693
15694 for ac_header in ffi.h ffi/ffi.h
15695 do
15696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15698   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 fi
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704                { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15706 else
15707   # Is the header compilable?
15708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15710 cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716 $ac_includes_default
15717 #include <$ac_header>
15718 _ACEOF
15719 rm -f conftest.$ac_objext
15720 if { (ac_try="$ac_compile"
15721 case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726   (eval "$ac_compile") 2>conftest.er1
15727   ac_status=$?
15728   grep -v '^ *+' conftest.er1 >conftest.err
15729   rm -f conftest.er1
15730   cat conftest.err >&5
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } &&
15733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15734   { (case "(($ac_try" in
15735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736   *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739   (eval "$ac_try") 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; } &&
15743          { ac_try='test -s conftest.$ac_objext'
15744   { (case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_try") 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; }; then
15753   ac_header_compiler=yes
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758         ac_header_compiler=no
15759 fi
15760
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15763 echo "${ECHO_T}$ac_header_compiler" >&6; }
15764
15765 # Is the header present?
15766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774 #include <$ac_header>
15775 _ACEOF
15776 if { (ac_try="$ac_cpp conftest.$ac_ext"
15777 case "(($ac_try" in
15778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779   *) ac_try_echo=$ac_try;;
15780 esac
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15783   ac_status=$?
15784   grep -v '^ *+' conftest.er1 >conftest.err
15785   rm -f conftest.er1
15786   cat conftest.err >&5
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); } >/dev/null; then
15789   if test -s conftest.err; then
15790     ac_cpp_err=$ac_c_preproc_warn_flag
15791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15792   else
15793     ac_cpp_err=
15794   fi
15795 else
15796   ac_cpp_err=yes
15797 fi
15798 if test -z "$ac_cpp_err"; then
15799   ac_header_preproc=yes
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804   ac_header_preproc=no
15805 fi
15806
15807 rm -f conftest.err conftest.$ac_ext
15808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15809 echo "${ECHO_T}$ac_header_preproc" >&6; }
15810
15811 # So?  What about this header?
15812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15813   yes:no: )
15814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15818     ac_header_preproc=yes
15819     ;;
15820   no:yes:* )
15821     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15823     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15824 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15825     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15827     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15828 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15831     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15833     ( cat <<\_ASBOX
15834 ## ----------------------------------- ##
15835 ## Report this to llvmbugs@cs.uiuc.edu ##
15836 ## ----------------------------------- ##
15837 _ASBOX
15838      ) | sed "s/^/$as_me: WARNING:     /" >&2
15839     ;;
15840 esac
15841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844   echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846   eval "$as_ac_Header=\$ac_header_preproc"
15847 fi
15848 ac_res=`eval echo '${'$as_ac_Header'}'`
15849                { echo "$as_me:$LINENO: result: $ac_res" >&5
15850 echo "${ECHO_T}$ac_res" >&6; }
15851
15852 fi
15853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15854   cat >>confdefs.h <<_ACEOF
15855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15856 _ACEOF
15857
15858 fi
15859
15860 done
15861
15862 fi
15863
15864
15865 for ac_header in CrashReporterClient.h
15866 do
15867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15872   echo $ECHO_N "(cached) $ECHO_C" >&6
15873 fi
15874 ac_res=`eval echo '${'$as_ac_Header'}'`
15875                { echo "$as_me:$LINENO: result: $ac_res" >&5
15876 echo "${ECHO_T}$ac_res" >&6; }
15877 else
15878   # Is the header compilable?
15879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h.  */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h.  */
15887 $ac_includes_default
15888 #include <$ac_header>
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (ac_try="$ac_compile"
15892 case "(($ac_try" in
15893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894   *) ac_try_echo=$ac_try;;
15895 esac
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897   (eval "$ac_compile") 2>conftest.er1
15898   ac_status=$?
15899   grep -v '^ *+' conftest.er1 >conftest.err
15900   rm -f conftest.er1
15901   cat conftest.err >&5
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } &&
15904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905   { (case "(($ac_try" in
15906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907   *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910   (eval "$ac_try") 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; } &&
15914          { ac_try='test -s conftest.$ac_objext'
15915   { (case "(($ac_try" in
15916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917   *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920   (eval "$ac_try") 2>&5
15921   ac_status=$?
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); }; }; then
15924   ac_header_compiler=yes
15925 else
15926   echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15928
15929         ac_header_compiler=no
15930 fi
15931
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15934 echo "${ECHO_T}$ac_header_compiler" >&6; }
15935
15936 # Is the header present?
15937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h.  */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h.  */
15945 #include <$ac_header>
15946 _ACEOF
15947 if { (ac_try="$ac_cpp conftest.$ac_ext"
15948 case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } >/dev/null; then
15960   if test -s conftest.err; then
15961     ac_cpp_err=$ac_c_preproc_warn_flag
15962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15963   else
15964     ac_cpp_err=
15965   fi
15966 else
15967   ac_cpp_err=yes
15968 fi
15969 if test -z "$ac_cpp_err"; then
15970   ac_header_preproc=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975   ac_header_preproc=no
15976 fi
15977
15978 rm -f conftest.err conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15980 echo "${ECHO_T}$ac_header_preproc" >&6; }
15981
15982 # So?  What about this header?
15983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15984   yes:no: )
15985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15989     ac_header_preproc=yes
15990     ;;
15991   no:yes:* )
15992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16004     ( cat <<\_ASBOX
16005 ## ----------------------------------- ##
16006 ## Report this to llvmbugs@cs.uiuc.edu ##
16007 ## ----------------------------------- ##
16008 _ASBOX
16009      ) | sed "s/^/$as_me: WARNING:     /" >&2
16010     ;;
16011 esac
16012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015   echo $ECHO_N "(cached) $ECHO_C" >&6
16016 else
16017   eval "$as_ac_Header=\$ac_header_preproc"
16018 fi
16019 ac_res=`eval echo '${'$as_ac_Header'}'`
16020                { echo "$as_me:$LINENO: result: $ac_res" >&5
16021 echo "${ECHO_T}$ac_res" >&6; }
16022
16023 fi
16024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16025   cat >>confdefs.h <<_ACEOF
16026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16027 _ACEOF
16028
16029 fi
16030
16031 done
16032
16033
16034 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16035 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 extern const char *__crashreporter_info__;
16043       int main() {
16044         __crashreporter_info__ = "test";
16045         return 0;
16046       }
16047
16048 _ACEOF
16049 rm -f conftest.$ac_objext conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_link") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } &&
16063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16064   { (case "(($ac_try" in
16065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066   *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069   (eval "$ac_try") 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; } &&
16073          { ac_try='test -s conftest$ac_exeext'
16074   { (case "(($ac_try" in
16075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076   *) ac_try_echo=$ac_try;;
16077 esac
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079   (eval "$ac_try") 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   { echo "$as_me:$LINENO: result: yes" >&5
16084 echo "${ECHO_T}yes" >&6; }
16085
16086 cat >>confdefs.h <<\_ACEOF
16087 #define HAVE_CRASHREPORTER_INFO 1
16088 _ACEOF
16089
16090 else
16091   echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094         { echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6; }
16096
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_CRASHREPORTER_INFO 0
16099 _ACEOF
16100
16101 fi
16102
16103 rm -f core conftest.err conftest.$ac_objext \
16104       conftest$ac_exeext conftest.$ac_ext
16105
16106
16107
16108
16109   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16110 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16111 if test "${ac_cv_huge_val_sanity+set}" = set; then
16112   echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114
16115     ac_ext=cpp
16116 ac_cpp='$CXXCPP $CPPFLAGS'
16117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16120
16121     ac_save_CXXFLAGS=$CXXFLAGS
16122     CXXFLAGS=-pedantic
16123     if test "$cross_compiling" = yes; then
16124   ac_cv_huge_val_sanity=yes
16125 else
16126   cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h.  */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h.  */
16132 #include <math.h>
16133 int
16134 main ()
16135 {
16136 double x = HUGE_VAL; return x != x;
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest$ac_exeext
16142 if { (ac_try="$ac_link"
16143 case "(($ac_try" in
16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145   *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148   (eval "$ac_link") 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16152   { (case "(($ac_try" in
16153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154   *) ac_try_echo=$ac_try;;
16155 esac
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157   (eval "$ac_try") 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   ac_cv_huge_val_sanity=yes
16162 else
16163   echo "$as_me: program exited with status $ac_status" >&5
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 ( exit $ac_status )
16168 ac_cv_huge_val_sanity=no
16169 fi
16170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16171 fi
16172
16173
16174     CXXFLAGS=$ac_save_CXXFLAGS
16175     ac_ext=c
16176 ac_cpp='$CPP $CPPFLAGS'
16177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16180
16181
16182 fi
16183 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16184 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16185   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16186
16187
16188 { echo "$as_me:$LINENO: checking for pid_t" >&5
16189 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16190 if test "${ac_cv_type_pid_t+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199 $ac_includes_default
16200 typedef pid_t ac__type_new_;
16201 int
16202 main ()
16203 {
16204 if ((ac__type_new_ *) 0)
16205   return 0;
16206 if (sizeof (ac__type_new_))
16207   return 0;
16208   ;
16209   return 0;
16210 }
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (ac_try="$ac_compile"
16214 case "(($ac_try" in
16215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216   *) ac_try_echo=$ac_try;;
16217 esac
16218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219   (eval "$ac_compile") 2>conftest.er1
16220   ac_status=$?
16221   grep -v '^ *+' conftest.er1 >conftest.err
16222   rm -f conftest.er1
16223   cat conftest.err >&5
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); } &&
16226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16227   { (case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_try") 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; } &&
16236          { ac_try='test -s conftest.$ac_objext'
16237   { (case "(($ac_try" in
16238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239   *) ac_try_echo=$ac_try;;
16240 esac
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242   (eval "$ac_try") 2>&5
16243   ac_status=$?
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); }; }; then
16246   ac_cv_type_pid_t=yes
16247 else
16248   echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251         ac_cv_type_pid_t=no
16252 fi
16253
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255 fi
16256 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16257 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16258 if test $ac_cv_type_pid_t = yes; then
16259   :
16260 else
16261
16262 cat >>confdefs.h <<_ACEOF
16263 #define pid_t int
16264 _ACEOF
16265
16266 fi
16267
16268 { echo "$as_me:$LINENO: checking for size_t" >&5
16269 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16270 if test "${ac_cv_type_size_t+set}" = set; then
16271   echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273   cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279 $ac_includes_default
16280 typedef size_t ac__type_new_;
16281 int
16282 main ()
16283 {
16284 if ((ac__type_new_ *) 0)
16285   return 0;
16286 if (sizeof (ac__type_new_))
16287   return 0;
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (ac_try="$ac_compile"
16294 case "(($ac_try" in
16295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296   *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299   (eval "$ac_compile") 2>conftest.er1
16300   ac_status=$?
16301   grep -v '^ *+' conftest.er1 >conftest.err
16302   rm -f conftest.er1
16303   cat conftest.err >&5
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); } &&
16306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307   { (case "(($ac_try" in
16308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309   *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312   (eval "$ac_try") 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; } &&
16316          { ac_try='test -s conftest.$ac_objext'
16317   { (case "(($ac_try" in
16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319   *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322   (eval "$ac_try") 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; }; then
16326   ac_cv_type_size_t=yes
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331         ac_cv_type_size_t=no
16332 fi
16333
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 fi
16336 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16337 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16338 if test $ac_cv_type_size_t = yes; then
16339   :
16340 else
16341
16342 cat >>confdefs.h <<_ACEOF
16343 #define size_t unsigned int
16344 _ACEOF
16345
16346 fi
16347
16348
16349 cat >>confdefs.h <<_ACEOF
16350 #define RETSIGTYPE void
16351 _ACEOF
16352
16353 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16354 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16355 if test "${ac_cv_struct_tm+set}" = set; then
16356   echo $ECHO_N "(cached) $ECHO_C" >&6
16357 else
16358   cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364 #include <sys/types.h>
16365 #include <time.h>
16366
16367 int
16368 main ()
16369 {
16370 struct tm *tp; tp->tm_sec;
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_compile") 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390   { (case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395   (eval "$ac_try") 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; } &&
16399          { ac_try='test -s conftest.$ac_objext'
16400   { (case "(($ac_try" in
16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402   *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405   (eval "$ac_try") 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   ac_cv_struct_tm=time.h
16410 else
16411   echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414         ac_cv_struct_tm=sys/time.h
16415 fi
16416
16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16420 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16421 if test $ac_cv_struct_tm = sys/time.h; then
16422
16423 cat >>confdefs.h <<\_ACEOF
16424 #define TM_IN_SYS_TIME 1
16425 _ACEOF
16426
16427 fi
16428
16429 { echo "$as_me:$LINENO: checking for int64_t" >&5
16430 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16431 if test "${ac_cv_type_int64_t+set}" = set; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440 $ac_includes_default
16441 typedef int64_t ac__type_new_;
16442 int
16443 main ()
16444 {
16445 if ((ac__type_new_ *) 0)
16446   return 0;
16447 if (sizeof (ac__type_new_))
16448   return 0;
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (ac_try="$ac_compile"
16455 case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_compile") 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468   { (case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_try") 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; } &&
16477          { ac_try='test -s conftest.$ac_objext'
16478   { (case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483   (eval "$ac_try") 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_type_int64_t=yes
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492         ac_cv_type_int64_t=no
16493 fi
16494
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16498 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16499 if test $ac_cv_type_int64_t = yes; then
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_INT64_T 1
16503 _ACEOF
16504
16505
16506 else
16507   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16508 echo "$as_me: error: Type int64_t required but not found" >&2;}
16509    { (exit 1); exit 1; }; }
16510 fi
16511
16512 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16513 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16514 if test "${ac_cv_type_uint64_t+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h.  */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h.  */
16523 $ac_includes_default
16524 typedef uint64_t ac__type_new_;
16525 int
16526 main ()
16527 {
16528 if ((ac__type_new_ *) 0)
16529   return 0;
16530 if (sizeof (ac__type_new_))
16531   return 0;
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_compile") 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } &&
16550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551   { (case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_try") 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; } &&
16560          { ac_try='test -s conftest.$ac_objext'
16561   { (case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_try") 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; }; then
16570   ac_cv_type_uint64_t=yes
16571 else
16572   echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575         ac_cv_type_uint64_t=no
16576 fi
16577
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16579 fi
16580 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16581 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16582 if test $ac_cv_type_uint64_t = yes; then
16583
16584 cat >>confdefs.h <<_ACEOF
16585 #define HAVE_UINT64_T 1
16586 _ACEOF
16587
16588
16589 else
16590   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16591 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16592 if test "${ac_cv_type_u_int64_t+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 $ac_includes_default
16602 typedef u_int64_t ac__type_new_;
16603 int
16604 main ()
16605 {
16606 if ((ac__type_new_ *) 0)
16607   return 0;
16608 if (sizeof (ac__type_new_))
16609   return 0;
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618   *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621   (eval "$ac_compile") 2>conftest.er1
16622   ac_status=$?
16623   grep -v '^ *+' conftest.er1 >conftest.err
16624   rm -f conftest.er1
16625   cat conftest.err >&5
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); } &&
16628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16629   { (case "(($ac_try" in
16630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631   *) ac_try_echo=$ac_try;;
16632 esac
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634   (eval "$ac_try") 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); }; } &&
16638          { ac_try='test -s conftest.$ac_objext'
16639   { (case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_try") 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_cv_type_u_int64_t=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653         ac_cv_type_u_int64_t=no
16654 fi
16655
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 fi
16658 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16659 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16660 if test $ac_cv_type_u_int64_t = yes; then
16661
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_U_INT64_T 1
16664 _ACEOF
16665
16666
16667 else
16668   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16669 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16670    { (exit 1); exit 1; }; }
16671 fi
16672
16673 fi
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16685 do
16686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16700 #define $ac_func innocuous_$ac_func
16701
16702 /* System header to define __stub macros and hopefully few prototypes,
16703     which can conflict with char $ac_func (); below.
16704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16705     <limits.h> exists even on freestanding compilers.  */
16706
16707 #ifdef __STDC__
16708 # include <limits.h>
16709 #else
16710 # include <assert.h>
16711 #endif
16712
16713 #undef $ac_func
16714
16715 /* Override any GCC internal prototype to avoid an error.
16716    Use char because int might match the return type of a GCC
16717    builtin and then its argument prototype would still apply.  */
16718 #ifdef __cplusplus
16719 extern "C"
16720 #endif
16721 char $ac_func ();
16722 /* The GNU C library defines this for functions which it implements
16723     to always fail with ENOSYS.  Some functions are actually named
16724     something starting with __ and the normal name is an alias.  */
16725 #if defined __stub_$ac_func || defined __stub___$ac_func
16726 choke me
16727 #endif
16728
16729 int
16730 main ()
16731 {
16732 return $ac_func ();
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744   (eval "$ac_link") 2>conftest.er1
16745   ac_status=$?
16746   grep -v '^ *+' conftest.er1 >conftest.err
16747   rm -f conftest.er1
16748   cat conftest.err >&5
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } &&
16751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752   { (case "(($ac_try" in
16753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754   *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757   (eval "$ac_try") 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; } &&
16761          { ac_try='test -s conftest$ac_exeext'
16762   { (case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_try") 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; }; then
16771   eval "$as_ac_var=yes"
16772 else
16773   echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776         eval "$as_ac_var=no"
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext \
16780       conftest$ac_exeext conftest.$ac_ext
16781 fi
16782 ac_res=`eval echo '${'$as_ac_var'}'`
16783                { echo "$as_me:$LINENO: result: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16785 if test `eval echo '${'$as_ac_var'}'` = yes; then
16786   cat >>confdefs.h <<_ACEOF
16787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16788 _ACEOF
16789
16790 fi
16791 done
16792
16793
16794
16795
16796
16797 for ac_func in powf fmodf strtof round
16798 do
16799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16803   echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805   cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h.  */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h.  */
16811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16813 #define $ac_func innocuous_$ac_func
16814
16815 /* System header to define __stub macros and hopefully few prototypes,
16816     which can conflict with char $ac_func (); below.
16817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16818     <limits.h> exists even on freestanding compilers.  */
16819
16820 #ifdef __STDC__
16821 # include <limits.h>
16822 #else
16823 # include <assert.h>
16824 #endif
16825
16826 #undef $ac_func
16827
16828 /* Override any GCC internal prototype to avoid an error.
16829    Use char because int might match the return type of a GCC
16830    builtin and then its argument prototype would still apply.  */
16831 #ifdef __cplusplus
16832 extern "C"
16833 #endif
16834 char $ac_func ();
16835 /* The GNU C library defines this for functions which it implements
16836     to always fail with ENOSYS.  Some functions are actually named
16837     something starting with __ and the normal name is an alias.  */
16838 #if defined __stub_$ac_func || defined __stub___$ac_func
16839 choke me
16840 #endif
16841
16842 int
16843 main ()
16844 {
16845 return $ac_func ();
16846   ;
16847   return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_link") 2>conftest.er1
16858   ac_status=$?
16859   grep -v '^ *+' conftest.er1 >conftest.err
16860   rm -f conftest.er1
16861   cat conftest.err >&5
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); } &&
16864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16865   { (case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870   (eval "$ac_try") 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; } &&
16874          { ac_try='test -s conftest$ac_exeext'
16875   { (case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_try") 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; }; then
16884   eval "$as_ac_var=yes"
16885 else
16886   echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889         eval "$as_ac_var=no"
16890 fi
16891
16892 rm -f core conftest.err conftest.$ac_objext \
16893       conftest$ac_exeext conftest.$ac_ext
16894 fi
16895 ac_res=`eval echo '${'$as_ac_var'}'`
16896                { echo "$as_me:$LINENO: result: $ac_res" >&5
16897 echo "${ECHO_T}$ac_res" >&6; }
16898 if test `eval echo '${'$as_ac_var'}'` = yes; then
16899   cat >>confdefs.h <<_ACEOF
16900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16901 _ACEOF
16902
16903 fi
16904 done
16905
16906
16907
16908
16909
16910
16911 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16912 do
16913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16917   echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919   cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h.  */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h.  */
16925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16927 #define $ac_func innocuous_$ac_func
16928
16929 /* System header to define __stub macros and hopefully few prototypes,
16930     which can conflict with char $ac_func (); below.
16931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16932     <limits.h> exists even on freestanding compilers.  */
16933
16934 #ifdef __STDC__
16935 # include <limits.h>
16936 #else
16937 # include <assert.h>
16938 #endif
16939
16940 #undef $ac_func
16941
16942 /* Override any GCC internal prototype to avoid an error.
16943    Use char because int might match the return type of a GCC
16944    builtin and then its argument prototype would still apply.  */
16945 #ifdef __cplusplus
16946 extern "C"
16947 #endif
16948 char $ac_func ();
16949 /* The GNU C library defines this for functions which it implements
16950     to always fail with ENOSYS.  Some functions are actually named
16951     something starting with __ and the normal name is an alias.  */
16952 #if defined __stub_$ac_func || defined __stub___$ac_func
16953 choke me
16954 #endif
16955
16956 int
16957 main ()
16958 {
16959 return $ac_func ();
16960   ;
16961   return 0;
16962 }
16963 _ACEOF
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (ac_try="$ac_link"
16966 case "(($ac_try" in
16967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968   *) ac_try_echo=$ac_try;;
16969 esac
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971   (eval "$ac_link") 2>conftest.er1
16972   ac_status=$?
16973   grep -v '^ *+' conftest.er1 >conftest.err
16974   rm -f conftest.er1
16975   cat conftest.err >&5
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); } &&
16978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16979   { (case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984   (eval "$ac_try") 2>&5
16985   ac_status=$?
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); }; } &&
16988          { ac_try='test -s conftest$ac_exeext'
16989   { (case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_try") 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; }; then
16998   eval "$as_ac_var=yes"
16999 else
17000   echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003         eval "$as_ac_var=no"
17004 fi
17005
17006 rm -f core conftest.err conftest.$ac_objext \
17007       conftest$ac_exeext conftest.$ac_ext
17008 fi
17009 ac_res=`eval echo '${'$as_ac_var'}'`
17010                { echo "$as_me:$LINENO: result: $ac_res" >&5
17011 echo "${ECHO_T}$ac_res" >&6; }
17012 if test `eval echo '${'$as_ac_var'}'` = yes; then
17013   cat >>confdefs.h <<_ACEOF
17014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17015 _ACEOF
17016
17017 fi
17018 done
17019
17020
17021
17022
17023 for ac_func in isatty mkdtemp mkstemp
17024 do
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029   echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031   cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h.  */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h.  */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17039 #define $ac_func innocuous_$ac_func
17040
17041 /* System header to define __stub macros and hopefully few prototypes,
17042     which can conflict with char $ac_func (); below.
17043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044     <limits.h> exists even on freestanding compilers.  */
17045
17046 #ifdef __STDC__
17047 # include <limits.h>
17048 #else
17049 # include <assert.h>
17050 #endif
17051
17052 #undef $ac_func
17053
17054 /* Override any GCC internal prototype to avoid an error.
17055    Use char because int might match the return type of a GCC
17056    builtin and then its argument prototype would still apply.  */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char $ac_func ();
17061 /* The GNU C library defines this for functions which it implements
17062     to always fail with ENOSYS.  Some functions are actually named
17063     something starting with __ and the normal name is an alias.  */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17065 choke me
17066 #endif
17067
17068 int
17069 main ()
17070 {
17071 return $ac_func ();
17072   ;
17073   return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_link") 2>conftest.er1
17084   ac_status=$?
17085   grep -v '^ *+' conftest.er1 >conftest.err
17086   rm -f conftest.er1
17087   cat conftest.err >&5
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } &&
17090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091   { (case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_try") 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; } &&
17100          { ac_try='test -s conftest$ac_exeext'
17101   { (case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_try") 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }; }; then
17110   eval "$as_ac_var=yes"
17111 else
17112   echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115         eval "$as_ac_var=no"
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext \
17119       conftest$ac_exeext conftest.$ac_ext
17120 fi
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122                { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125   cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17127 _ACEOF
17128
17129 fi
17130 done
17131
17132
17133
17134
17135
17136
17137
17138 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17139 do
17140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144   echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146   cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h.  */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h.  */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17154 #define $ac_func innocuous_$ac_func
17155
17156 /* System header to define __stub macros and hopefully few prototypes,
17157     which can conflict with char $ac_func (); below.
17158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159     <limits.h> exists even on freestanding compilers.  */
17160
17161 #ifdef __STDC__
17162 # include <limits.h>
17163 #else
17164 # include <assert.h>
17165 #endif
17166
17167 #undef $ac_func
17168
17169 /* Override any GCC internal prototype to avoid an error.
17170    Use char because int might match the return type of a GCC
17171    builtin and then its argument prototype would still apply.  */
17172 #ifdef __cplusplus
17173 extern "C"
17174 #endif
17175 char $ac_func ();
17176 /* The GNU C library defines this for functions which it implements
17177     to always fail with ENOSYS.  Some functions are actually named
17178     something starting with __ and the normal name is an alias.  */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17180 choke me
17181 #endif
17182
17183 int
17184 main ()
17185 {
17186 return $ac_func ();
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198   (eval "$ac_link") 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; } &&
17215          { ac_try='test -s conftest$ac_exeext'
17216   { (case "(($ac_try" in
17217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218   *) ac_try_echo=$ac_try;;
17219 esac
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221   (eval "$ac_try") 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; }; then
17225   eval "$as_ac_var=yes"
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230         eval "$as_ac_var=no"
17231 fi
17232
17233 rm -f core conftest.err conftest.$ac_objext \
17234       conftest$ac_exeext conftest.$ac_ext
17235 fi
17236 ac_res=`eval echo '${'$as_ac_var'}'`
17237                { echo "$as_me:$LINENO: result: $ac_res" >&5
17238 echo "${ECHO_T}$ac_res" >&6; }
17239 if test `eval echo '${'$as_ac_var'}'` = yes; then
17240   cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 _ACEOF
17243
17244 fi
17245 done
17246
17247
17248
17249
17250 for ac_func in strerror strerror_r setenv
17251 do
17252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258   cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h.  */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h.  */
17264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17266 #define $ac_func innocuous_$ac_func
17267
17268 /* System header to define __stub macros and hopefully few prototypes,
17269     which can conflict with char $ac_func (); below.
17270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271     <limits.h> exists even on freestanding compilers.  */
17272
17273 #ifdef __STDC__
17274 # include <limits.h>
17275 #else
17276 # include <assert.h>
17277 #endif
17278
17279 #undef $ac_func
17280
17281 /* Override any GCC internal prototype to avoid an error.
17282    Use char because int might match the return type of a GCC
17283    builtin and then its argument prototype would still apply.  */
17284 #ifdef __cplusplus
17285 extern "C"
17286 #endif
17287 char $ac_func ();
17288 /* The GNU C library defines this for functions which it implements
17289     to always fail with ENOSYS.  Some functions are actually named
17290     something starting with __ and the normal name is an alias.  */
17291 #if defined __stub_$ac_func || defined __stub___$ac_func
17292 choke me
17293 #endif
17294
17295 int
17296 main ()
17297 {
17298 return $ac_func ();
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_link") 2>conftest.er1
17311   ac_status=$?
17312   grep -v '^ *+' conftest.er1 >conftest.err
17313   rm -f conftest.er1
17314   cat conftest.err >&5
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } &&
17317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318   { (case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_try") 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; } &&
17327          { ac_try='test -s conftest$ac_exeext'
17328   { (case "(($ac_try" in
17329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330   *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333   (eval "$ac_try") 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   eval "$as_ac_var=yes"
17338 else
17339   echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342         eval "$as_ac_var=no"
17343 fi
17344
17345 rm -f core conftest.err conftest.$ac_objext \
17346       conftest$ac_exeext conftest.$ac_ext
17347 fi
17348 ac_res=`eval echo '${'$as_ac_var'}'`
17349                { echo "$as_me:$LINENO: result: $ac_res" >&5
17350 echo "${ECHO_T}$ac_res" >&6; }
17351 if test `eval echo '${'$as_ac_var'}'` = yes; then
17352   cat >>confdefs.h <<_ACEOF
17353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17354 _ACEOF
17355
17356 fi
17357 done
17358
17359
17360
17361
17362
17363 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17364 do
17365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17369   echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371   cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17379 #define $ac_func innocuous_$ac_func
17380
17381 /* System header to define __stub macros and hopefully few prototypes,
17382     which can conflict with char $ac_func (); below.
17383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17384     <limits.h> exists even on freestanding compilers.  */
17385
17386 #ifdef __STDC__
17387 # include <limits.h>
17388 #else
17389 # include <assert.h>
17390 #endif
17391
17392 #undef $ac_func
17393
17394 /* Override any GCC internal prototype to avoid an error.
17395    Use char because int might match the return type of a GCC
17396    builtin and then its argument prototype would still apply.  */
17397 #ifdef __cplusplus
17398 extern "C"
17399 #endif
17400 char $ac_func ();
17401 /* The GNU C library defines this for functions which it implements
17402     to always fail with ENOSYS.  Some functions are actually named
17403     something starting with __ and the normal name is an alias.  */
17404 #if defined __stub_$ac_func || defined __stub___$ac_func
17405 choke me
17406 #endif
17407
17408 int
17409 main ()
17410 {
17411 return $ac_func ();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_link") 2>conftest.er1
17424   ac_status=$?
17425   grep -v '^ *+' conftest.er1 >conftest.err
17426   rm -f conftest.er1
17427   cat conftest.err >&5
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } &&
17430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17431   { (case "(($ac_try" in
17432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433   *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436   (eval "$ac_try") 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); }; } &&
17440          { ac_try='test -s conftest$ac_exeext'
17441   { (case "(($ac_try" in
17442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443   *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446   (eval "$ac_try") 2>&5
17447   ac_status=$?
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); }; }; then
17450   eval "$as_ac_var=yes"
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455         eval "$as_ac_var=no"
17456 fi
17457
17458 rm -f core conftest.err conftest.$ac_objext \
17459       conftest$ac_exeext conftest.$ac_ext
17460 fi
17461 ac_res=`eval echo '${'$as_ac_var'}'`
17462                { echo "$as_me:$LINENO: result: $ac_res" >&5
17463 echo "${ECHO_T}$ac_res" >&6; }
17464 if test `eval echo '${'$as_ac_var'}'` = yes; then
17465   cat >>confdefs.h <<_ACEOF
17466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17467 _ACEOF
17468
17469 fi
17470 done
17471
17472
17473
17474
17475
17476
17477 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17478 do
17479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17483   echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485   cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h.  */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h.  */
17491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17493 #define $ac_func innocuous_$ac_func
17494
17495 /* System header to define __stub macros and hopefully few prototypes,
17496     which can conflict with char $ac_func (); below.
17497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498     <limits.h> exists even on freestanding compilers.  */
17499
17500 #ifdef __STDC__
17501 # include <limits.h>
17502 #else
17503 # include <assert.h>
17504 #endif
17505
17506 #undef $ac_func
17507
17508 /* Override any GCC internal prototype to avoid an error.
17509    Use char because int might match the return type of a GCC
17510    builtin and then its argument prototype would still apply.  */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 char $ac_func ();
17515 /* The GNU C library defines this for functions which it implements
17516     to always fail with ENOSYS.  Some functions are actually named
17517     something starting with __ and the normal name is an alias.  */
17518 #if defined __stub_$ac_func || defined __stub___$ac_func
17519 choke me
17520 #endif
17521
17522 int
17523 main ()
17524 {
17525 return $ac_func ();
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534   *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537   (eval "$ac_link") 2>conftest.er1
17538   ac_status=$?
17539   grep -v '^ *+' conftest.er1 >conftest.err
17540   rm -f conftest.er1
17541   cat conftest.err >&5
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); } &&
17544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17545   { (case "(($ac_try" in
17546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547   *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550   (eval "$ac_try") 2>&5
17551   ac_status=$?
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); }; } &&
17554          { ac_try='test -s conftest$ac_exeext'
17555   { (case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560   (eval "$ac_try") 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; }; then
17564   eval "$as_ac_var=yes"
17565 else
17566   echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17568
17569         eval "$as_ac_var=no"
17570 fi
17571
17572 rm -f core conftest.err conftest.$ac_objext \
17573       conftest$ac_exeext conftest.$ac_ext
17574 fi
17575 ac_res=`eval echo '${'$as_ac_var'}'`
17576                { echo "$as_me:$LINENO: result: $ac_res" >&5
17577 echo "${ECHO_T}$ac_res" >&6; }
17578 if test `eval echo '${'$as_ac_var'}'` = yes; then
17579   cat >>confdefs.h <<_ACEOF
17580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17581 _ACEOF
17582
17583 fi
17584 done
17585
17586 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17587 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17588 if test "${llvm_cv_c_printf_a+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   ac_ext=c
17592 ac_cpp='$CPP $CPPFLAGS'
17593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17596
17597  if test "$cross_compiling" = yes; then
17598   llvmac_cv_c_printf_a=no
17599 else
17600   cat >conftest.$ac_ext <<_ACEOF
17601
17602   /* confdefs.h.  */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h.  */
17607
17608 #include <stdio.h>
17609 #include <stdlib.h>
17610
17611 int
17612 main ()
17613 {
17614
17615 volatile double A, B;
17616 char Buffer[100];
17617 A = 1;
17618 A /= 10.0;
17619 sprintf(Buffer, "%a", A);
17620 B = atof(Buffer);
17621 if (A != B)
17622   return (1);
17623 if (A != 0x1.999999999999ap-4)
17624   return (1);
17625 return (0);
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest$ac_exeext
17631 if { (ac_try="$ac_link"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_link") 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641   { (case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_try") 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; }; then
17650   llvm_cv_c_printf_a=yes
17651 else
17652   echo "$as_me: program exited with status $ac_status" >&5
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 ( exit $ac_status )
17657 llvmac_cv_c_printf_a=no
17658 fi
17659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17660 fi
17661
17662
17663  ac_ext=c
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668
17669 fi
17670 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17671 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17672  if test "$llvm_cv_c_printf_a" = "yes"; then
17673
17674 cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_PRINTF_A 1
17676 _ACEOF
17677
17678  fi
17679
17680
17681 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17682 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17683 if test "${ac_cv_func_rand48+set}" = set; then
17684   echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686   ac_ext=cpp
17687 ac_cpp='$CXXCPP $CPPFLAGS'
17688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17691
17692    cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h.  */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h.  */
17698 #include <stdlib.h>
17699 int
17700 main ()
17701 {
17702 srand48(0);lrand48();drand48();
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711   *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714   (eval "$ac_compile") 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17722   { (case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_try") 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest.$ac_objext'
17732   { (case "(($ac_try" in
17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734   *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737   (eval "$ac_try") 2>&5
17738   ac_status=$?
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); }; }; then
17741   ac_cv_func_rand48=yes
17742 else
17743   echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746         ac_cv_func_rand48=no
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750   ac_ext=c
17751 ac_cpp='$CPP $CPPFLAGS'
17752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17755
17756 fi
17757 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17758 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17759
17760 if test "$ac_cv_func_rand48" = "yes" ; then
17761
17762 cat >>confdefs.h <<\_ACEOF
17763 #define HAVE_RAND48 1
17764 _ACEOF
17765
17766 fi
17767
17768
17769 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17770 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17771 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17772   echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774   cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h.  */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h.  */
17780 $ac_includes_default
17781 int
17782 main ()
17783 {
17784 #ifndef strerror_s
17785   char *p = (char *) strerror_s;
17786   return !p;
17787 #endif
17788
17789   ;
17790   return 0;
17791 }
17792 _ACEOF
17793 rm -f conftest.$ac_objext
17794 if { (ac_try="$ac_compile"
17795 case "(($ac_try" in
17796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797   *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800   (eval "$ac_compile") 2>conftest.er1
17801   ac_status=$?
17802   grep -v '^ *+' conftest.er1 >conftest.err
17803   rm -f conftest.er1
17804   cat conftest.err >&5
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17808   { (case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_try") 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; } &&
17817          { ac_try='test -s conftest.$ac_objext'
17818   { (case "(($ac_try" in
17819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820   *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823   (eval "$ac_try") 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; }; then
17827   ac_cv_have_decl_strerror_s=yes
17828 else
17829   echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832         ac_cv_have_decl_strerror_s=no
17833 fi
17834
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836 fi
17837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17838 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17839 if test $ac_cv_have_decl_strerror_s = yes; then
17840
17841 cat >>confdefs.h <<_ACEOF
17842 #define HAVE_DECL_STRERROR_S 1
17843 _ACEOF
17844
17845
17846 else
17847   cat >>confdefs.h <<_ACEOF
17848 #define HAVE_DECL_STRERROR_S 0
17849 _ACEOF
17850
17851
17852 fi
17853
17854
17855
17856 if test "$llvm_cv_os_type" = "MingW" ; then
17857   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17858 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17859 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17860   echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862   ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-lgcc  $LIBS"
17864 cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h.  */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h.  */
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872    Use char because int might match the return type of a GCC
17873    builtin and then its argument prototype would still apply.  */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char _alloca ();
17878 int
17879 main ()
17880 {
17881 return _alloca ();
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (ac_try="$ac_link"
17888 case "(($ac_try" in
17889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890   *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893   (eval "$ac_link") 2>conftest.er1
17894   ac_status=$?
17895   grep -v '^ *+' conftest.er1 >conftest.err
17896   rm -f conftest.er1
17897   cat conftest.err >&5
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); } &&
17900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901   { (case "(($ac_try" in
17902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903   *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906   (eval "$ac_try") 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; } &&
17910          { ac_try='test -s conftest$ac_exeext'
17911   { (case "(($ac_try" in
17912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913   *) ac_try_echo=$ac_try;;
17914 esac
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916   (eval "$ac_try") 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); }; }; then
17920   ac_cv_lib_gcc__alloca=yes
17921 else
17922   echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925         ac_cv_lib_gcc__alloca=no
17926 fi
17927
17928 rm -f core conftest.err conftest.$ac_objext \
17929       conftest$ac_exeext conftest.$ac_ext
17930 LIBS=$ac_check_lib_save_LIBS
17931 fi
17932 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17933 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17934 if test $ac_cv_lib_gcc__alloca = yes; then
17935
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE__ALLOCA 1
17938 _ACEOF
17939
17940 fi
17941
17942   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17943 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17944 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17945   echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947   ac_check_lib_save_LIBS=$LIBS
17948 LIBS="-lgcc  $LIBS"
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h.  */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h.  */
17955
17956 /* Override any GCC internal prototype to avoid an error.
17957    Use char because int might match the return type of a GCC
17958    builtin and then its argument prototype would still apply.  */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 char __alloca ();
17963 int
17964 main ()
17965 {
17966 return __alloca ();
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (ac_try="$ac_link"
17973 case "(($ac_try" in
17974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975   *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978   (eval "$ac_link") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } &&
17985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986   { (case "(($ac_try" in
17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988   *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991   (eval "$ac_try") 2>&5
17992   ac_status=$?
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); }; } &&
17995          { ac_try='test -s conftest$ac_exeext'
17996   { (case "(($ac_try" in
17997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998   *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001   (eval "$ac_try") 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; }; then
18005   ac_cv_lib_gcc___alloca=yes
18006 else
18007   echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010         ac_cv_lib_gcc___alloca=no
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext \
18014       conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18016 fi
18017 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18018 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18019 if test $ac_cv_lib_gcc___alloca = yes; then
18020
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE___ALLOCA 1
18023 _ACEOF
18024
18025 fi
18026
18027   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18028 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18029 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18030   echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032   ac_check_lib_save_LIBS=$LIBS
18033 LIBS="-lgcc  $LIBS"
18034 cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h.  */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h.  */
18040
18041 /* Override any GCC internal prototype to avoid an error.
18042    Use char because int might match the return type of a GCC
18043    builtin and then its argument prototype would still apply.  */
18044 #ifdef __cplusplus
18045 extern "C"
18046 #endif
18047 char __chkstk ();
18048 int
18049 main ()
18050 {
18051 return __chkstk ();
18052   ;
18053   return 0;
18054 }
18055 _ACEOF
18056 rm -f conftest.$ac_objext conftest$ac_exeext
18057 if { (ac_try="$ac_link"
18058 case "(($ac_try" in
18059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060   *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063   (eval "$ac_link") 2>conftest.er1
18064   ac_status=$?
18065   grep -v '^ *+' conftest.er1 >conftest.err
18066   rm -f conftest.er1
18067   cat conftest.err >&5
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); } &&
18070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071   { (case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076   (eval "$ac_try") 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; } &&
18080          { ac_try='test -s conftest$ac_exeext'
18081   { (case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_try") 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; }; then
18090   ac_cv_lib_gcc___chkstk=yes
18091 else
18092   echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095         ac_cv_lib_gcc___chkstk=no
18096 fi
18097
18098 rm -f core conftest.err conftest.$ac_objext \
18099       conftest$ac_exeext conftest.$ac_ext
18100 LIBS=$ac_check_lib_save_LIBS
18101 fi
18102 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18103 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18104 if test $ac_cv_lib_gcc___chkstk = yes; then
18105
18106 cat >>confdefs.h <<\_ACEOF
18107 #define HAVE___CHKSTK 1
18108 _ACEOF
18109
18110 fi
18111
18112   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18113 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18114 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18115   echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117   ac_check_lib_save_LIBS=$LIBS
18118 LIBS="-lgcc  $LIBS"
18119 cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h.  */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h.  */
18125
18126 /* Override any GCC internal prototype to avoid an error.
18127    Use char because int might match the return type of a GCC
18128    builtin and then its argument prototype would still apply.  */
18129 #ifdef __cplusplus
18130 extern "C"
18131 #endif
18132 char ___chkstk ();
18133 int
18134 main ()
18135 {
18136 return ___chkstk ();
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145   *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148   (eval "$ac_link") 2>conftest.er1
18149   ac_status=$?
18150   grep -v '^ *+' conftest.er1 >conftest.err
18151   rm -f conftest.er1
18152   cat conftest.err >&5
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156   { (case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_try") 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; } &&
18165          { ac_try='test -s conftest$ac_exeext'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   ac_cv_lib_gcc____chkstk=yes
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180         ac_cv_lib_gcc____chkstk=no
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext \
18184       conftest$ac_exeext conftest.$ac_ext
18185 LIBS=$ac_check_lib_save_LIBS
18186 fi
18187 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18188 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18189 if test $ac_cv_lib_gcc____chkstk = yes; then
18190
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE____CHKSTK 1
18193 _ACEOF
18194
18195 fi
18196
18197
18198   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18199 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18200 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18201   echo $ECHO_N "(cached) $ECHO_C" >&6
18202 else
18203   ac_check_lib_save_LIBS=$LIBS
18204 LIBS="-lgcc  $LIBS"
18205 cat >conftest.$ac_ext <<_ACEOF
18206 /* confdefs.h.  */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h.  */
18211
18212 /* Override any GCC internal prototype to avoid an error.
18213    Use char because int might match the return type of a GCC
18214    builtin and then its argument prototype would still apply.  */
18215 #ifdef __cplusplus
18216 extern "C"
18217 #endif
18218 char __ashldi3 ();
18219 int
18220 main ()
18221 {
18222 return __ashldi3 ();
18223   ;
18224   return 0;
18225 }
18226 _ACEOF
18227 rm -f conftest.$ac_objext conftest$ac_exeext
18228 if { (ac_try="$ac_link"
18229 case "(($ac_try" in
18230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231   *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234   (eval "$ac_link") 2>conftest.er1
18235   ac_status=$?
18236   grep -v '^ *+' conftest.er1 >conftest.err
18237   rm -f conftest.er1
18238   cat conftest.err >&5
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); } &&
18241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18242   { (case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_try") 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; } &&
18251          { ac_try='test -s conftest$ac_exeext'
18252   { (case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_try") 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); }; }; then
18261   ac_cv_lib_gcc___ashldi3=yes
18262 else
18263   echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266         ac_cv_lib_gcc___ashldi3=no
18267 fi
18268
18269 rm -f core conftest.err conftest.$ac_objext \
18270       conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18272 fi
18273 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18274 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18275 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18276
18277 cat >>confdefs.h <<\_ACEOF
18278 #define HAVE___ASHLDI3 1
18279 _ACEOF
18280
18281 fi
18282
18283   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18284 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18285 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18286   echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288   ac_check_lib_save_LIBS=$LIBS
18289 LIBS="-lgcc  $LIBS"
18290 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h.  */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h.  */
18296
18297 /* Override any GCC internal prototype to avoid an error.
18298    Use char because int might match the return type of a GCC
18299    builtin and then its argument prototype would still apply.  */
18300 #ifdef __cplusplus
18301 extern "C"
18302 #endif
18303 char __ashrdi3 ();
18304 int
18305 main ()
18306 {
18307 return __ashrdi3 ();
18308   ;
18309   return 0;
18310 }
18311 _ACEOF
18312 rm -f conftest.$ac_objext conftest$ac_exeext
18313 if { (ac_try="$ac_link"
18314 case "(($ac_try" in
18315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316   *) ac_try_echo=$ac_try;;
18317 esac
18318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319   (eval "$ac_link") 2>conftest.er1
18320   ac_status=$?
18321   grep -v '^ *+' conftest.er1 >conftest.err
18322   rm -f conftest.er1
18323   cat conftest.err >&5
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); } &&
18326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18327   { (case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332   (eval "$ac_try") 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; } &&
18336          { ac_try='test -s conftest$ac_exeext'
18337   { (case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342   (eval "$ac_try") 2>&5
18343   ac_status=$?
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); }; }; then
18346   ac_cv_lib_gcc___ashrdi3=yes
18347 else
18348   echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351         ac_cv_lib_gcc___ashrdi3=no
18352 fi
18353
18354 rm -f core conftest.err conftest.$ac_objext \
18355       conftest$ac_exeext conftest.$ac_ext
18356 LIBS=$ac_check_lib_save_LIBS
18357 fi
18358 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18359 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18360 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18361
18362 cat >>confdefs.h <<\_ACEOF
18363 #define HAVE___ASHRDI3 1
18364 _ACEOF
18365
18366 fi
18367
18368   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18369 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18370 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18371   echo $ECHO_N "(cached) $ECHO_C" >&6
18372 else
18373   ac_check_lib_save_LIBS=$LIBS
18374 LIBS="-lgcc  $LIBS"
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h.  */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h.  */
18381
18382 /* Override any GCC internal prototype to avoid an error.
18383    Use char because int might match the return type of a GCC
18384    builtin and then its argument prototype would still apply.  */
18385 #ifdef __cplusplus
18386 extern "C"
18387 #endif
18388 char __divdi3 ();
18389 int
18390 main ()
18391 {
18392 return __divdi3 ();
18393   ;
18394   return 0;
18395 }
18396 _ACEOF
18397 rm -f conftest.$ac_objext conftest$ac_exeext
18398 if { (ac_try="$ac_link"
18399 case "(($ac_try" in
18400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401   *) ac_try_echo=$ac_try;;
18402 esac
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404   (eval "$ac_link") 2>conftest.er1
18405   ac_status=$?
18406   grep -v '^ *+' conftest.er1 >conftest.err
18407   rm -f conftest.er1
18408   cat conftest.err >&5
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); } &&
18411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18412   { (case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_try") 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); }; } &&
18421          { ac_try='test -s conftest$ac_exeext'
18422   { (case "(($ac_try" in
18423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424   *) ac_try_echo=$ac_try;;
18425 esac
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427   (eval "$ac_try") 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); }; }; then
18431   ac_cv_lib_gcc___divdi3=yes
18432 else
18433   echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436         ac_cv_lib_gcc___divdi3=no
18437 fi
18438
18439 rm -f core conftest.err conftest.$ac_objext \
18440       conftest$ac_exeext conftest.$ac_ext
18441 LIBS=$ac_check_lib_save_LIBS
18442 fi
18443 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18444 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18445 if test $ac_cv_lib_gcc___divdi3 = yes; then
18446
18447 cat >>confdefs.h <<\_ACEOF
18448 #define HAVE___DIVDI3 1
18449 _ACEOF
18450
18451 fi
18452
18453   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18454 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18455 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18456   echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458   ac_check_lib_save_LIBS=$LIBS
18459 LIBS="-lgcc  $LIBS"
18460 cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h.  */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h.  */
18466
18467 /* Override any GCC internal prototype to avoid an error.
18468    Use char because int might match the return type of a GCC
18469    builtin and then its argument prototype would still apply.  */
18470 #ifdef __cplusplus
18471 extern "C"
18472 #endif
18473 char __fixdfdi ();
18474 int
18475 main ()
18476 {
18477 return __fixdfdi ();
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_link") 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } &&
18496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497   { (case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_try") 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; } &&
18506          { ac_try='test -s conftest$ac_exeext'
18507   { (case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_try") 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516   ac_cv_lib_gcc___fixdfdi=yes
18517 else
18518   echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18520
18521         ac_cv_lib_gcc___fixdfdi=no
18522 fi
18523
18524 rm -f core conftest.err conftest.$ac_objext \
18525       conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18527 fi
18528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18529 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18530 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18531
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE___FIXDFDI 1
18534 _ACEOF
18535
18536 fi
18537
18538   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18539 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18540 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18541   echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543   ac_check_lib_save_LIBS=$LIBS
18544 LIBS="-lgcc  $LIBS"
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h.  */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h.  */
18551
18552 /* Override any GCC internal prototype to avoid an error.
18553    Use char because int might match the return type of a GCC
18554    builtin and then its argument prototype would still apply.  */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char __fixsfdi ();
18559 int
18560 main ()
18561 {
18562 return __fixsfdi ();
18563   ;
18564   return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571   *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574   (eval "$ac_link") 2>conftest.er1
18575   ac_status=$?
18576   grep -v '^ *+' conftest.er1 >conftest.err
18577   rm -f conftest.er1
18578   cat conftest.err >&5
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); } &&
18581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18582   { (case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_try") 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; } &&
18591          { ac_try='test -s conftest$ac_exeext'
18592   { (case "(($ac_try" in
18593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594   *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597   (eval "$ac_try") 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; }; then
18601   ac_cv_lib_gcc___fixsfdi=yes
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606         ac_cv_lib_gcc___fixsfdi=no
18607 fi
18608
18609 rm -f core conftest.err conftest.$ac_objext \
18610       conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18612 fi
18613 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18614 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18615 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18616
18617 cat >>confdefs.h <<\_ACEOF
18618 #define HAVE___FIXSFDI 1
18619 _ACEOF
18620
18621 fi
18622
18623   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18624 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18625 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18626   echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628   ac_check_lib_save_LIBS=$LIBS
18629 LIBS="-lgcc  $LIBS"
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636
18637 /* Override any GCC internal prototype to avoid an error.
18638    Use char because int might match the return type of a GCC
18639    builtin and then its argument prototype would still apply.  */
18640 #ifdef __cplusplus
18641 extern "C"
18642 #endif
18643 char __floatdidf ();
18644 int
18645 main ()
18646 {
18647 return __floatdidf ();
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656   *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659   (eval "$ac_link") 2>conftest.er1
18660   ac_status=$?
18661   grep -v '^ *+' conftest.er1 >conftest.err
18662   rm -f conftest.er1
18663   cat conftest.err >&5
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } &&
18666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667   { (case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672   (eval "$ac_try") 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; } &&
18676          { ac_try='test -s conftest$ac_exeext'
18677   { (case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682   (eval "$ac_try") 2>&5
18683   ac_status=$?
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); }; }; then
18686   ac_cv_lib_gcc___floatdidf=yes
18687 else
18688   echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18690
18691         ac_cv_lib_gcc___floatdidf=no
18692 fi
18693
18694 rm -f core conftest.err conftest.$ac_objext \
18695       conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_lib_save_LIBS
18697 fi
18698 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18699 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18700 if test $ac_cv_lib_gcc___floatdidf = yes; then
18701
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE___FLOATDIDF 1
18704 _ACEOF
18705
18706 fi
18707
18708   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18709 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18710 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   ac_check_lib_save_LIBS=$LIBS
18714 LIBS="-lgcc  $LIBS"
18715 cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h.  */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h.  */
18721
18722 /* Override any GCC internal prototype to avoid an error.
18723    Use char because int might match the return type of a GCC
18724    builtin and then its argument prototype would still apply.  */
18725 #ifdef __cplusplus
18726 extern "C"
18727 #endif
18728 char __lshrdi3 ();
18729 int
18730 main ()
18731 {
18732 return __lshrdi3 ();
18733   ;
18734   return 0;
18735 }
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741   *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744   (eval "$ac_link") 2>conftest.er1
18745   ac_status=$?
18746   grep -v '^ *+' conftest.er1 >conftest.err
18747   rm -f conftest.er1
18748   cat conftest.err >&5
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); } &&
18751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752   { (case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_try") 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; } &&
18761          { ac_try='test -s conftest$ac_exeext'
18762   { (case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_try") 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   ac_cv_lib_gcc___lshrdi3=yes
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776         ac_cv_lib_gcc___lshrdi3=no
18777 fi
18778
18779 rm -f core conftest.err conftest.$ac_objext \
18780       conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18782 fi
18783 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18784 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18785 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18786
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE___LSHRDI3 1
18789 _ACEOF
18790
18791 fi
18792
18793   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18794 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18795 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   ac_check_lib_save_LIBS=$LIBS
18799 LIBS="-lgcc  $LIBS"
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h.  */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h.  */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char __moddi3 ();
18814 int
18815 main ()
18816 {
18817 return __moddi3 ();
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_link") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } &&
18836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837   { (case "(($ac_try" in
18838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839   *) ac_try_echo=$ac_try;;
18840 esac
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842   (eval "$ac_try") 2>&5
18843   ac_status=$?
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); }; } &&
18846          { ac_try='test -s conftest$ac_exeext'
18847   { (case "(($ac_try" in
18848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849   *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852   (eval "$ac_try") 2>&5
18853   ac_status=$?
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); }; }; then
18856   ac_cv_lib_gcc___moddi3=yes
18857 else
18858   echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861         ac_cv_lib_gcc___moddi3=no
18862 fi
18863
18864 rm -f core conftest.err conftest.$ac_objext \
18865       conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18867 fi
18868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18869 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18870 if test $ac_cv_lib_gcc___moddi3 = yes; then
18871
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE___MODDI3 1
18874 _ACEOF
18875
18876 fi
18877
18878   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18879 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18880 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18881   echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883   ac_check_lib_save_LIBS=$LIBS
18884 LIBS="-lgcc  $LIBS"
18885 cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h.  */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h.  */
18891
18892 /* Override any GCC internal prototype to avoid an error.
18893    Use char because int might match the return type of a GCC
18894    builtin and then its argument prototype would still apply.  */
18895 #ifdef __cplusplus
18896 extern "C"
18897 #endif
18898 char __udivdi3 ();
18899 int
18900 main ()
18901 {
18902 return __udivdi3 ();
18903   ;
18904   return 0;
18905 }
18906 _ACEOF
18907 rm -f conftest.$ac_objext conftest$ac_exeext
18908 if { (ac_try="$ac_link"
18909 case "(($ac_try" in
18910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911   *) ac_try_echo=$ac_try;;
18912 esac
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914   (eval "$ac_link") 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } &&
18921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922   { (case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_try") 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; } &&
18931          { ac_try='test -s conftest$ac_exeext'
18932   { (case "(($ac_try" in
18933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934   *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937   (eval "$ac_try") 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; }; then
18941   ac_cv_lib_gcc___udivdi3=yes
18942 else
18943   echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946         ac_cv_lib_gcc___udivdi3=no
18947 fi
18948
18949 rm -f core conftest.err conftest.$ac_objext \
18950       conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18952 fi
18953 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18954 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18955 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18956
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE___UDIVDI3 1
18959 _ACEOF
18960
18961 fi
18962
18963   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18964 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18965 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18966   echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968   ac_check_lib_save_LIBS=$LIBS
18969 LIBS="-lgcc  $LIBS"
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976
18977 /* Override any GCC internal prototype to avoid an error.
18978    Use char because int might match the return type of a GCC
18979    builtin and then its argument prototype would still apply.  */
18980 #ifdef __cplusplus
18981 extern "C"
18982 #endif
18983 char __umoddi3 ();
18984 int
18985 main ()
18986 {
18987 return __umoddi3 ();
18988   ;
18989   return 0;
18990 }
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996   *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999   (eval "$ac_link") 2>conftest.er1
19000   ac_status=$?
19001   grep -v '^ *+' conftest.er1 >conftest.err
19002   rm -f conftest.er1
19003   cat conftest.err >&5
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); } &&
19006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19007   { (case "(($ac_try" in
19008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009   *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012   (eval "$ac_try") 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; } &&
19016          { ac_try='test -s conftest$ac_exeext'
19017   { (case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_try") 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; }; then
19026   ac_cv_lib_gcc___umoddi3=yes
19027 else
19028   echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031         ac_cv_lib_gcc___umoddi3=no
19032 fi
19033
19034 rm -f core conftest.err conftest.$ac_objext \
19035       conftest$ac_exeext conftest.$ac_ext
19036 LIBS=$ac_check_lib_save_LIBS
19037 fi
19038 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19039 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19040 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19041
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE___UMODDI3 1
19044 _ACEOF
19045
19046 fi
19047
19048
19049   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19050 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19051 if test "${ac_cv_lib_gcc___main+set}" = set; then
19052   echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054   ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-lgcc  $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h.  */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h.  */
19062
19063 /* Override any GCC internal prototype to avoid an error.
19064    Use char because int might match the return type of a GCC
19065    builtin and then its argument prototype would still apply.  */
19066 #ifdef __cplusplus
19067 extern "C"
19068 #endif
19069 char __main ();
19070 int
19071 main ()
19072 {
19073 return __main ();
19074   ;
19075   return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (ac_try="$ac_link"
19080 case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085   (eval "$ac_link") 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } &&
19092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19093   { (case "(($ac_try" in
19094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095   *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098   (eval "$ac_try") 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; } &&
19102          { ac_try='test -s conftest$ac_exeext'
19103   { (case "(($ac_try" in
19104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105   *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108   (eval "$ac_try") 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); }; }; then
19112   ac_cv_lib_gcc___main=yes
19113 else
19114   echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117         ac_cv_lib_gcc___main=no
19118 fi
19119
19120 rm -f core conftest.err conftest.$ac_objext \
19121       conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_check_lib_save_LIBS
19123 fi
19124 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19125 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19126 if test $ac_cv_lib_gcc___main = yes; then
19127
19128 cat >>confdefs.h <<\_ACEOF
19129 #define HAVE___MAIN 1
19130 _ACEOF
19131
19132 fi
19133
19134   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19135 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19136 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   ac_check_lib_save_LIBS=$LIBS
19140 LIBS="-lgcc  $LIBS"
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h.  */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h.  */
19147
19148 /* Override any GCC internal prototype to avoid an error.
19149    Use char because int might match the return type of a GCC
19150    builtin and then its argument prototype would still apply.  */
19151 #ifdef __cplusplus
19152 extern "C"
19153 #endif
19154 char __cmpdi2 ();
19155 int
19156 main ()
19157 {
19158 return __cmpdi2 ();
19159   ;
19160   return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167   *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170   (eval "$ac_link") 2>conftest.er1
19171   ac_status=$?
19172   grep -v '^ *+' conftest.er1 >conftest.err
19173   rm -f conftest.er1
19174   cat conftest.err >&5
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); } &&
19177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19178   { (case "(($ac_try" in
19179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180   *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183   (eval "$ac_try") 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; } &&
19187          { ac_try='test -s conftest$ac_exeext'
19188   { (case "(($ac_try" in
19189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190   *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193   (eval "$ac_try") 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; }; then
19197   ac_cv_lib_gcc___cmpdi2=yes
19198 else
19199   echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202         ac_cv_lib_gcc___cmpdi2=no
19203 fi
19204
19205 rm -f core conftest.err conftest.$ac_objext \
19206       conftest$ac_exeext conftest.$ac_ext
19207 LIBS=$ac_check_lib_save_LIBS
19208 fi
19209 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19210 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19211 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19212
19213 cat >>confdefs.h <<\_ACEOF
19214 #define HAVE___CMPDI2 1
19215 _ACEOF
19216
19217 fi
19218
19219 fi
19220
19221 if test "$llvm_cv_os_type" = "MingW" ; then
19222   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19223 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19224   cat >conftest.$ac_ext <<_ACEOF
19225 #include <windows.h>
19226 #include <imagehlp.h>
19227 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19228 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19229 _ACEOF
19230 rm -f conftest.$ac_objext
19231 if { (ac_try="$ac_compile"
19232 case "(($ac_try" in
19233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234   *) ac_try_echo=$ac_try;;
19235 esac
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237   (eval "$ac_compile") 2>conftest.er1
19238   ac_status=$?
19239   grep -v '^ *+' conftest.er1 >conftest.err
19240   rm -f conftest.er1
19241   cat conftest.err >&5
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); } &&
19244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19245   { (case "(($ac_try" in
19246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247   *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250   (eval "$ac_try") 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; } &&
19254          { ac_try='test -s conftest.$ac_objext'
19255   { (case "(($ac_try" in
19256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257   *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260   (eval "$ac_try") 2>&5
19261   ac_status=$?
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); }; }; then
19264
19265   { echo "$as_me:$LINENO: result: yes" >&5
19266 echo "${ECHO_T}yes" >&6; }
19267   llvm_cv_win32_elmcb_pcstr="PCSTR"
19268
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273
19274   { echo "$as_me:$LINENO: result: no" >&5
19275 echo "${ECHO_T}no" >&6; }
19276   llvm_cv_win32_elmcb_pcstr="PSTR"
19277
19278 fi
19279
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281
19282 cat >>confdefs.h <<_ACEOF
19283 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19284 _ACEOF
19285
19286 fi
19287
19288
19289 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19290 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19291 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19292   echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294   ac_ext=cpp
19295 ac_cpp='$CXXCPP $CPPFLAGS'
19296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19299
19300    cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306 #include <math.h>
19307 int
19308 main ()
19309 {
19310 float f; isnan(f);
19311   ;
19312   return 0;
19313 }
19314 _ACEOF
19315 rm -f conftest.$ac_objext
19316 if { (ac_try="$ac_compile"
19317 case "(($ac_try" in
19318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319   *) ac_try_echo=$ac_try;;
19320 esac
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322   (eval "$ac_compile") 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } &&
19329          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19330   { (case "(($ac_try" in
19331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332   *) ac_try_echo=$ac_try;;
19333 esac
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335   (eval "$ac_try") 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; } &&
19339          { ac_try='test -s conftest.$ac_objext'
19340   { (case "(($ac_try" in
19341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342   *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345   (eval "$ac_try") 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; }; then
19349   ac_cv_func_isnan_in_math_h=yes
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354         ac_cv_func_isnan_in_math_h=no
19355 fi
19356
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358   ac_ext=c
19359 ac_cpp='$CPP $CPPFLAGS'
19360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19363
19364 fi
19365 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19366 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19367
19368
19369 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19370
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE_ISNAN_IN_MATH_H 1
19373 _ACEOF
19374
19375 fi
19376
19377 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19378 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19379 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19380   echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382   ac_ext=cpp
19383 ac_cpp='$CXXCPP $CPPFLAGS'
19384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19387
19388    cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394 #include <cmath>
19395 int
19396 main ()
19397 {
19398 float f; isnan(f);
19399   ;
19400   return 0;
19401 }
19402 _ACEOF
19403 rm -f conftest.$ac_objext
19404 if { (ac_try="$ac_compile"
19405 case "(($ac_try" in
19406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407   *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410   (eval "$ac_compile") 2>conftest.er1
19411   ac_status=$?
19412   grep -v '^ *+' conftest.er1 >conftest.err
19413   rm -f conftest.er1
19414   cat conftest.err >&5
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); } &&
19417          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19418   { (case "(($ac_try" in
19419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420   *) ac_try_echo=$ac_try;;
19421 esac
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423   (eval "$ac_try") 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; } &&
19427          { ac_try='test -s conftest.$ac_objext'
19428   { (case "(($ac_try" in
19429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430   *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433   (eval "$ac_try") 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); }; }; then
19437   ac_cv_func_isnan_in_cmath=yes
19438 else
19439   echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442         ac_cv_func_isnan_in_cmath=no
19443 fi
19444
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446   ac_ext=c
19447 ac_cpp='$CPP $CPPFLAGS'
19448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19451
19452 fi
19453 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19454 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19455
19456 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19457
19458 cat >>confdefs.h <<\_ACEOF
19459 #define HAVE_ISNAN_IN_CMATH 1
19460 _ACEOF
19461
19462 fi
19463
19464 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19465 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19466 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   ac_ext=cpp
19470 ac_cpp='$CXXCPP $CPPFLAGS'
19471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19474
19475    cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h.  */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h.  */
19481 #include <cmath>
19482 int
19483 main ()
19484 {
19485 float f; std::isnan(f);
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_compile") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } &&
19504          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19505   { (case "(($ac_try" in
19506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507   *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510   (eval "$ac_try") 2>&5
19511   ac_status=$?
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); }; } &&
19514          { ac_try='test -s conftest.$ac_objext'
19515   { (case "(($ac_try" in
19516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517   *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520   (eval "$ac_try") 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; }; then
19524   ac_cv_func_std_isnan_in_cmath=yes
19525 else
19526   echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529         ac_cv_func_std_isnan_in_cmath=no
19530 fi
19531
19532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533   ac_ext=c
19534 ac_cpp='$CPP $CPPFLAGS'
19535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19538
19539 fi
19540 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19541 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19542
19543 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19544
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_STD_ISNAN_IN_CMATH 1
19547 _ACEOF
19548
19549 fi
19550
19551
19552 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19553 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19554 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19555   echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557   ac_ext=cpp
19558 ac_cpp='$CXXCPP $CPPFLAGS'
19559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19562
19563    cat >conftest.$ac_ext <<_ACEOF
19564 /* confdefs.h.  */
19565 _ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h.  */
19569 #include <math.h>
19570 int
19571 main ()
19572 {
19573 float f; isinf(f);
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext
19579 if { (ac_try="$ac_compile"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_compile") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } &&
19592          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19593   { (case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_try") 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; } &&
19602          { ac_try='test -s conftest.$ac_objext'
19603   { (case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_try") 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; }; then
19612   ac_cv_func_isinf_in_math_h=yes
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617         ac_cv_func_isinf_in_math_h=no
19618 fi
19619
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621   ac_ext=c
19622 ac_cpp='$CPP $CPPFLAGS'
19623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19626
19627 fi
19628 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19629 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19630
19631 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19632
19633 cat >>confdefs.h <<\_ACEOF
19634 #define HAVE_ISINF_IN_MATH_H 1
19635 _ACEOF
19636
19637 fi
19638
19639 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19640 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19641 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19642   echo $ECHO_N "(cached) $ECHO_C" >&6
19643 else
19644   ac_ext=cpp
19645 ac_cpp='$CXXCPP $CPPFLAGS'
19646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19649
19650    cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 #include <cmath>
19657 int
19658 main ()
19659 {
19660 float f; isinf(f);
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672   (eval "$ac_compile") 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } &&
19679          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19680   { (case "(($ac_try" in
19681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682   *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685   (eval "$ac_try") 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; } &&
19689          { ac_try='test -s conftest.$ac_objext'
19690   { (case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_try") 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; }; then
19699   ac_cv_func_isinf_in_cmath=yes
19700 else
19701   echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704         ac_cv_func_isinf_in_cmath=no
19705 fi
19706
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708   ac_ext=c
19709 ac_cpp='$CPP $CPPFLAGS'
19710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19713
19714 fi
19715 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19716 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19717
19718 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19719
19720 cat >>confdefs.h <<\_ACEOF
19721 #define HAVE_ISINF_IN_CMATH 1
19722 _ACEOF
19723
19724 fi
19725
19726 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19727 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19728 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19729   echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731   ac_ext=cpp
19732 ac_cpp='$CXXCPP $CPPFLAGS'
19733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19736
19737    cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h.  */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h.  */
19743 #include <cmath>
19744 int
19745 main ()
19746 {
19747 float f; std::isinf(f)}
19748   ;
19749   return 0;
19750 }
19751 _ACEOF
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756   *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759   (eval "$ac_compile") 2>conftest.er1
19760   ac_status=$?
19761   grep -v '^ *+' conftest.er1 >conftest.err
19762   rm -f conftest.er1
19763   cat conftest.err >&5
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); } &&
19766          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19767   { (case "(($ac_try" in
19768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769   *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772   (eval "$ac_try") 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; } &&
19776          { ac_try='test -s conftest.$ac_objext'
19777   { (case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_try") 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; }; then
19786   ac_cv_func_std_isinf_in_cmath=yes
19787 else
19788   echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19790
19791         ac_cv_func_std_isinf_in_cmath=no
19792 fi
19793
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795   ac_ext=c
19796 ac_cpp='$CPP $CPPFLAGS'
19797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800
19801 fi
19802 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19803 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19804
19805 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19806
19807 cat >>confdefs.h <<\_ACEOF
19808 #define HAVE_STD_ISINF_IN_CMATH 1
19809 _ACEOF
19810
19811 fi
19812
19813 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19814 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19815 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19816   echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818   ac_ext=cpp
19819 ac_cpp='$CXXCPP $CPPFLAGS'
19820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19823
19824    cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <ieeefp.h>
19831 int
19832 main ()
19833 {
19834 float f; finite(f);
19835   ;
19836   return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext
19840 if { (ac_try="$ac_compile"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_compile") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } &&
19853          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19854   { (case "(($ac_try" in
19855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856   *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859   (eval "$ac_try") 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; } &&
19863          { ac_try='test -s conftest.$ac_objext'
19864   { (case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_try") 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; }; then
19873   ac_cv_func_finite_in_ieeefp_h=yes
19874 else
19875   echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878         ac_cv_func_finite_in_ieeefp_h=no
19879 fi
19880
19881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19882   ac_ext=c
19883 ac_cpp='$CPP $CPPFLAGS'
19884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19887
19888 fi
19889 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19890 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19891
19892 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19893
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_FINITE_IN_IEEEFP_H 1
19896 _ACEOF
19897
19898 fi
19899
19900
19901
19902 if test "$llvm_cv_platform_type" = "Unix" ; then
19903
19904
19905 for ac_header in stdlib.h unistd.h
19906 do
19907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912   echo $ECHO_N "(cached) $ECHO_C" >&6
19913 fi
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915                { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19917 else
19918   # Is the header compilable?
19919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 $ac_includes_default
19928 #include <$ac_header>
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_compile") 2>conftest.er1
19938   ac_status=$?
19939   grep -v '^ *+' conftest.er1 >conftest.err
19940   rm -f conftest.er1
19941   cat conftest.err >&5
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } &&
19944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19945   { (case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_try") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; } &&
19954          { ac_try='test -s conftest.$ac_objext'
19955   { (case "(($ac_try" in
19956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957   *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960   (eval "$ac_try") 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; }; then
19964   ac_header_compiler=yes
19965 else
19966   echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969         ac_header_compiler=no
19970 fi
19971
19972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19974 echo "${ECHO_T}$ac_header_compiler" >&6; }
19975
19976 # Is the header present?
19977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19979 cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h.  */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h.  */
19985 #include <$ac_header>
19986 _ACEOF
19987 if { (ac_try="$ac_cpp conftest.$ac_ext"
19988 case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } >/dev/null; then
20000   if test -s conftest.err; then
20001     ac_cpp_err=$ac_c_preproc_warn_flag
20002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20003   else
20004     ac_cpp_err=
20005   fi
20006 else
20007   ac_cpp_err=yes
20008 fi
20009 if test -z "$ac_cpp_err"; then
20010   ac_header_preproc=yes
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015   ac_header_preproc=no
20016 fi
20017
20018 rm -f conftest.err conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20020 echo "${ECHO_T}$ac_header_preproc" >&6; }
20021
20022 # So?  What about this header?
20023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20024   yes:no: )
20025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20029     ac_header_preproc=yes
20030     ;;
20031   no:yes:* )
20032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20044     ( cat <<\_ASBOX
20045 ## ----------------------------------- ##
20046 ## Report this to llvmbugs@cs.uiuc.edu ##
20047 ## ----------------------------------- ##
20048 _ASBOX
20049      ) | sed "s/^/$as_me: WARNING:     /" >&2
20050     ;;
20051 esac
20052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   eval "$as_ac_Header=\$ac_header_preproc"
20058 fi
20059 ac_res=`eval echo '${'$as_ac_Header'}'`
20060                { echo "$as_me:$LINENO: result: $ac_res" >&5
20061 echo "${ECHO_T}$ac_res" >&6; }
20062
20063 fi
20064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20065   cat >>confdefs.h <<_ACEOF
20066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20067 _ACEOF
20068
20069 fi
20070
20071 done
20072
20073
20074 for ac_func in getpagesize
20075 do
20076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082   cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20090 #define $ac_func innocuous_$ac_func
20091
20092 /* System header to define __stub macros and hopefully few prototypes,
20093     which can conflict with char $ac_func (); below.
20094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20095     <limits.h> exists even on freestanding compilers.  */
20096
20097 #ifdef __STDC__
20098 # include <limits.h>
20099 #else
20100 # include <assert.h>
20101 #endif
20102
20103 #undef $ac_func
20104
20105 /* Override any GCC internal prototype to avoid an error.
20106    Use char because int might match the return type of a GCC
20107    builtin and then its argument prototype would still apply.  */
20108 #ifdef __cplusplus
20109 extern "C"
20110 #endif
20111 char $ac_func ();
20112 /* The GNU C library defines this for functions which it implements
20113     to always fail with ENOSYS.  Some functions are actually named
20114     something starting with __ and the normal name is an alias.  */
20115 #if defined __stub_$ac_func || defined __stub___$ac_func
20116 choke me
20117 #endif
20118
20119 int
20120 main ()
20121 {
20122 return $ac_func ();
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131   *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134   (eval "$ac_link") 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } &&
20141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142   { (case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147   (eval "$ac_try") 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; } &&
20151          { ac_try='test -s conftest$ac_exeext'
20152   { (case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_try") 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   eval "$as_ac_var=yes"
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166         eval "$as_ac_var=no"
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext \
20170       conftest$ac_exeext conftest.$ac_ext
20171 fi
20172 ac_res=`eval echo '${'$as_ac_var'}'`
20173                { echo "$as_me:$LINENO: result: $ac_res" >&5
20174 echo "${ECHO_T}$ac_res" >&6; }
20175 if test `eval echo '${'$as_ac_var'}'` = yes; then
20176   cat >>confdefs.h <<_ACEOF
20177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20178 _ACEOF
20179
20180 fi
20181 done
20182
20183 { echo "$as_me:$LINENO: checking for working mmap" >&5
20184 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20185 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   if test "$cross_compiling" = yes; then
20189   ac_cv_func_mmap_fixed_mapped=no
20190 else
20191   cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197 $ac_includes_default
20198 /* malloc might have been renamed as rpl_malloc. */
20199 #undef malloc
20200
20201 /* Thanks to Mike Haertel and Jim Avera for this test.
20202    Here is a matrix of mmap possibilities:
20203         mmap private not fixed
20204         mmap private fixed at somewhere currently unmapped
20205         mmap private fixed at somewhere already mapped
20206         mmap shared not fixed
20207         mmap shared fixed at somewhere currently unmapped
20208         mmap shared fixed at somewhere already mapped
20209    For private mappings, we should verify that changes cannot be read()
20210    back from the file, nor mmap's back from the file at a different
20211    address.  (There have been systems where private was not correctly
20212    implemented like the infamous i386 svr4.0, and systems where the
20213    VM page cache was not coherent with the file system buffer cache
20214    like early versions of FreeBSD and possibly contemporary NetBSD.)
20215    For shared mappings, we should conversely verify that changes get
20216    propagated back to all the places they're supposed to be.
20217
20218    Grep wants private fixed already mapped.
20219    The main things grep needs to know about mmap are:
20220    * does it exist and is it safe to write into the mmap'd area
20221    * how to use it (BSD variants)  */
20222
20223 #include <fcntl.h>
20224 #include <sys/mman.h>
20225
20226 #if !STDC_HEADERS && !HAVE_STDLIB_H
20227 char *malloc ();
20228 #endif
20229
20230 /* This mess was copied from the GNU getpagesize.h.  */
20231 #if !HAVE_GETPAGESIZE
20232 /* Assume that all systems that can run configure have sys/param.h.  */
20233 # if !HAVE_SYS_PARAM_H
20234 #  define HAVE_SYS_PARAM_H 1
20235 # endif
20236
20237 # ifdef _SC_PAGESIZE
20238 #  define getpagesize() sysconf(_SC_PAGESIZE)
20239 # else /* no _SC_PAGESIZE */
20240 #  if HAVE_SYS_PARAM_H
20241 #   include <sys/param.h>
20242 #   ifdef EXEC_PAGESIZE
20243 #    define getpagesize() EXEC_PAGESIZE
20244 #   else /* no EXEC_PAGESIZE */
20245 #    ifdef NBPG
20246 #     define getpagesize() NBPG * CLSIZE
20247 #     ifndef CLSIZE
20248 #      define CLSIZE 1
20249 #     endif /* no CLSIZE */
20250 #    else /* no NBPG */
20251 #     ifdef NBPC
20252 #      define getpagesize() NBPC
20253 #     else /* no NBPC */
20254 #      ifdef PAGESIZE
20255 #       define getpagesize() PAGESIZE
20256 #      endif /* PAGESIZE */
20257 #     endif /* no NBPC */
20258 #    endif /* no NBPG */
20259 #   endif /* no EXEC_PAGESIZE */
20260 #  else /* no HAVE_SYS_PARAM_H */
20261 #   define getpagesize() 8192   /* punt totally */
20262 #  endif /* no HAVE_SYS_PARAM_H */
20263 # endif /* no _SC_PAGESIZE */
20264
20265 #endif /* no HAVE_GETPAGESIZE */
20266
20267 int
20268 main ()
20269 {
20270   char *data, *data2, *data3;
20271   int i, pagesize;
20272   int fd;
20273
20274   pagesize = getpagesize ();
20275
20276   /* First, make a file with some known garbage in it. */
20277   data = (char *) malloc (pagesize);
20278   if (!data)
20279     return 1;
20280   for (i = 0; i < pagesize; ++i)
20281     *(data + i) = rand ();
20282   umask (0);
20283   fd = creat ("conftest.mmap", 0600);
20284   if (fd < 0)
20285     return 1;
20286   if (write (fd, data, pagesize) != pagesize)
20287     return 1;
20288   close (fd);
20289
20290   /* Next, try to mmap the file at a fixed address which already has
20291      something else allocated at it.  If we can, also make sure that
20292      we see the same garbage.  */
20293   fd = open ("conftest.mmap", O_RDWR);
20294   if (fd < 0)
20295     return 1;
20296   data2 = (char *) malloc (2 * pagesize);
20297   if (!data2)
20298     return 1;
20299   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20300   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20301                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20302     return 1;
20303   for (i = 0; i < pagesize; ++i)
20304     if (*(data + i) != *(data2 + i))
20305       return 1;
20306
20307   /* Finally, make sure that changes to the mapped area do not
20308      percolate back to the file as seen by read().  (This is a bug on
20309      some variants of i386 svr4.0.)  */
20310   for (i = 0; i < pagesize; ++i)
20311     *(data2 + i) = *(data2 + i) + 1;
20312   data3 = (char *) malloc (pagesize);
20313   if (!data3)
20314     return 1;
20315   if (read (fd, data3, pagesize) != pagesize)
20316     return 1;
20317   for (i = 0; i < pagesize; ++i)
20318     if (*(data + i) != *(data3 + i))
20319       return 1;
20320   close (fd);
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_link") 2>&5
20332   ac_status=$?
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20335   { (case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340   (eval "$ac_try") 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   ac_cv_func_mmap_fixed_mapped=yes
20345 else
20346   echo "$as_me: program exited with status $ac_status" >&5
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ( exit $ac_status )
20351 ac_cv_func_mmap_fixed_mapped=no
20352 fi
20353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20354 fi
20355
20356
20357 fi
20358 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20359 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20360 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20361
20362 cat >>confdefs.h <<\_ACEOF
20363 #define HAVE_MMAP 1
20364 _ACEOF
20365
20366 fi
20367 rm -f conftest.mmap
20368
20369   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20370 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20371 if test "${ac_cv_func_mmap_file+set}" = set; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374    ac_ext=c
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20379
20380   if test "$cross_compiling" = yes; then
20381   ac_cv_func_mmap_file=no
20382 else
20383   cat >conftest.$ac_ext <<_ACEOF
20384
20385     /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390
20391 #include <sys/types.h>
20392 #include <sys/mman.h>
20393 #include <fcntl.h>
20394
20395 int
20396 main ()
20397 {
20398
20399   int fd;
20400   fd = creat ("foo",0777);
20401   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20402   unlink ("foo");
20403   return (fd != (int) MAP_FAILED);
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_link") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20419   { (case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_try") 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; }; then
20428   ac_cv_func_mmap_file=yes
20429 else
20430   echo "$as_me: program exited with status $ac_status" >&5
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ( exit $ac_status )
20435 ac_cv_func_mmap_file=no
20436 fi
20437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20438 fi
20439
20440
20441   ac_ext=c
20442 ac_cpp='$CPP $CPPFLAGS'
20443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20446
20447
20448 fi
20449 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20450 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20451 if test "$ac_cv_func_mmap_file" = yes; then
20452
20453 cat >>confdefs.h <<\_ACEOF
20454 #define HAVE_MMAP_FILE
20455 _ACEOF
20456
20457    MMAP_FILE=yes
20458
20459 fi
20460
20461   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20462 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20463 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20464   echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466   if test "$llvm_cv_os_type" = "Interix" ; then
20467    ac_cv_need_dev_zero_for_mmap=yes
20468  else
20469    ac_cv_need_dev_zero_for_mmap=no
20470  fi
20471
20472 fi
20473 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20474 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20475 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20476
20477 cat >>confdefs.h <<\_ACEOF
20478 #define NEED_DEV_ZERO_FOR_MMAP 1
20479 _ACEOF
20480
20481 fi
20482
20483   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20484   then
20485     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20486 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20487   fi
20488   if test "$ac_cv_func_mmap_file" = "no"
20489   then
20490     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20491 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20492   fi
20493 fi
20494
20495 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20496 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20497 ac_ext=cpp
20498 ac_cpp='$CXXCPP $CPPFLAGS'
20499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20502
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h.  */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h.  */
20509 int main() {
20510         volatile unsigned long val = 1;
20511         __sync_synchronize();
20512         __sync_val_compare_and_swap(&val, 1, 0);
20513         __sync_add_and_fetch(&val, 1);
20514         __sync_sub_and_fetch(&val, 1);
20515         return 0;
20516       }
20517
20518 _ACEOF
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_link") 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } &&
20533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534   { (case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_try") 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; } &&
20543          { ac_try='test -s conftest$ac_exeext'
20544   { (case "(($ac_try" in
20545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546   *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549   (eval "$ac_try") 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; }; then
20553   ac_ext=c
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
20559   { echo "$as_me:$LINENO: result: yes" >&5
20560 echo "${ECHO_T}yes" >&6; }
20561
20562 cat >>confdefs.h <<\_ACEOF
20563 #define LLVM_HAS_ATOMICS 1
20564 _ACEOF
20565
20566 else
20567   echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20569
20570         { echo "$as_me:$LINENO: result: no" >&5
20571 echo "${ECHO_T}no" >&6; }
20572
20573 cat >>confdefs.h <<\_ACEOF
20574 #define LLVM_HAS_ATOMICS 0
20575 _ACEOF
20576
20577   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20578 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20579 fi
20580
20581 rm -f core conftest.err conftest.$ac_objext \
20582       conftest$ac_exeext conftest.$ac_ext
20583
20584
20585 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20586   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20587 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20588 if test "${llvm_cv_linux_mixed+set}" = set; then
20589   echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20591    ac_ext=c
20592 ac_cpp='$CPP $CPPFLAGS'
20593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20596
20597   cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603 #ifndef __x86_64__
20604        error: Not x86-64 even if uname says so!
20605       #endif
20606
20607 int
20608 main ()
20609 {
20610
20611   ;
20612   return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (ac_try="$ac_compile"
20617 case "(($ac_try" in
20618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619   *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622   (eval "$ac_compile") 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } &&
20629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20630   { (case "(($ac_try" in
20631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632   *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635   (eval "$ac_try") 2>&5
20636   ac_status=$?
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); }; } &&
20639          { ac_try='test -s conftest.$ac_objext'
20640   { (case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_try") 2>&5
20646   ac_status=$?
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); }; }; then
20649   llvm_cv_linux_mixed=no
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654         llvm_cv_linux_mixed=yes
20655 fi
20656
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658   ac_ext=c
20659 ac_cpp='$CPP $CPPFLAGS'
20660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20663
20664
20665 fi
20666 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20667 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20668
20669   if test "$llvm_cv_linux_mixed" = "yes"; then
20670     llvm_cv_target_arch="x86"
20671     ARCH="x86"
20672   fi
20673 fi
20674
20675
20676 for ac_func in __dso_handle
20677 do
20678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20682   echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684   cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20692 #define $ac_func innocuous_$ac_func
20693
20694 /* System header to define __stub macros and hopefully few prototypes,
20695     which can conflict with char $ac_func (); below.
20696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20697     <limits.h> exists even on freestanding compilers.  */
20698
20699 #ifdef __STDC__
20700 # include <limits.h>
20701 #else
20702 # include <assert.h>
20703 #endif
20704
20705 #undef $ac_func
20706
20707 /* Override any GCC internal prototype to avoid an error.
20708    Use char because int might match the return type of a GCC
20709    builtin and then its argument prototype would still apply.  */
20710 #ifdef __cplusplus
20711 extern "C"
20712 #endif
20713 char $ac_func ();
20714 /* The GNU C library defines this for functions which it implements
20715     to always fail with ENOSYS.  Some functions are actually named
20716     something starting with __ and the normal name is an alias.  */
20717 #if defined __stub_$ac_func || defined __stub___$ac_func
20718 choke me
20719 #endif
20720
20721 int
20722 main ()
20723 {
20724 return $ac_func ();
20725   ;
20726   return 0;
20727 }
20728 _ACEOF
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (ac_try="$ac_link"
20731 case "(($ac_try" in
20732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733   *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736   (eval "$ac_link") 2>conftest.er1
20737   ac_status=$?
20738   grep -v '^ *+' conftest.er1 >conftest.err
20739   rm -f conftest.er1
20740   cat conftest.err >&5
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); } &&
20743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20744   { (case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_try") 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; } &&
20753          { ac_try='test -s conftest$ac_exeext'
20754   { (case "(($ac_try" in
20755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756   *) ac_try_echo=$ac_try;;
20757 esac
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759   (eval "$ac_try") 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); }; }; then
20763   eval "$as_ac_var=yes"
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768         eval "$as_ac_var=no"
20769 fi
20770
20771 rm -f core conftest.err conftest.$ac_objext \
20772       conftest$ac_exeext conftest.$ac_ext
20773 fi
20774 ac_res=`eval echo '${'$as_ac_var'}'`
20775                { echo "$as_me:$LINENO: result: $ac_res" >&5
20776 echo "${ECHO_T}$ac_res" >&6; }
20777 if test `eval echo '${'$as_ac_var'}'` = yes; then
20778   cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20780 _ACEOF
20781
20782 fi
20783 done
20784
20785
20786 SHLIBEXT=$libltdl_cv_shlibext
20787
20788
20789 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20790
20791
20792 # Translate the various configuration directories and other basic
20793 # information into substitutions that will end up in Makefile.config.in
20794 # that these configured values can be used by the makefiles
20795 if test "${prefix}" = "NONE" ; then
20796   prefix="/usr/local"
20797 fi
20798 eval LLVM_PREFIX="${prefix}";
20799 eval LLVM_BINDIR="${prefix}/bin";
20800 eval LLVM_LIBDIR="${prefix}/lib";
20801 eval LLVM_DATADIR="${prefix}/share/llvm";
20802 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20803 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20804 eval LLVM_INCLUDEDIR="${prefix}/include";
20805 eval LLVM_INFODIR="${prefix}/info";
20806 eval LLVM_MANDIR="${prefix}/man";
20807 LLVM_CONFIGTIME=`date`
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819 # Place the various directores into the config.h file as #defines so that we
20820 # can know about the installation paths within LLVM.
20821
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_PREFIX "$LLVM_PREFIX"
20824 _ACEOF
20825
20826
20827 cat >>confdefs.h <<_ACEOF
20828 #define LLVM_BINDIR "$LLVM_BINDIR"
20829 _ACEOF
20830
20831
20832 cat >>confdefs.h <<_ACEOF
20833 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20834 _ACEOF
20835
20836
20837 cat >>confdefs.h <<_ACEOF
20838 #define LLVM_DATADIR "$LLVM_DATADIR"
20839 _ACEOF
20840
20841
20842 cat >>confdefs.h <<_ACEOF
20843 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20844 _ACEOF
20845
20846
20847 cat >>confdefs.h <<_ACEOF
20848 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20849 _ACEOF
20850
20851
20852 cat >>confdefs.h <<_ACEOF
20853 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20854 _ACEOF
20855
20856
20857 cat >>confdefs.h <<_ACEOF
20858 #define LLVM_INFODIR "$LLVM_INFODIR"
20859 _ACEOF
20860
20861
20862 cat >>confdefs.h <<_ACEOF
20863 #define LLVM_MANDIR "$LLVM_MANDIR"
20864 _ACEOF
20865
20866
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20869 _ACEOF
20870
20871
20872 cat >>confdefs.h <<_ACEOF
20873 #define LLVM_HOSTTRIPLE "$host"
20874 _ACEOF
20875
20876
20877 # Determine which bindings to build.
20878 if test "$BINDINGS_TO_BUILD" = auto ; then
20879   BINDINGS_TO_BUILD=""
20880   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20881     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20882   fi
20883 fi
20884 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20885
20886
20887 # This isn't really configurey, but it avoids having to repeat the list in
20888 # other files.
20889 ALL_BINDINGS=ocaml
20890
20891
20892 # Do any work necessary to ensure that bindings have what they need.
20893 binding_prereqs_failed=0
20894 for a_binding in $BINDINGS_TO_BUILD ; do
20895   case "$a_binding" in
20896   ocaml)
20897     if test "x$OCAMLC" = x ; then
20898       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20900       binding_prereqs_failed=1
20901     fi
20902     if test "x$OCAMLDEP" = x ; then
20903       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20904 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20905       binding_prereqs_failed=1
20906     fi
20907     if test "x$OCAMLOPT" = x ; then
20908       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20909 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20910           fi
20911     if test "x$with_ocaml_libdir" != xauto ; then
20912       OCAML_LIBDIR=$with_ocaml_libdir
20913
20914     else
20915       ocaml_stdlib="`"$OCAMLC" -where`"
20916       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20917       then
20918         # ocaml stdlib is beneath our prefix; use stdlib
20919         OCAML_LIBDIR=$ocaml_stdlib
20920
20921       else
20922         # ocaml stdlib is outside our prefix; use libdir/ocaml
20923         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20924
20925       fi
20926     fi
20927     ;;
20928   esac
20929 done
20930 if test "$binding_prereqs_failed" = 1 ; then
20931   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20932 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20933    { (exit 1); exit 1; }; }
20934 fi
20935
20936 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20937 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20938 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941    ac_ext=cpp
20942 ac_cpp='$CXXCPP $CPPFLAGS'
20943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20946
20947   oldcxxflags="$CXXFLAGS"
20948   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20949   cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955
20956 int
20957 main ()
20958 {
20959
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_compile") 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } &&
20978          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20979   { (case "(($ac_try" in
20980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981   *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984   (eval "$ac_try") 2>&5
20985   ac_status=$?
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); }; } &&
20988          { ac_try='test -s conftest.$ac_objext'
20989   { (case "(($ac_try" in
20990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991   *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994   (eval "$ac_try") 2>&5
20995   ac_status=$?
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); }; }; then
20998   llvm_cv_cxx_visibility_inlines_hidden=yes
20999 else
21000   echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003         llvm_cv_cxx_visibility_inlines_hidden=no
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007   CXXFLAGS="$oldcxxflags"
21008   ac_ext=c
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013
21014
21015 fi
21016 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21017 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21018 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21019   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21020
21021 else
21022   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21023
21024 fi
21025
21026
21027 if test "$llvm_cv_link_use_r" = "yes" ; then
21028   RPATH="-Wl,-R"
21029 else
21030   RPATH="-Wl,-rpath"
21031 fi
21032
21033
21034 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21035   RDYNAMIC="-Wl,-export-dynamic"
21036 else
21037   RDYNAMIC=""
21038 fi
21039
21040
21041
21042 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21043
21044
21045
21046
21047
21048
21049 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21050
21051 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21052
21053 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21054
21055 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21056
21057 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21058
21059
21060 ac_config_files="$ac_config_files Makefile.config"
21061
21062
21063 ac_config_files="$ac_config_files llvm.spec"
21064
21065
21066 ac_config_files="$ac_config_files docs/doxygen.cfg"
21067
21068 if test -f ${srcdir}/tools/clang/README.txt; then
21069   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21070
21071 fi
21072
21073 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21074
21075
21076 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21077
21078
21079 ac_config_commands="$ac_config_commands setup"
21080
21081 ac_config_commands="$ac_config_commands Makefile"
21082
21083
21084 ac_config_commands="$ac_config_commands Makefile.common"
21085
21086
21087 ac_config_commands="$ac_config_commands examples/Makefile"
21088
21089
21090 ac_config_commands="$ac_config_commands lib/Makefile"
21091
21092
21093 ac_config_commands="$ac_config_commands runtime/Makefile"
21094
21095
21096 ac_config_commands="$ac_config_commands test/Makefile"
21097
21098
21099 ac_config_commands="$ac_config_commands test/Makefile.tests"
21100
21101
21102 ac_config_commands="$ac_config_commands unittests/Makefile"
21103
21104
21105 ac_config_commands="$ac_config_commands tools/Makefile"
21106
21107
21108 ac_config_commands="$ac_config_commands utils/Makefile"
21109
21110
21111 ac_config_commands="$ac_config_commands projects/Makefile"
21112
21113
21114 ac_config_commands="$ac_config_commands bindings/Makefile"
21115
21116
21117 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21118
21119
21120
21121 cat >confcache <<\_ACEOF
21122 # This file is a shell script that caches the results of configure
21123 # tests run on this system so they can be shared between configure
21124 # scripts and configure runs, see configure's option --config-cache.
21125 # It is not useful on other systems.  If it contains results you don't
21126 # want to keep, you may remove or edit it.
21127 #
21128 # config.status only pays attention to the cache file if you give it
21129 # the --recheck option to rerun configure.
21130 #
21131 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21133 # following values.
21134
21135 _ACEOF
21136
21137 # The following way of writing the cache mishandles newlines in values,
21138 # but we know of no workaround that is simple, portable, and efficient.
21139 # So, we kill variables containing newlines.
21140 # Ultrix sh set writes to stderr and can't be redirected directly,
21141 # and sets the high bit in the cache file unless we assign to the vars.
21142 (
21143   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21144     eval ac_val=\$$ac_var
21145     case $ac_val in #(
21146     *${as_nl}*)
21147       case $ac_var in #(
21148       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21149 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21150       esac
21151       case $ac_var in #(
21152       _ | IFS | as_nl) ;; #(
21153       *) $as_unset $ac_var ;;
21154       esac ;;
21155     esac
21156   done
21157
21158   (set) 2>&1 |
21159     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21160     *${as_nl}ac_space=\ *)
21161       # `set' does not quote correctly, so add quotes (double-quote
21162       # substitution turns \\\\ into \\, and sed turns \\ into \).
21163       sed -n \
21164         "s/'/'\\\\''/g;
21165           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21166       ;; #(
21167     *)
21168       # `set' quotes correctly as required by POSIX, so do not add quotes.
21169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21170       ;;
21171     esac |
21172     sort
21173 ) |
21174   sed '
21175      /^ac_cv_env_/b end
21176      t clear
21177      :clear
21178      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21179      t end
21180      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21181      :end' >>confcache
21182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21183   if test -w "$cache_file"; then
21184     test "x$cache_file" != "x/dev/null" &&
21185       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21186 echo "$as_me: updating cache $cache_file" >&6;}
21187     cat confcache >$cache_file
21188   else
21189     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21190 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21191   fi
21192 fi
21193 rm -f confcache
21194
21195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21196 # Let make expand exec_prefix.
21197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21198
21199 DEFS=-DHAVE_CONFIG_H
21200
21201 ac_libobjs=
21202 ac_ltlibobjs=
21203 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21204   # 1. Remove the extension, and $U if already installed.
21205   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21206   ac_i=`echo "$ac_i" | sed "$ac_script"`
21207   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21208   #    will be set to the directory where LIBOBJS objects are built.
21209   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21210   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21211 done
21212 LIBOBJS=$ac_libobjs
21213
21214 LTLIBOBJS=$ac_ltlibobjs
21215
21216
21217 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21218   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&5
21220 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21221 Usually this means the macro was only invoked conditionally." >&2;}
21222    { (exit 1); exit 1; }; }
21223 fi
21224 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21225   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&5
21227 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21228 Usually this means the macro was only invoked conditionally." >&2;}
21229    { (exit 1); exit 1; }; }
21230 fi
21231
21232 : ${CONFIG_STATUS=./config.status}
21233 ac_clean_files_save=$ac_clean_files
21234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21237 cat >$CONFIG_STATUS <<_ACEOF
21238 #! $SHELL
21239 # Generated by $as_me.
21240 # Run this file to recreate the current configuration.
21241 # Compiler output produced by configure, useful for debugging
21242 # configure, is in config.log if it exists.
21243
21244 debug=false
21245 ac_cs_recheck=false
21246 ac_cs_silent=false
21247 SHELL=\${CONFIG_SHELL-$SHELL}
21248 _ACEOF
21249
21250 cat >>$CONFIG_STATUS <<\_ACEOF
21251 ## --------------------- ##
21252 ## M4sh Initialization.  ##
21253 ## --------------------- ##
21254
21255 # Be Bourne compatible
21256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21257   emulate sh
21258   NULLCMD=:
21259   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21260   # is contrary to our usage.  Disable this feature.
21261   alias -g '${1+"$@"}'='"$@"'
21262   setopt NO_GLOB_SUBST
21263 else
21264   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21265 fi
21266 BIN_SH=xpg4; export BIN_SH # for Tru64
21267 DUALCASE=1; export DUALCASE # for MKS sh
21268
21269
21270 # PATH needs CR
21271 # Avoid depending upon Character Ranges.
21272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21275 as_cr_digits='0123456789'
21276 as_cr_alnum=$as_cr_Letters$as_cr_digits
21277
21278 # The user is always right.
21279 if test "${PATH_SEPARATOR+set}" != set; then
21280   echo "#! /bin/sh" >conf$$.sh
21281   echo  "exit 0"   >>conf$$.sh
21282   chmod +x conf$$.sh
21283   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21284     PATH_SEPARATOR=';'
21285   else
21286     PATH_SEPARATOR=:
21287   fi
21288   rm -f conf$$.sh
21289 fi
21290
21291 # Support unset when possible.
21292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21293   as_unset=unset
21294 else
21295   as_unset=false
21296 fi
21297
21298
21299 # IFS
21300 # We need space, tab and new line, in precisely that order.  Quoting is
21301 # there to prevent editors from complaining about space-tab.
21302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21303 # splitting by setting IFS to empty value.)
21304 as_nl='
21305 '
21306 IFS=" ""        $as_nl"
21307
21308 # Find who we are.  Look in the path if we contain no directory separator.
21309 case $0 in
21310   *[\\/]* ) as_myself=$0 ;;
21311   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21312 for as_dir in $PATH
21313 do
21314   IFS=$as_save_IFS
21315   test -z "$as_dir" && as_dir=.
21316   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21317 done
21318 IFS=$as_save_IFS
21319
21320      ;;
21321 esac
21322 # We did not find ourselves, most probably we were run as `sh COMMAND'
21323 # in which case we are not to be found in the path.
21324 if test "x$as_myself" = x; then
21325   as_myself=$0
21326 fi
21327 if test ! -f "$as_myself"; then
21328   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21329   { (exit 1); exit 1; }
21330 fi
21331
21332 # Work around bugs in pre-3.0 UWIN ksh.
21333 for as_var in ENV MAIL MAILPATH
21334 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21335 done
21336 PS1='$ '
21337 PS2='> '
21338 PS4='+ '
21339
21340 # NLS nuisances.
21341 for as_var in \
21342   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21343   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21344   LC_TELEPHONE LC_TIME
21345 do
21346   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21347     eval $as_var=C; export $as_var
21348   else
21349     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21350   fi
21351 done
21352
21353 # Required to use basename.
21354 if expr a : '\(a\)' >/dev/null 2>&1 &&
21355    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21356   as_expr=expr
21357 else
21358   as_expr=false
21359 fi
21360
21361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21362   as_basename=basename
21363 else
21364   as_basename=false
21365 fi
21366
21367
21368 # Name of the executable.
21369 as_me=`$as_basename -- "$0" ||
21370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21371          X"$0" : 'X\(//\)$' \| \
21372          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21373 echo X/"$0" |
21374     sed '/^.*\/\([^/][^/]*\)\/*$/{
21375             s//\1/
21376             q
21377           }
21378           /^X\/\(\/\/\)$/{
21379             s//\1/
21380             q
21381           }
21382           /^X\/\(\/\).*/{
21383             s//\1/
21384             q
21385           }
21386           s/.*/./; q'`
21387
21388 # CDPATH.
21389 $as_unset CDPATH
21390
21391
21392
21393   as_lineno_1=$LINENO
21394   as_lineno_2=$LINENO
21395   test "x$as_lineno_1" != "x$as_lineno_2" &&
21396   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21397
21398   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21399   # uniformly replaced by the line number.  The first 'sed' inserts a
21400   # line-number line after each line using $LINENO; the second 'sed'
21401   # does the real work.  The second script uses 'N' to pair each
21402   # line-number line with the line containing $LINENO, and appends
21403   # trailing '-' during substitution so that $LINENO is not a special
21404   # case at line end.
21405   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21406   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21407   # E. McMahon (1931-1989) for sed's syntax.  :-)
21408   sed -n '
21409     p
21410     /[$]LINENO/=
21411   ' <$as_myself |
21412     sed '
21413       s/[$]LINENO.*/&-/
21414       t lineno
21415       b
21416       :lineno
21417       N
21418       :loop
21419       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21420       t loop
21421       s/-\n.*//
21422     ' >$as_me.lineno &&
21423   chmod +x "$as_me.lineno" ||
21424     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21425    { (exit 1); exit 1; }; }
21426
21427   # Don't try to exec as it changes $[0], causing all sort of problems
21428   # (the dirname of $[0] is not the place where we might find the
21429   # original and so on.  Autoconf is especially sensitive to this).
21430   . "./$as_me.lineno"
21431   # Exit status is that of the last command.
21432   exit
21433 }
21434
21435
21436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21437   as_dirname=dirname
21438 else
21439   as_dirname=false
21440 fi
21441
21442 ECHO_C= ECHO_N= ECHO_T=
21443 case `echo -n x` in
21444 -n*)
21445   case `echo 'x\c'` in
21446   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21447   *)   ECHO_C='\c';;
21448   esac;;
21449 *)
21450   ECHO_N='-n';;
21451 esac
21452
21453 if expr a : '\(a\)' >/dev/null 2>&1 &&
21454    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21455   as_expr=expr
21456 else
21457   as_expr=false
21458 fi
21459
21460 rm -f conf$$ conf$$.exe conf$$.file
21461 if test -d conf$$.dir; then
21462   rm -f conf$$.dir/conf$$.file
21463 else
21464   rm -f conf$$.dir
21465   mkdir conf$$.dir
21466 fi
21467 echo >conf$$.file
21468 if ln -s conf$$.file conf$$ 2>/dev/null; then
21469   as_ln_s='ln -s'
21470   # ... but there are two gotchas:
21471   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21472   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21473   # In both cases, we have to default to `cp -p'.
21474   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21475     as_ln_s='cp -p'
21476 elif ln conf$$.file conf$$ 2>/dev/null; then
21477   as_ln_s=ln
21478 else
21479   as_ln_s='cp -p'
21480 fi
21481 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21482 rmdir conf$$.dir 2>/dev/null
21483
21484 if mkdir -p . 2>/dev/null; then
21485   as_mkdir_p=:
21486 else
21487   test -d ./-p && rmdir ./-p
21488   as_mkdir_p=false
21489 fi
21490
21491 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21492 # systems may use methods other than mode bits to determine executability.
21493 cat >conf$$.file <<_ASEOF
21494 #! /bin/sh
21495 exit 0
21496 _ASEOF
21497 chmod +x conf$$.file
21498 if test -x conf$$.file >/dev/null 2>&1; then
21499   as_executable_p="test -x"
21500 else
21501   as_executable_p=:
21502 fi
21503 rm -f conf$$.file
21504
21505 # Sed expression to map a string onto a valid CPP name.
21506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21507
21508 # Sed expression to map a string onto a valid variable name.
21509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21510
21511
21512 exec 6>&1
21513
21514 # Save the log message, to keep $[0] and so on meaningful, and to
21515 # report actual input values of CONFIG_FILES etc. instead of their
21516 # values after options handling.
21517 ac_log="
21518 This file was extended by llvm $as_me 3.1svn, which was
21519 generated by GNU Autoconf 2.60.  Invocation command line was
21520
21521   CONFIG_FILES    = $CONFIG_FILES
21522   CONFIG_HEADERS  = $CONFIG_HEADERS
21523   CONFIG_LINKS    = $CONFIG_LINKS
21524   CONFIG_COMMANDS = $CONFIG_COMMANDS
21525   $ $0 $@
21526
21527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21528 "
21529
21530 _ACEOF
21531
21532 cat >>$CONFIG_STATUS <<_ACEOF
21533 # Files that config.status was made for.
21534 config_files="$ac_config_files"
21535 config_headers="$ac_config_headers"
21536 config_commands="$ac_config_commands"
21537
21538 _ACEOF
21539
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21541 ac_cs_usage="\
21542 \`$as_me' instantiates files from templates according to the
21543 current configuration.
21544
21545 Usage: $0 [OPTIONS] [FILE]...
21546
21547   -h, --help       print this help, then exit
21548   -V, --version    print version number, then exit
21549   -q, --quiet      do not print progress messages
21550   -d, --debug      don't remove temporary files
21551       --recheck    update $as_me by reconfiguring in the same conditions
21552   --file=FILE[:TEMPLATE]
21553                    instantiate the configuration file FILE
21554   --header=FILE[:TEMPLATE]
21555                    instantiate the configuration header FILE
21556
21557 Configuration files:
21558 $config_files
21559
21560 Configuration headers:
21561 $config_headers
21562
21563 Configuration commands:
21564 $config_commands
21565
21566 Report bugs to <bug-autoconf@gnu.org>."
21567
21568 _ACEOF
21569 cat >>$CONFIG_STATUS <<_ACEOF
21570 ac_cs_version="\\
21571 llvm config.status 3.1svn
21572 configured by $0, generated by GNU Autoconf 2.60,
21573   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21574
21575 Copyright (C) 2006 Free Software Foundation, Inc.
21576 This config.status script is free software; the Free Software Foundation
21577 gives unlimited permission to copy, distribute and modify it."
21578
21579 ac_pwd='$ac_pwd'
21580 srcdir='$srcdir'
21581 INSTALL='$INSTALL'
21582 _ACEOF
21583
21584 cat >>$CONFIG_STATUS <<\_ACEOF
21585 # If no file are specified by the user, then we need to provide default
21586 # value.  By we need to know if files were specified by the user.
21587 ac_need_defaults=:
21588 while test $# != 0
21589 do
21590   case $1 in
21591   --*=*)
21592     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21593     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21594     ac_shift=:
21595     ;;
21596   *)
21597     ac_option=$1
21598     ac_optarg=$2
21599     ac_shift=shift
21600     ;;
21601   esac
21602
21603   case $ac_option in
21604   # Handling of the options.
21605   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21606     ac_cs_recheck=: ;;
21607   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21608     echo "$ac_cs_version"; exit ;;
21609   --debug | --debu | --deb | --de | --d | -d )
21610     debug=: ;;
21611   --file | --fil | --fi | --f )
21612     $ac_shift
21613     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21614     ac_need_defaults=false;;
21615   --header | --heade | --head | --hea )
21616     $ac_shift
21617     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21618     ac_need_defaults=false;;
21619   --he | --h)
21620     # Conflict between --help and --header
21621     { echo "$as_me: error: ambiguous option: $1
21622 Try \`$0 --help' for more information." >&2
21623    { (exit 1); exit 1; }; };;
21624   --help | --hel | -h )
21625     echo "$ac_cs_usage"; exit ;;
21626   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21627   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21628     ac_cs_silent=: ;;
21629
21630   # This is an error.
21631   -*) { echo "$as_me: error: unrecognized option: $1
21632 Try \`$0 --help' for more information." >&2
21633    { (exit 1); exit 1; }; } ;;
21634
21635   *) ac_config_targets="$ac_config_targets $1"
21636      ac_need_defaults=false ;;
21637
21638   esac
21639   shift
21640 done
21641
21642 ac_configure_extra_args=
21643
21644 if $ac_cs_silent; then
21645   exec 6>/dev/null
21646   ac_configure_extra_args="$ac_configure_extra_args --silent"
21647 fi
21648
21649 _ACEOF
21650 cat >>$CONFIG_STATUS <<_ACEOF
21651 if \$ac_cs_recheck; then
21652   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21653   CONFIG_SHELL=$SHELL
21654   export CONFIG_SHELL
21655   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21656 fi
21657
21658 _ACEOF
21659 cat >>$CONFIG_STATUS <<\_ACEOF
21660 exec 5>>config.log
21661 {
21662   echo
21663   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21664 ## Running $as_me. ##
21665 _ASBOX
21666   echo "$ac_log"
21667 } >&5
21668
21669 _ACEOF
21670 cat >>$CONFIG_STATUS <<_ACEOF
21671 #
21672 # INIT-COMMANDS
21673 #
21674 llvm_src="${srcdir}"
21675
21676 _ACEOF
21677
21678 cat >>$CONFIG_STATUS <<\_ACEOF
21679
21680 # Handling of arguments.
21681 for ac_config_target in $ac_config_targets
21682 do
21683   case $ac_config_target in
21684     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21685     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21686     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21687     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21688     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21689     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21690     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21691     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21692     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21693     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21694     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21695     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21696     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21697     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21702     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21703     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21705     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21706     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21709     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21711
21712   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714    { (exit 1); exit 1; }; };;
21715   esac
21716 done
21717
21718
21719 # If the user did not use the arguments to specify the items to instantiate,
21720 # then the envvar interface is used.  Set only those that are not.
21721 # We use the long form for the default assignment because of an extremely
21722 # bizarre bug on SunOS 4.1.3.
21723 if $ac_need_defaults; then
21724   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21726   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21727 fi
21728
21729 # Have a temporary directory for convenience.  Make it in the build tree
21730 # simply because there is no reason against having it here, and in addition,
21731 # creating and moving files from /tmp can sometimes cause problems.
21732 # Hook for its removal unless debugging.
21733 # Note that there is a small window in which the directory will not be cleaned:
21734 # after its creation but before its name has been assigned to `$tmp'.
21735 $debug ||
21736 {
21737   tmp=
21738   trap 'exit_status=$?
21739   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21740 ' 0
21741   trap '{ (exit 1); exit 1; }' 1 2 13 15
21742 }
21743 # Create a (secure) tmp directory for tmp files.
21744
21745 {
21746   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21747   test -n "$tmp" && test -d "$tmp"
21748 }  ||
21749 {
21750   tmp=./conf$$-$RANDOM
21751   (umask 077 && mkdir "$tmp")
21752 } ||
21753 {
21754    echo "$me: cannot create a temporary directory in ." >&2
21755    { (exit 1); exit 1; }
21756 }
21757
21758 #
21759 # Set up the sed scripts for CONFIG_FILES section.
21760 #
21761
21762 # No need to generate the scripts if there are no CONFIG_FILES.
21763 # This happens for instance when ./config.status config.h
21764 if test -n "$CONFIG_FILES"; then
21765
21766 _ACEOF
21767
21768
21769
21770 ac_delim='%!_!# '
21771 for ac_last_try in false false false false false :; do
21772   cat >conf$$subs.sed <<_ACEOF
21773 SHELL!$SHELL$ac_delim
21774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780 exec_prefix!$exec_prefix$ac_delim
21781 prefix!$prefix$ac_delim
21782 program_transform_name!$program_transform_name$ac_delim
21783 bindir!$bindir$ac_delim
21784 sbindir!$sbindir$ac_delim
21785 libexecdir!$libexecdir$ac_delim
21786 datarootdir!$datarootdir$ac_delim
21787 datadir!$datadir$ac_delim
21788 sysconfdir!$sysconfdir$ac_delim
21789 sharedstatedir!$sharedstatedir$ac_delim
21790 localstatedir!$localstatedir$ac_delim
21791 includedir!$includedir$ac_delim
21792 oldincludedir!$oldincludedir$ac_delim
21793 docdir!$docdir$ac_delim
21794 infodir!$infodir$ac_delim
21795 htmldir!$htmldir$ac_delim
21796 dvidir!$dvidir$ac_delim
21797 pdfdir!$pdfdir$ac_delim
21798 psdir!$psdir$ac_delim
21799 libdir!$libdir$ac_delim
21800 localedir!$localedir$ac_delim
21801 mandir!$mandir$ac_delim
21802 DEFS!$DEFS$ac_delim
21803 ECHO_C!$ECHO_C$ac_delim
21804 ECHO_N!$ECHO_N$ac_delim
21805 ECHO_T!$ECHO_T$ac_delim
21806 LIBS!$LIBS$ac_delim
21807 build_alias!$build_alias$ac_delim
21808 host_alias!$host_alias$ac_delim
21809 target_alias!$target_alias$ac_delim
21810 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21811 CC!$CC$ac_delim
21812 CFLAGS!$CFLAGS$ac_delim
21813 LDFLAGS!$LDFLAGS$ac_delim
21814 CPPFLAGS!$CPPFLAGS$ac_delim
21815 ac_ct_CC!$ac_ct_CC$ac_delim
21816 EXEEXT!$EXEEXT$ac_delim
21817 OBJEXT!$OBJEXT$ac_delim
21818 CXX!$CXX$ac_delim
21819 CXXFLAGS!$CXXFLAGS$ac_delim
21820 ac_ct_CXX!$ac_ct_CXX$ac_delim
21821 CPP!$CPP$ac_delim
21822 subdirs!$subdirs$ac_delim
21823 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21825 build!$build$ac_delim
21826 build_cpu!$build_cpu$ac_delim
21827 build_vendor!$build_vendor$ac_delim
21828 build_os!$build_os$ac_delim
21829 host!$host$ac_delim
21830 host_cpu!$host_cpu$ac_delim
21831 host_vendor!$host_vendor$ac_delim
21832 host_os!$host_os$ac_delim
21833 target!$target$ac_delim
21834 target_cpu!$target_cpu$ac_delim
21835 target_vendor!$target_vendor$ac_delim
21836 target_os!$target_os$ac_delim
21837 OS!$OS$ac_delim
21838 HOST_OS!$HOST_OS$ac_delim
21839 TARGET_OS!$TARGET_OS$ac_delim
21840 LINKALL!$LINKALL$ac_delim
21841 NOLINKALL!$NOLINKALL$ac_delim
21842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844 ARCH!$ARCH$ac_delim
21845 ENDIAN!$ENDIAN$ac_delim
21846 GREP!$GREP$ac_delim
21847 EGREP!$EGREP$ac_delim
21848 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849 BUILD_CC!$BUILD_CC$ac_delim
21850 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851 BUILD_CXX!$BUILD_CXX$ac_delim
21852 CVSBUILD!$CVSBUILD$ac_delim
21853 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21854 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21855 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21856 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21857 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21858 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21859 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21860 JIT!$JIT$ac_delim
21861 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21862 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21863 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21864 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21865 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21866 ENABLE_PIC!$ENABLE_PIC$ac_delim
21867 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21868 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21869 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21870 _ACEOF
21871
21872   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21873     break
21874   elif $ac_last_try; then
21875     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877    { (exit 1); exit 1; }; }
21878   else
21879     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21880   fi
21881 done
21882
21883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884 if test -n "$ac_eof"; then
21885   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886   ac_eof=`expr $ac_eof + 1`
21887 fi
21888
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21892 _ACEOF
21893 sed '
21894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895 s/^/s,@/; s/!/@,|#_!!_#|/
21896 :n
21897 t n
21898 s/'"$ac_delim"'$/,g/; t
21899 s/$/\\/; p
21900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901 ' >>$CONFIG_STATUS <conf$$subs.sed
21902 rm -f conf$$subs.sed
21903 cat >>$CONFIG_STATUS <<_ACEOF
21904 CEOF$ac_eof
21905 _ACEOF
21906
21907
21908 ac_delim='%!_!# '
21909 for ac_last_try in false false false false false :; do
21910   cat >conf$$subs.sed <<_ACEOF
21911 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21912 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21913 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21914 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21915 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21916 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21917 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21918 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21919 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21920 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21921 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21922 NM!$NM$ac_delim
21923 ifGNUmake!$ifGNUmake$ac_delim
21924 LN_S!$LN_S$ac_delim
21925 CMP!$CMP$ac_delim
21926 CP!$CP$ac_delim
21927 DATE!$DATE$ac_delim
21928 FIND!$FIND$ac_delim
21929 MKDIR!$MKDIR$ac_delim
21930 MV!$MV$ac_delim
21931 RANLIB!$RANLIB$ac_delim
21932 AR!$AR$ac_delim
21933 RM!$RM$ac_delim
21934 SED!$SED$ac_delim
21935 TAR!$TAR$ac_delim
21936 BINPWD!$BINPWD$ac_delim
21937 GRAPHVIZ!$GRAPHVIZ$ac_delim
21938 DOT!$DOT$ac_delim
21939 FDP!$FDP$ac_delim
21940 NEATO!$NEATO$ac_delim
21941 TWOPI!$TWOPI$ac_delim
21942 CIRCO!$CIRCO$ac_delim
21943 GV!$GV$ac_delim
21944 DOTTY!$DOTTY$ac_delim
21945 XDOT_PY!$XDOT_PY$ac_delim
21946 PERL!$PERL$ac_delim
21947 HAVE_PERL!$HAVE_PERL$ac_delim
21948 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21949 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21950 INSTALL_DATA!$INSTALL_DATA$ac_delim
21951 BZIP2!$BZIP2$ac_delim
21952 CAT!$CAT$ac_delim
21953 DOXYGEN!$DOXYGEN$ac_delim
21954 GROFF!$GROFF$ac_delim
21955 GZIPBIN!$GZIPBIN$ac_delim
21956 POD2HTML!$POD2HTML$ac_delim
21957 POD2MAN!$POD2MAN$ac_delim
21958 PDFROFF!$PDFROFF$ac_delim
21959 RUNTEST!$RUNTEST$ac_delim
21960 TCLSH!$TCLSH$ac_delim
21961 ZIP!$ZIP$ac_delim
21962 OCAMLC!$OCAMLC$ac_delim
21963 OCAMLOPT!$OCAMLOPT$ac_delim
21964 OCAMLDEP!$OCAMLDEP$ac_delim
21965 OCAMLDOC!$OCAMLDOC$ac_delim
21966 GAS!$GAS$ac_delim
21967 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21968 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21969 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21970 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21971 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21972 LIBADD_DL!$LIBADD_DL$ac_delim
21973 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21974 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21975 USE_UDIS86!$USE_UDIS86$ac_delim
21976 USE_OPROFILE!$USE_OPROFILE$ac_delim
21977 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21978 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21979 MMAP_FILE!$MMAP_FILE$ac_delim
21980 SHLIBEXT!$SHLIBEXT$ac_delim
21981 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21982 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21983 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21984 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21985 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21986 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21987 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21988 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21989 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21990 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21991 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21992 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21993 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21994 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21995 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21996 RPATH!$RPATH$ac_delim
21997 RDYNAMIC!$RDYNAMIC$ac_delim
21998 LIBOBJS!$LIBOBJS$ac_delim
21999 LTLIBOBJS!$LTLIBOBJS$ac_delim
22000 _ACEOF
22001
22002   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22003     break
22004   elif $ac_last_try; then
22005     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22006 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22007    { (exit 1); exit 1; }; }
22008   else
22009     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22010   fi
22011 done
22012
22013 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22014 if test -n "$ac_eof"; then
22015   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22016   ac_eof=`expr $ac_eof + 1`
22017 fi
22018
22019 cat >>$CONFIG_STATUS <<_ACEOF
22020 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22022 _ACEOF
22023 sed '
22024 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22025 s/^/s,@/; s/!/@,|#_!!_#|/
22026 :n
22027 t n
22028 s/'"$ac_delim"'$/,g/; t
22029 s/$/\\/; p
22030 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22031 ' >>$CONFIG_STATUS <conf$$subs.sed
22032 rm -f conf$$subs.sed
22033 cat >>$CONFIG_STATUS <<_ACEOF
22034 :end
22035 s/|#_!!_#|//g
22036 CEOF$ac_eof
22037 _ACEOF
22038
22039
22040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042 # trailing colons and then remove the whole line if VPATH becomes empty
22043 # (actually we leave an empty line to preserve line numbers).
22044 if test "x$srcdir" = x.; then
22045   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22046 s/:*\$(srcdir):*/:/
22047 s/:*\${srcdir}:*/:/
22048 s/:*@srcdir@:*/:/
22049 s/^\([^=]*=[     ]*\):*/\1/
22050 s/:*$//
22051 s/^[^=]*=[       ]*$//
22052 }'
22053 fi
22054
22055 cat >>$CONFIG_STATUS <<\_ACEOF
22056 fi # test -n "$CONFIG_FILES"
22057
22058
22059 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22060 do
22061   case $ac_tag in
22062   :[FHLC]) ac_mode=$ac_tag; continue;;
22063   esac
22064   case $ac_mode$ac_tag in
22065   :[FHL]*:*);;
22066   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22067 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22068    { (exit 1); exit 1; }; };;
22069   :[FH]-) ac_tag=-:-;;
22070   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22071   esac
22072   ac_save_IFS=$IFS
22073   IFS=:
22074   set x $ac_tag
22075   IFS=$ac_save_IFS
22076   shift
22077   ac_file=$1
22078   shift
22079
22080   case $ac_mode in
22081   :L) ac_source=$1;;
22082   :[FH])
22083     ac_file_inputs=
22084     for ac_f
22085     do
22086       case $ac_f in
22087       -) ac_f="$tmp/stdin";;
22088       *) # Look for the file first in the build tree, then in the source tree
22089          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22090          # because $ac_f cannot contain `:'.
22091          test -f "$ac_f" ||
22092            case $ac_f in
22093            [\\/$]*) false;;
22094            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22095            esac ||
22096            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22097 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22098    { (exit 1); exit 1; }; };;
22099       esac
22100       ac_file_inputs="$ac_file_inputs $ac_f"
22101     done
22102
22103     # Let's still pretend it is `configure' which instantiates (i.e., don't
22104     # use $as_me), people would be surprised to read:
22105     #    /* config.h.  Generated by config.status.  */
22106     configure_input="Generated from "`IFS=:
22107           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22108     if test x"$ac_file" != x-; then
22109       configure_input="$ac_file.  $configure_input"
22110       { echo "$as_me:$LINENO: creating $ac_file" >&5
22111 echo "$as_me: creating $ac_file" >&6;}
22112     fi
22113
22114     case $ac_tag in
22115     *:-:* | *:-) cat >"$tmp/stdin";;
22116     esac
22117     ;;
22118   esac
22119
22120   ac_dir=`$as_dirname -- "$ac_file" ||
22121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22122          X"$ac_file" : 'X\(//\)[^/]' \| \
22123          X"$ac_file" : 'X\(//\)$' \| \
22124          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22125 echo X"$ac_file" |
22126     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22127             s//\1/
22128             q
22129           }
22130           /^X\(\/\/\)[^/].*/{
22131             s//\1/
22132             q
22133           }
22134           /^X\(\/\/\)$/{
22135             s//\1/
22136             q
22137           }
22138           /^X\(\/\).*/{
22139             s//\1/
22140             q
22141           }
22142           s/.*/./; q'`
22143   { as_dir="$ac_dir"
22144   case $as_dir in #(
22145   -*) as_dir=./$as_dir;;
22146   esac
22147   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22148     as_dirs=
22149     while :; do
22150       case $as_dir in #(
22151       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22152       *) as_qdir=$as_dir;;
22153       esac
22154       as_dirs="'$as_qdir' $as_dirs"
22155       as_dir=`$as_dirname -- "$as_dir" ||
22156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157          X"$as_dir" : 'X\(//\)[^/]' \| \
22158          X"$as_dir" : 'X\(//\)$' \| \
22159          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22160 echo X"$as_dir" |
22161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22162             s//\1/
22163             q
22164           }
22165           /^X\(\/\/\)[^/].*/{
22166             s//\1/
22167             q
22168           }
22169           /^X\(\/\/\)$/{
22170             s//\1/
22171             q
22172           }
22173           /^X\(\/\).*/{
22174             s//\1/
22175             q
22176           }
22177           s/.*/./; q'`
22178       test -d "$as_dir" && break
22179     done
22180     test -z "$as_dirs" || eval "mkdir $as_dirs"
22181   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22182 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22183    { (exit 1); exit 1; }; }; }
22184   ac_builddir=.
22185
22186 case "$ac_dir" in
22187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22188 *)
22189   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22190   # A ".." for each directory in $ac_dir_suffix.
22191   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22192   case $ac_top_builddir_sub in
22193   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22195   esac ;;
22196 esac
22197 ac_abs_top_builddir=$ac_pwd
22198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22199 # for backward compatibility:
22200 ac_top_builddir=$ac_top_build_prefix
22201
22202 case $srcdir in
22203   .)  # We are building in place.
22204     ac_srcdir=.
22205     ac_top_srcdir=$ac_top_builddir_sub
22206     ac_abs_top_srcdir=$ac_pwd ;;
22207   [\\/]* | ?:[\\/]* )  # Absolute name.
22208     ac_srcdir=$srcdir$ac_dir_suffix;
22209     ac_top_srcdir=$srcdir
22210     ac_abs_top_srcdir=$srcdir ;;
22211   *) # Relative name.
22212     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22213     ac_top_srcdir=$ac_top_build_prefix$srcdir
22214     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22215 esac
22216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22217
22218
22219   case $ac_mode in
22220   :F)
22221   #
22222   # CONFIG_FILE
22223   #
22224
22225   case $INSTALL in
22226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22227   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22228   esac
22229 _ACEOF
22230
22231 cat >>$CONFIG_STATUS <<\_ACEOF
22232 # If the template does not know about datarootdir, expand it.
22233 # FIXME: This hack should be removed a few years after 2.60.
22234 ac_datarootdir_hack=; ac_datarootdir_seen=
22235
22236 case `sed -n '/datarootdir/ {
22237   p
22238   q
22239 }
22240 /@datadir@/p
22241 /@docdir@/p
22242 /@infodir@/p
22243 /@localedir@/p
22244 /@mandir@/p
22245 ' $ac_file_inputs` in
22246 *datarootdir*) ac_datarootdir_seen=yes;;
22247 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22248   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22249 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22250 _ACEOF
22251 cat >>$CONFIG_STATUS <<_ACEOF
22252   ac_datarootdir_hack='
22253   s&@datadir@&$datadir&g
22254   s&@docdir@&$docdir&g
22255   s&@infodir@&$infodir&g
22256   s&@localedir@&$localedir&g
22257   s&@mandir@&$mandir&g
22258     s&\\\${datarootdir}&$datarootdir&g' ;;
22259 esac
22260 _ACEOF
22261
22262 # Neutralize VPATH when `$srcdir' = `.'.
22263 # Shell code in configure.ac might set extrasub.
22264 # FIXME: do we really want to maintain this feature?
22265 cat >>$CONFIG_STATUS <<_ACEOF
22266   sed "$ac_vpsub
22267 $extrasub
22268 _ACEOF
22269 cat >>$CONFIG_STATUS <<\_ACEOF
22270 :t
22271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22272 s&@configure_input@&$configure_input&;t t
22273 s&@top_builddir@&$ac_top_builddir_sub&;t t
22274 s&@srcdir@&$ac_srcdir&;t t
22275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22276 s&@top_srcdir@&$ac_top_srcdir&;t t
22277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22278 s&@builddir@&$ac_builddir&;t t
22279 s&@abs_builddir@&$ac_abs_builddir&;t t
22280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22281 s&@INSTALL@&$ac_INSTALL&;t t
22282 $ac_datarootdir_hack
22283 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22284
22285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22286   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22287   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22288   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22289 which seems to be undefined.  Please make sure it is defined." >&5
22290 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291 which seems to be undefined.  Please make sure it is defined." >&2;}
22292
22293   rm -f "$tmp/stdin"
22294   case $ac_file in
22295   -) cat "$tmp/out"; rm -f "$tmp/out";;
22296   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22297   esac
22298  ;;
22299   :H)
22300   #
22301   # CONFIG_HEADER
22302   #
22303 _ACEOF
22304
22305 # Transform confdefs.h into a sed script `conftest.defines', that
22306 # substitutes the proper values into config.h.in to produce config.h.
22307 rm -f conftest.defines conftest.tail
22308 # First, append a space to every undef/define line, to ease matching.
22309 echo 's/$/ /' >conftest.defines
22310 # Then, protect against being on the right side of a sed subst, or in
22311 # an unquoted here document, in config.status.  If some macros were
22312 # called several times there might be several #defines for the same
22313 # symbol, which is useless.  But do not sort them, since the last
22314 # AC_DEFINE must be honored.
22315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22316 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22317 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22318 # PARAMS is the parameter list in the macro definition--in most cases, it's
22319 # just an empty string.
22320 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22321 ac_dB='\\)[      (].*,\\1define\\2'
22322 ac_dC=' '
22323 ac_dD=' ,'
22324
22325 uniq confdefs.h |
22326   sed -n '
22327         t rset
22328         :rset
22329         s/^[     ]*#[    ]*define[       ][      ]*//
22330         t ok
22331         d
22332         :ok
22333         s/[\\&,]/\\&/g
22334         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22335         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22336   ' >>conftest.defines
22337
22338 # Remove the space that was appended to ease matching.
22339 # Then replace #undef with comments.  This is necessary, for
22340 # example, in the case of _POSIX_SOURCE, which is predefined and required
22341 # on some systems where configure will not decide to define it.
22342 # (The regexp can be short, since the line contains either #define or #undef.)
22343 echo 's/ $//
22344 s,^[     #]*u.*,/* & */,' >>conftest.defines
22345
22346 # Break up conftest.defines:
22347 ac_max_sed_lines=50
22348
22349 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22350 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22351 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22352 # et cetera.
22353 ac_in='$ac_file_inputs'
22354 ac_out='"$tmp/out1"'
22355 ac_nxt='"$tmp/out2"'
22356
22357 while :
22358 do
22359   # Write a here document:
22360     cat >>$CONFIG_STATUS <<_ACEOF
22361     # First, check the format of the line:
22362     cat >"\$tmp/defines.sed" <<\\CEOF
22363 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22364 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22365 b
22366 :def
22367 _ACEOF
22368   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22369   echo 'CEOF
22370     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22371   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22372   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22373   grep . conftest.tail >/dev/null || break
22374   rm -f conftest.defines
22375   mv conftest.tail conftest.defines
22376 done
22377 rm -f conftest.defines conftest.tail
22378
22379 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381   if test x"$ac_file" != x-; then
22382     echo "/* $configure_input  */" >"$tmp/config.h"
22383     cat "$ac_result" >>"$tmp/config.h"
22384     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22385       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22386 echo "$as_me: $ac_file is unchanged" >&6;}
22387     else
22388       rm -f $ac_file
22389       mv "$tmp/config.h" $ac_file
22390     fi
22391   else
22392     echo "/* $configure_input  */"
22393     cat "$ac_result"
22394   fi
22395   rm -f "$tmp/out12"
22396  ;;
22397
22398   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22399 echo "$as_me: executing $ac_file commands" >&6;}
22400  ;;
22401   esac
22402
22403
22404   case $ac_file$ac_mode in
22405     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22406    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22407     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22408    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22409     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22410    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22411     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22412    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22413     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22414    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22415     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22416    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22417     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22418    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22419     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22420    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22421     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22422    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22423     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22424    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22425     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22426    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22427     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22428    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22429     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22430    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22431
22432   esac
22433 done # for ac_tag
22434
22435
22436 { (exit 0); exit 0; }
22437 _ACEOF
22438 chmod +x $CONFIG_STATUS
22439 ac_clean_files=$ac_clean_files_save
22440
22441
22442 # configure is writing to config.log, and then calls config.status.
22443 # config.status does its own redirection, appending to config.log.
22444 # Unfortunately, on DOS this fails, as config.log is still kept open
22445 # by configure, so config.status won't be able to write to it; its
22446 # output is simply discarded.  So we exec the FD to /dev/null,
22447 # effectively closing config.log, so it can be properly (re)opened and
22448 # appended to by config.status.  When coming back to configure, we
22449 # need to make the FD available again.
22450 if test "$no_create" != yes; then
22451   ac_cs_success=:
22452   ac_config_status_args=
22453   test "$silent" = yes &&
22454     ac_config_status_args="$ac_config_status_args --quiet"
22455   exec 5>/dev/null
22456   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22457   exec 5>>config.log
22458   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459   # would make configure fail if this is the last instruction.
22460   $ac_cs_success || { (exit 1); exit 1; }
22461 fi
22462
22463 #
22464 # CONFIG_SUBDIRS section.
22465 #
22466 if test "$no_recursion" != yes; then
22467
22468   # Remove --cache-file and --srcdir arguments so they do not pile up.
22469   ac_sub_configure_args=
22470   ac_prev=
22471   eval "set x $ac_configure_args"
22472   shift
22473   for ac_arg
22474   do
22475     if test -n "$ac_prev"; then
22476       ac_prev=
22477       continue
22478     fi
22479     case $ac_arg in
22480     -cache-file | --cache-file | --cache-fil | --cache-fi \
22481     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22482       ac_prev=cache_file ;;
22483     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22484     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22485     | --c=*)
22486       ;;
22487     --config-cache | -C)
22488       ;;
22489     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22490       ac_prev=srcdir ;;
22491     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22492       ;;
22493     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22494       ac_prev=prefix ;;
22495     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22496       ;;
22497     *)
22498       case $ac_arg in
22499       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22500       esac
22501       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22502     esac
22503   done
22504
22505   # Always prepend --prefix to ensure using the same prefix
22506   # in subdir configurations.
22507   ac_arg="--prefix=$prefix"
22508   case $ac_arg in
22509   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22510   esac
22511   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22512
22513   ac_popdir=`pwd`
22514   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22515
22516     # Do not complain, so a configure script can configure whichever
22517     # parts of a large source tree are present.
22518     test -d "$srcdir/$ac_dir" || continue
22519
22520     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22521     echo "$as_me:$LINENO: $ac_msg" >&5
22522     echo "$ac_msg" >&6
22523     { as_dir="$ac_dir"
22524   case $as_dir in #(
22525   -*) as_dir=./$as_dir;;
22526   esac
22527   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22528     as_dirs=
22529     while :; do
22530       case $as_dir in #(
22531       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22532       *) as_qdir=$as_dir;;
22533       esac
22534       as_dirs="'$as_qdir' $as_dirs"
22535       as_dir=`$as_dirname -- "$as_dir" ||
22536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22537          X"$as_dir" : 'X\(//\)[^/]' \| \
22538          X"$as_dir" : 'X\(//\)$' \| \
22539          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22540 echo X"$as_dir" |
22541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22542             s//\1/
22543             q
22544           }
22545           /^X\(\/\/\)[^/].*/{
22546             s//\1/
22547             q
22548           }
22549           /^X\(\/\/\)$/{
22550             s//\1/
22551             q
22552           }
22553           /^X\(\/\).*/{
22554             s//\1/
22555             q
22556           }
22557           s/.*/./; q'`
22558       test -d "$as_dir" && break
22559     done
22560     test -z "$as_dirs" || eval "mkdir $as_dirs"
22561   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22563    { (exit 1); exit 1; }; }; }
22564     ac_builddir=.
22565
22566 case "$ac_dir" in
22567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22568 *)
22569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22570   # A ".." for each directory in $ac_dir_suffix.
22571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22572   case $ac_top_builddir_sub in
22573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22575   esac ;;
22576 esac
22577 ac_abs_top_builddir=$ac_pwd
22578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22579 # for backward compatibility:
22580 ac_top_builddir=$ac_top_build_prefix
22581
22582 case $srcdir in
22583   .)  # We are building in place.
22584     ac_srcdir=.
22585     ac_top_srcdir=$ac_top_builddir_sub
22586     ac_abs_top_srcdir=$ac_pwd ;;
22587   [\\/]* | ?:[\\/]* )  # Absolute name.
22588     ac_srcdir=$srcdir$ac_dir_suffix;
22589     ac_top_srcdir=$srcdir
22590     ac_abs_top_srcdir=$srcdir ;;
22591   *) # Relative name.
22592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22593     ac_top_srcdir=$ac_top_build_prefix$srcdir
22594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22595 esac
22596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22597
22598
22599     cd "$ac_dir"
22600
22601     # Check for guested configure; otherwise get Cygnus style configure.
22602     if test -f "$ac_srcdir/configure.gnu"; then
22603       ac_sub_configure=$ac_srcdir/configure.gnu
22604     elif test -f "$ac_srcdir/configure"; then
22605       ac_sub_configure=$ac_srcdir/configure
22606     elif test -f "$ac_srcdir/configure.in"; then
22607       # This should be Cygnus configure.
22608       ac_sub_configure=$ac_aux_dir/configure
22609     else
22610       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22612       ac_sub_configure=
22613     fi
22614
22615     # The recursion is here.
22616     if test -n "$ac_sub_configure"; then
22617       # Make the cache file name correct relative to the subdirectory.
22618       case $cache_file in
22619       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22620       *) # Relative name.
22621         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22622       esac
22623
22624       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22625 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22626       # The eval makes quoting arguments work.
22627       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22628            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22629         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22630 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22631    { (exit 1); exit 1; }; }
22632     fi
22633
22634     cd "$ac_popdir"
22635   done
22636 fi
22637