Really remove Blackfin from the configure script.
[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
1420                           (default=all)
1421   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1422                           %a (default is YES)
1423   --enable-bindings       Build specific language bindings:
1424                           all,auto,none,{binding-name} (default=auto)
1425   --enable-libffi         Check for the presence of libffi (default is NO)
1426   --enable-ltdl-install   install libltdl
1427
1428 Optional Packages:
1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431   --with-optimize-option  Select the compiler options to use for optimized
1432                           builds
1433   --with-extra-options    Specify additional options to compile LLVM with
1434   --with-extra-ld-options Specify additional options to link LLVM with
1435   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                           is stdlib)
1437   --with-clang-srcdir     Directory to the out-of-tree Clang source
1438   --with-clang-resource-dir
1439                           Relative directory from the Clang binary for
1440                           resource files
1441   --with-c-include-dirs   Colon separated list of directories clang will
1442                           search for headers
1443   --with-cxx-include-root Directory with the libstdc++ headers.
1444   --with-cxx-include-arch Architecture of the libstdc++ headers.
1445   --with-cxx-include-32bit-dir
1446                           32 bit multilib dir.
1447   --with-cxx-include-64bit-dir
1448                           64 bit multilib directory.
1449   --with-binutils-include Specify path to binutils/include/ containing
1450                           plugin-api.h file for gold plugin.
1451   --with-bug-report-url   Specify the URL where bug reports should be
1452                           submitted (default=http://llvm.org/bugs/)
1453   --with-tclinclude       directory where tcl headers are
1454   --with-udis86=<path>    Use udis86 external x86 disassembler library
1455   --with-oprofile=<prefix>
1456                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1457
1458 Some influential environment variables:
1459   CC          C compiler command
1460   CFLAGS      C compiler flags
1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462               nonstandard directory <lib dir>
1463   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   CXX         C++ compiler command
1466   CXXFLAGS    C++ compiler flags
1467   CPP         C preprocessor
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478   # If there are subdirs, report their specific --help.
1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480     test -d "$ac_dir" || continue
1481     ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487   # A ".." for each directory in $ac_dir_suffix.
1488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489   case $ac_top_builddir_sub in
1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492   esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500   .)  # We are building in place.
1501     ac_srcdir=.
1502     ac_top_srcdir=$ac_top_builddir_sub
1503     ac_abs_top_srcdir=$ac_pwd ;;
1504   [\\/]* | ?:[\\/]* )  # Absolute name.
1505     ac_srcdir=$srcdir$ac_dir_suffix;
1506     ac_top_srcdir=$srcdir
1507     ac_abs_top_srcdir=$srcdir ;;
1508   *) # Relative name.
1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515     cd "$ac_dir" || { ac_status=$?; continue; }
1516     # Check for guested configure.
1517     if test -f "$ac_srcdir/configure.gnu"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520     elif test -f "$ac_srcdir/configure"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure" --help=recursive
1523     else
1524       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525     fi || ac_status=$?
1526     cd "$ac_pwd" || { ac_status=$?; break; }
1527   done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532   cat <<\_ACEOF
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1535
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1542 _ACEOF
1543   exit
1544 fi
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1548
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60.  Invocation command line was
1551
1552   $ $0 $@
1553
1554 _ACEOF
1555 exec 5>>config.log
1556 {
1557 cat <<_ASUNAME
1558 ## --------- ##
1559 ## Platform. ##
1560 ## --------- ##
1561
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1570
1571 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1572 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1575 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1576 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1577 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1578
1579 _ASUNAME
1580
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   echo "PATH: $as_dir"
1587 done
1588 IFS=$as_save_IFS
1589
1590 } >&5
1591
1592 cat >&5 <<_ACEOF
1593
1594
1595 ## ----------- ##
1596 ## Core tests. ##
1597 ## ----------- ##
1598
1599 _ACEOF
1600
1601
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_configure_args=
1608 ac_configure_args0=
1609 ac_configure_args1=
1610 ac_must_keep_next=false
1611 for ac_pass in 1 2
1612 do
1613   for ac_arg
1614   do
1615     case $ac_arg in
1616     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618     | -silent | --silent | --silen | --sile | --sil)
1619       continue ;;
1620     *\'*)
1621       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622     esac
1623     case $ac_pass in
1624     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625     2)
1626       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627       if test $ac_must_keep_next = true; then
1628         ac_must_keep_next=false # Got value, back to normal.
1629       else
1630         case $ac_arg in
1631           *=* | --config-cache | -C | -disable-* | --disable-* \
1632           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634           | -with-* | --with-* | -without-* | --without-* | --x)
1635             case "$ac_configure_args0 " in
1636               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637             esac
1638             ;;
1639           -* ) ac_must_keep_next=true ;;
1640         esac
1641       fi
1642       ac_configure_args="$ac_configure_args '$ac_arg'"
1643       ;;
1644     esac
1645   done
1646 done
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log.  We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656   # Save into config.log some information that might help in debugging.
1657   {
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1664 _ASBOX
1665     echo
1666     # The following way of writing the cache mishandles newlines in values,
1667 (
1668   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669     eval ac_val=\$$ac_var
1670     case $ac_val in #(
1671     *${as_nl}*)
1672       case $ac_var in #(
1673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675       esac
1676       case $ac_var in #(
1677       _ | IFS | as_nl) ;; #(
1678       *) $as_unset $ac_var ;;
1679       esac ;;
1680     esac
1681   done
1682   (set) 2>&1 |
1683     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684     *${as_nl}ac_space=\ *)
1685       sed -n \
1686         "s/'\''/'\''\\\\'\'''\''/g;
1687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688       ;; #(
1689     *)
1690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1691       ;;
1692     esac |
1693     sort
1694 )
1695     echo
1696
1697     cat <<\_ASBOX
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1701 _ASBOX
1702     echo
1703     for ac_var in $ac_subst_vars
1704     do
1705       eval ac_val=\$$ac_var
1706       case $ac_val in
1707       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708       esac
1709       echo "$ac_var='\''$ac_val'\''"
1710     done | sort
1711     echo
1712
1713     if test -n "$ac_subst_files"; then
1714       cat <<\_ASBOX
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1718 _ASBOX
1719       echo
1720       for ac_var in $ac_subst_files
1721       do
1722         eval ac_val=\$$ac_var
1723         case $ac_val in
1724         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725         esac
1726         echo "$ac_var='\''$ac_val'\''"
1727       done | sort
1728       echo
1729     fi
1730
1731     if test -s confdefs.h; then
1732       cat <<\_ASBOX
1733 ## ----------- ##
1734 ## confdefs.h. ##
1735 ## ----------- ##
1736 _ASBOX
1737       echo
1738       cat confdefs.h
1739       echo
1740     fi
1741     test "$ac_signal" != 0 &&
1742       echo "$as_me: caught signal $ac_signal"
1743     echo "$as_me: exit $exit_status"
1744   } >&5
1745   rm -f core *.core core.conftest.* &&
1746     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747     exit $exit_status
1748 ' 0
1749 for ac_signal in 1 2 13 15; do
1750   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 done
1752 ac_signal=0
1753
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1756
1757 # Predefined preprocessor variables.
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 _ACEOF
1767
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 _ACEOF
1772
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 _ACEOF
1782
1783
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787   set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 else
1791   set x "$ac_default_prefix/share/config.site" \
1792         "$ac_default_prefix/etc/config.site"
1793 fi
1794 shift
1795 for ac_site_file
1796 do
1797   if test -r "$ac_site_file"; then
1798     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800     sed 's/^/| /' "$ac_site_file" >&5
1801     . "$ac_site_file"
1802   fi
1803 done
1804
1805 if test -r "$cache_file"; then
1806   # Some versions of bash will fail to source /dev/null (special
1807   # files actually), so we avoid doing that.
1808   if test -f "$cache_file"; then
1809     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1811     case $cache_file in
1812       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813       *)                      . "./$cache_file";;
1814     esac
1815   fi
1816 else
1817   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1819   >$cache_file
1820 fi
1821
1822 # Check that the precious variables saved in the cache have kept the same
1823 # value.
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827   eval ac_new_set=\$ac_env_${ac_var}_set
1828   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829   eval ac_new_val=\$ac_env_${ac_var}_value
1830   case $ac_old_set,$ac_new_set in
1831     set,)
1832       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834       ac_cache_corrupted=: ;;
1835     ,set)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,);;
1840     *)
1841       if test "x$ac_old_val" != "x$ac_new_val"; then
1842         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1845 echo "$as_me:   former value:  $ac_old_val" >&2;}
1846         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1847 echo "$as_me:   current value: $ac_new_val" >&2;}
1848         ac_cache_corrupted=:
1849       fi;;
1850   esac
1851   # Pass precious variables to config.status.
1852   if test "$ac_new_set" = set; then
1853     case $ac_new_val in
1854     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855     *) ac_arg=$ac_var=$ac_new_val ;;
1856     esac
1857     case " $ac_configure_args " in
1858       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1859       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860     esac
1861   fi
1862 done
1863 if $ac_cache_corrupted; then
1864   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868    { (exit 1); exit 1; }; }
1869 fi
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
1895 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1904
1905
1906
1907
1908
1909
1910
1911 ac_aux_dir=
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913   if test -f "$ac_dir/install-sh"; then
1914     ac_aux_dir=$ac_dir
1915     ac_install_sh="$ac_aux_dir/install-sh -c"
1916     break
1917   elif test -f "$ac_dir/install.sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install.sh -c"
1920     break
1921   elif test -f "$ac_dir/shtool"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/shtool install -c"
1924     break
1925   fi
1926 done
1927 if test -z "$ac_aux_dir"; then
1928   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930    { (exit 1); exit 1; }; }
1931 fi
1932
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1940
1941
1942
1943 if test ${srcdir} != "." ; then
1944   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947    { (exit 1); exit 1; }; }
1948   fi
1949 fi
1950
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957   for ac_prog in clang llvm-gcc gcc
1958   do
1959     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   if test -n "$CC"; then
1967   ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972   IFS=$as_save_IFS
1973   test -z "$as_dir" && as_dir=.
1974   for ac_exec_ext in '' $ac_executable_extensions; do
1975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978     break 2
1979   fi
1980 done
1981 done
1982 IFS=$as_save_IFS
1983
1984 fi
1985 fi
1986 CC=$ac_cv_prog_CC
1987 if test -n "$CC"; then
1988   { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1990 else
1991   { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1993 fi
1994
1995
1996     test -n "$CC" && break
1997   done
1998 fi
1999 if test -z "$CC"; then
2000   ac_ct_CC=$CC
2001   for ac_prog in clang llvm-gcc gcc
2002 do
2003   # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$ac_ct_CC"; then
2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_ac_ct_CC="$ac_prog"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2027
2028 fi
2029 fi
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2038
2039
2040   test -n "$ac_ct_CC" && break
2041 done
2042
2043   if test "x$ac_ct_CC" = x; then
2044     CC=""
2045   else
2046     case $cross_compiling:$ac_tool_warned in
2047 yes:)
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet.  If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet.  If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2054 ac_tool_warned=yes ;;
2055 esac
2056     CC=$ac_ct_CC
2057   fi
2058 fi
2059
2060
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2071 case "(($ac_try" in
2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073   *) ac_try_echo=$ac_try;;
2074 esac
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076   (eval "$ac_compiler --version >&5") 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2081 case "(($ac_try" in
2082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083   *) ac_try_echo=$ac_try;;
2084 esac
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086   (eval "$ac_compiler -v >&5") 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&5"
2091 case "(($ac_try" in
2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093   *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096   (eval "$ac_compiler -V >&5") 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }
2100
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h.  */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h.  */
2107
2108 int
2109 main ()
2110 {
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2120 # of exeext.
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 #
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort.  b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129 #
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions.  Remove them first so a
2132 # subsequent execution test works.
2133 ac_rmfiles=
2134 for ac_file in $ac_files
2135 do
2136   case $ac_file in
2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139   esac
2140 done
2141 rm -f $ac_rmfiles
2142
2143 if { (ac_try="$ac_link_default"
2144 case "(($ac_try" in
2145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146   *) ac_try_echo=$ac_try;;
2147 esac
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149   (eval "$ac_link_default") 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; then
2153   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2157 # Autoconf.
2158 for ac_file in $ac_files
2159 do
2160   test -f "$ac_file" || continue
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2163         ;;
2164     [ab].out )
2165         # We found the default executable, but exeext='' is most
2166         # certainly right.
2167         break;;
2168     *.* )
2169         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2170         then :; else
2171            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172         fi
2173         # We set ac_cv_exeext here because the later test for it is not
2174         # safe: cross compilers may not add the suffix if given an `-o'
2175         # argument, so we may need to know it at that point already.
2176         # Even if this section looks crufty: it has the advantage of
2177         # actually working.
2178         break;;
2179     * )
2180         break;;
2181   esac
2182 done
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2184
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193    { (exit 77); exit 77; }; }
2194 fi
2195
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2199
2200 # Check that the compiler produces executables we can run.  If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207   if { ac_try='./$ac_file'
2208   { (case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213   (eval "$ac_try") 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; }; then
2217     cross_compiling=no
2218   else
2219     if test "$cross_compiling" = maybe; then
2220         cross_compiling=yes
2221     else
2222         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228    { (exit 1); exit 1; }; }
2229     fi
2230   fi
2231 fi
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2234
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run.  If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2247 case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252   (eval "$ac_link") 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; then
2256   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 # `rm'.
2260 for ac_file in conftest.exe conftest conftest.*; do
2261   test -f "$ac_file" || continue
2262   case $ac_file in
2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2306 case "(($ac_try" in
2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308   *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311   (eval "$ac_compile") 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; then
2315   for ac_file in conftest.o conftest.obj conftest.*; do
2316   test -f "$ac_file" || continue;
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320        break;;
2321   esac
2322 done
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 fi
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2339 ac_objext=$OBJEXT
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355 #ifndef __GNUC__
2356        choke me
2357 #endif
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2365 case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370   (eval "$ac_compile") 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378   { (case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383   (eval "$ac_try") 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; } &&
2387          { ac_try='test -s conftest.$ac_objext'
2388   { (case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393   (eval "$ac_try") 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_compiler_gnu=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402         ac_compiler_gnu=no
2403 fi
2404
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408 fi
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   ac_save_c_werror_flag=$ac_c_werror_flag
2420    ac_c_werror_flag=yes
2421    ac_cv_prog_cc_g=no
2422    CFLAGS="-g"
2423    cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_compile") 2>conftest.er1
2446   ac_status=$?
2447   grep -v '^ *+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } &&
2452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453   { (case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458   (eval "$ac_try") 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; } &&
2462          { ac_try='test -s conftest.$ac_objext'
2463   { (case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_try") 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; }; then
2472   ac_cv_prog_cc_g=yes
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477         CFLAGS=""
2478       cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2495 case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_compile") 2>conftest.er1
2501   ac_status=$?
2502   grep -v '^ *+' conftest.er1 >conftest.err
2503   rm -f conftest.er1
2504   cat conftest.err >&5
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508   { (case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513   (eval "$ac_try") 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; } &&
2517          { ac_try='test -s conftest.$ac_objext'
2518   { (case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_try") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; }; then
2527   :
2528 else
2529   echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532         ac_c_werror_flag=$ac_save_c_werror_flag
2533          CFLAGS="-g"
2534          cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 int
2542 main ()
2543 {
2544
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2551 case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_compile") 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } &&
2563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564   { (case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_try") 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_try") 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_cv_prog_cc_g=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
2589 fi
2590
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 fi
2593
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598    ac_c_werror_flag=$ac_save_c_werror_flag
2599 fi
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603   CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605   if test "$GCC" = yes; then
2606     CFLAGS="-g -O2"
2607   else
2608     CFLAGS="-g"
2609   fi
2610 else
2611   if test "$GCC" = yes; then
2612     CFLAGS="-O2"
2613   else
2614     CFLAGS=
2615   fi
2616 fi
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   ac_cv_prog_cc_c89=no
2623 ac_save_CC=$CC
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630 #include <stdarg.h>
2631 #include <stdio.h>
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2638      char **p;
2639      int i;
2640 {
2641   return p[i];
2642 }
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2644 {
2645   char *s;
2646   va_list v;
2647   va_start (v,p);
2648   s = g (p, va_arg (v,int));
2649   va_end (v);
2650   return s;
2651 }
2652
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2654    function prototypes and stuff, but not '\xHH' hex character constants.
2655    These don't provoke an error unfortunately, instead are silently treated
2656    as 'x'.  The following induces an error, until -std is added to get
2657    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2658    array size at least.  It's necessary to write '\x00'==0 to get something
2659    that's true only with -std.  */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663    inside strings and character constants.  */
2664 #define FOO(x) 'x'
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671 int argc;
2672 char **argv;
2673 int
2674 main ()
2675 {
2676 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683 do
2684   CC="$ac_save_CC $ac_arg"
2685   rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692   (eval "$ac_compile") 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700   { (case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_try") 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_try") 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   ac_cv_prog_cc_c89=$ac_arg
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext
2728   test "x$ac_cv_prog_cc_c89" != "xno" && break
2729 done
2730 rm -f conftest.$ac_ext
2731 CC=$ac_save_CC
2732
2733 fi
2734 # AC_CACHE_VAL
2735 case "x$ac_cv_prog_cc_c89" in
2736   x)
2737     { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2739   xno)
2740     { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2742   *)
2743     CC="$CC $ac_cv_prog_cc_c89"
2744     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2746 esac
2747
2748
2749 ac_ext=c
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
2755 ac_ext=cpp
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761   if test -n "$CCC"; then
2762     CXX=$CCC
2763   else
2764     if test -n "$ac_tool_prefix"; then
2765   for ac_prog in clang++ llvm-g++ g++
2766   do
2767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$CXX"; then
2775   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 CXX=$ac_cv_prog_CXX
2795 if test -n "$CXX"; then
2796   { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2798 else
2799   { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2801 fi
2802
2803
2804     test -n "$CXX" && break
2805   done
2806 fi
2807 if test -z "$CXX"; then
2808   ac_ct_CXX=$CXX
2809   for ac_prog in clang++ llvm-g++ g++
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$ac_ct_CXX"; then
2819   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_ac_ct_CXX="$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848   test -n "$ac_ct_CXX" && break
2849 done
2850
2851   if test "x$ac_ct_CXX" = x; then
2852     CXX="g++"
2853   else
2854     case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet.  If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet.  If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     CXX=$ac_ct_CXX
2865   fi
2866 fi
2867
2868   fi
2869 fi
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2874 case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_compiler --version >&5") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_compiler -v >&5") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899   (eval "$ac_compiler -V >&5") 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915
2916 int
2917 main ()
2918 {
2919 #ifndef __GNUC__
2920        choke me
2921 #endif
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compile") 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } &&
2941          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942   { (case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_try") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; } &&
2951          { ac_try='test -s conftest.$ac_objext'
2952   { (case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_try") 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   ac_compiler_gnu=yes
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966         ac_compiler_gnu=no
2967 fi
2968
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971
2972 fi
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984    ac_cxx_werror_flag=yes
2985    ac_cv_prog_cxx_g=no
2986    CXXFLAGS="-g"
2987    cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h.  */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_compile") 2>conftest.er1
3010   ac_status=$?
3011   grep -v '^ *+' conftest.er1 >conftest.err
3012   rm -f conftest.er1
3013   cat conftest.err >&5
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } &&
3016          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017   { (case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_try") 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_try") 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; }; then
3036   ac_cv_prog_cxx_g=yes
3037 else
3038   echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041         CXXFLAGS=""
3042       cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048
3049 int
3050 main ()
3051 {
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_compile") 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072   { (case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_try") 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }; } &&
3081          { ac_try='test -s conftest.$ac_objext'
3082   { (case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_try") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; }; then
3091   :
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097          CXXFLAGS="-g"
3098          cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compile") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } &&
3127          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; } &&
3137          { ac_try='test -s conftest.$ac_objext'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   ac_cv_prog_cxx_g=yes
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 fi
3157
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 fi
3160
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163 fi
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167   CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169   if test "$GXX" = yes; then
3170     CXXFLAGS="-g -O2"
3171   else
3172     CXXFLAGS="-g"
3173   fi
3174 else
3175   if test "$GXX" = yes; then
3176     CXXFLAGS="-O2"
3177   else
3178     CXXFLAGS=
3179   fi
3180 fi
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3196   CPP=
3197 fi
3198 if test -z "$CPP"; then
3199   if test "${ac_cv_prog_CPP+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202       # Double quotes because CPP needs to be expanded
3203     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204     do
3205       ac_preproc_ok=false
3206 for ac_c_preproc_warn_flag in '' yes
3207 do
3208   # Use a header file that comes with gcc, so configuring glibc
3209   # with a fresh cross-compiler works.
3210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211   # <limits.h> exists even on freestanding compilers.
3212   # On the NeXT, cc -E runs the code through the compiler's parser,
3213   # not just through cpp. "Syntax error" is here to catch this case.
3214   cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220 #ifdef __STDC__
3221 # include <limits.h>
3222 #else
3223 # include <assert.h>
3224 #endif
3225                      Syntax error
3226 _ACEOF
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } >/dev/null; then
3240   if test -s conftest.err; then
3241     ac_cpp_err=$ac_c_preproc_warn_flag
3242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243   else
3244     ac_cpp_err=
3245   fi
3246 else
3247   ac_cpp_err=yes
3248 fi
3249 if test -z "$ac_cpp_err"; then
3250   :
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255   # Broken: fails on valid input.
3256 continue
3257 fi
3258
3259 rm -f conftest.err conftest.$ac_ext
3260
3261   # OK, works on sane cases.  Now check whether nonexistent headers
3262   # can be detected and how.
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #include <ac_nonexistent.h>
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287   else
3288     ac_cpp_err=
3289   fi
3290 else
3291   ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294   # Broken: success on invalid input.
3295 continue
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300   # Passes both tests.
3301 ac_preproc_ok=:
3302 break
3303 fi
3304
3305 rm -f conftest.err conftest.$ac_ext
3306
3307 done
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3311   break
3312 fi
3313
3314     done
3315     ac_cv_prog_CPP=$CPP
3316
3317 fi
3318   CPP=$ac_cv_prog_CPP
3319 else
3320   ac_cv_prog_CPP=$CPP
3321 fi
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3324 ac_preproc_ok=false
3325 for ac_c_preproc_warn_flag in '' yes
3326 do
3327   # Use a header file that comes with gcc, so configuring glibc
3328   # with a fresh cross-compiler works.
3329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330   # <limits.h> exists even on freestanding compilers.
3331   # On the NeXT, cc -E runs the code through the compiler's parser,
3332   # not just through cpp. "Syntax error" is here to catch this case.
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #ifdef __STDC__
3340 # include <limits.h>
3341 #else
3342 # include <assert.h>
3343 #endif
3344                      Syntax error
3345 _ACEOF
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } >/dev/null; then
3359   if test -s conftest.err; then
3360     ac_cpp_err=$ac_c_preproc_warn_flag
3361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362   else
3363     ac_cpp_err=
3364   fi
3365 else
3366   ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369   :
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374   # Broken: fails on valid input.
3375 continue
3376 fi
3377
3378 rm -f conftest.err conftest.$ac_ext
3379
3380   # OK, works on sane cases.  Now check whether nonexistent headers
3381   # can be detected and how.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #include <ac_nonexistent.h>
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   # Broken: success on invalid input.
3414 continue
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419   # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3422 fi
3423
3424 rm -f conftest.err conftest.$ac_ext
3425
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430   :
3431 else
3432   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436    { (exit 1); exit 1; }; }
3437 fi
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445
3446
3447
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449   subdirs="$subdirs projects/llvm-gcc"
3450
3451 fi
3452
3453 if test -d ${srcdir}/projects/test-suite ; then
3454   subdirs="$subdirs projects/test-suite"
3455
3456 fi
3457
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459   subdirs="$subdirs projects/llvm-test"
3460
3461 fi
3462
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464   subdirs="$subdirs projects/poolalloc"
3465
3466 fi
3467
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469   subdirs="$subdirs projects/llvm-poolalloc"
3470
3471 fi
3472
3473 for i in `ls ${srcdir}/projects`
3474 do
3475   if test -d ${srcdir}/projects/${i} ; then
3476     case ${i} in
3477       sample)       subdirs="$subdirs projects/sample"
3478     ;;
3479       privbracket)  subdirs="$subdirs projects/privbracket"
3480  ;;
3481       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482  ;;
3483       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3484 ;;
3485       llvm-java)    subdirs="$subdirs projects/llvm-java"
3486  ;;
3487       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3488    ;;
3489       safecode)     subdirs="$subdirs projects/safecode"
3490  ;;
3491       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3492  ;;
3493       llvm-gcc)       ;;
3494       test-suite)     ;;
3495       llvm-test)      ;;
3496       poolalloc)      ;;
3497       llvm-poolalloc) ;;
3498       *)
3499         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3501         ;;
3502     esac
3503   fi
3504 done
3505
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508   enableval=$enable_polly;
3509 else
3510   enableval=default
3511 fi
3512
3513 case "$enableval" in
3514   yes) ENABLE_POLLY=1
3515  ;;
3516   no)  ENABLE_POLLY=0
3517  ;;
3518   default) ENABLE_POLLY=1
3519  ;;
3520   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522    { (exit 1); exit 1; }; } ;;
3523 esac
3524
3525
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527   LLVM_HAS_POLLY=1
3528
3529   subdirs="$subdirs tools/polly"
3530
3531 fi
3532
3533
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538    { (exit 1); exit 1; }; }
3539
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551    { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555    { (exit 1); exit 1; }; }
3556
3557 fi
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3561 *-*-*) ;;
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564    { (exit 1); exit 1; }; };;
3565 esac
3566 build=$ac_cv_build
3567 ac_save_IFS=$IFS; IFS='-'
3568 set x $ac_cv_build
3569 shift
3570 build_cpu=$1
3571 build_vendor=$2
3572 shift; shift
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3575 build_os=$*
3576 IFS=$ac_save_IFS
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578
3579
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   if test "x$host_alias" = x; then
3586   ac_cv_host=$ac_cv_build
3587 else
3588   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591    { (exit 1); exit 1; }; }
3592 fi
3593
3594 fi
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3597 case $ac_cv_host in
3598 *-*-*) ;;
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601    { (exit 1); exit 1; }; };;
3602 esac
3603 host=$ac_cv_host
3604 ac_save_IFS=$IFS; IFS='-'
3605 set x $ac_cv_host
3606 shift
3607 host_cpu=$1
3608 host_vendor=$2
3609 shift; shift
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3612 host_os=$*
3613 IFS=$ac_save_IFS
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615
3616
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test "x$target_alias" = x; then
3623   ac_cv_target=$ac_cv_host
3624 else
3625   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628    { (exit 1); exit 1; }; }
3629 fi
3630
3631 fi
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3635 *-*-*) ;;
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638    { (exit 1); exit 1; }; };;
3639 esac
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3642 set x $ac_cv_target
3643 shift
3644 target_cpu=$1
3645 target_vendor=$2
3646 shift; shift
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3649 target_os=$*
3650 IFS=$ac_save_IFS
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657   test "$program_prefix$program_suffix$program_transform_name" = \
3658     NONENONEs,x,x, &&
3659   program_prefix=${target_alias}-
3660
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   case $host in
3667   *-*-aix*)
3668     llvm_cv_link_all_option="-Wl,--whole-archive"
3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670     llvm_cv_os_type="AIX"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-irix*)
3673     llvm_cv_link_all_option="-Wl,--whole-archive"
3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675     llvm_cv_os_type="IRIX"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-cygwin*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="Cygwin"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-darwin*)
3683     llvm_cv_link_all_option="-Wl,-all_load"
3684     llvm_cv_no_link_all_option="-Wl,-noall_load"
3685     llvm_cv_os_type="Darwin"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-minix*)
3688     llvm_cv_link_all_option="-Wl,-all_load"
3689     llvm_cv_no_link_all_option="-Wl,-noall_load"
3690     llvm_cv_os_type="Minix"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-freebsd*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="FreeBSD"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-openbsd*)
3698     llvm_cv_link_all_option="-Wl,--whole-archive"
3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700     llvm_cv_os_type="OpenBSD"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-netbsd*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="NetBSD"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-dragonfly*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="DragonFly"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-hpux*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="HP-UX"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-interix*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="Interix"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-linux*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="Linux"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-solaris*)
3728     llvm_cv_link_all_option="-Wl,-z,allextract"
3729     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730     llvm_cv_os_type="SunOS"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-auroraux*)
3733     llvm_cv_link_all_option="-Wl,-z,allextract"
3734     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735     llvm_cv_os_type="AuroraUX"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-win32*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="Win32"
3741     llvm_cv_platform_type="Win32" ;;
3742   *-*-mingw*)
3743     llvm_cv_link_all_option="-Wl,--whole-archive"
3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745     llvm_cv_os_type="MingW"
3746     llvm_cv_platform_type="Win32" ;;
3747   *-*-haiku*)
3748     llvm_cv_link_all_option="-Wl,--whole-archive"
3749     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750     llvm_cv_os_type="Haiku"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-unknown-eabi*)
3753     llvm_cv_link_all_option="-Wl,--whole-archive"
3754     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755     llvm_cv_os_type="Freestanding"
3756     llvm_cv_platform_type="Unix" ;;
3757   *-unknown-elf*)
3758     llvm_cv_link_all_option="-Wl,--whole-archive"
3759     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760     llvm_cv_os_type="Freestanding"
3761     llvm_cv_platform_type="Unix" ;;
3762   *)
3763     llvm_cv_link_all_option=""
3764     llvm_cv_no_link_all_option=""
3765     llvm_cv_os_type="Unknown"
3766     llvm_cv_platform_type="Unknown" ;;
3767 esac
3768 fi
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   case $target in
3778   *-*-aix*)
3779     llvm_cv_target_os_type="AIX" ;;
3780   *-*-irix*)
3781     llvm_cv_target_os_type="IRIX" ;;
3782   *-*-cygwin*)
3783     llvm_cv_target_os_type="Cygwin" ;;
3784   *-*-darwin*)
3785     llvm_cv_target_os_type="Darwin" ;;
3786   *-*-minix*)
3787     llvm_cv_target_os_type="Minix" ;;
3788   *-*-freebsd*)
3789     llvm_cv_target_os_type="FreeBSD" ;;
3790   *-*-openbsd*)
3791     llvm_cv_target_os_type="OpenBSD" ;;
3792   *-*-netbsd*)
3793     llvm_cv_target_os_type="NetBSD" ;;
3794   *-*-dragonfly*)
3795     llvm_cv_target_os_type="DragonFly" ;;
3796   *-*-hpux*)
3797     llvm_cv_target_os_type="HP-UX" ;;
3798   *-*-interix*)
3799     llvm_cv_target_os_type="Interix" ;;
3800   *-*-linux*)
3801     llvm_cv_target_os_type="Linux" ;;
3802   *-*-solaris*)
3803     llvm_cv_target_os_type="SunOS" ;;
3804   *-*-auroraux*)
3805     llvm_cv_target_os_type="AuroraUX" ;;
3806   *-*-win32*)
3807     llvm_cv_target_os_type="Win32" ;;
3808   *-*-mingw*)
3809     llvm_cv_target_os_type="MingW" ;;
3810   *-*-haiku*)
3811     llvm_cv_target_os_type="Haiku" ;;
3812   *-*-rtems*)
3813     llvm_cv_target_os_type="RTEMS" ;;
3814   *-*-nacl*)
3815     llvm_cv_target_os_type="NativeClient" ;;
3816   *-unknown-eabi*)
3817     llvm_cv_target_os_type="Freestanding" ;;
3818   *)
3819     llvm_cv_target_os_type="Unknown" ;;
3820 esac
3821 fi
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828    { (exit 1); exit 1; }; }
3829 fi
3830
3831 OS=$llvm_cv_os_type
3832
3833 HOST_OS=$llvm_cv_os_type
3834
3835 TARGET_OS=$llvm_cv_target_os_type
3836
3837
3838 LINKALL=$llvm_cv_link_all_option
3839
3840 NOLINKALL=$llvm_cv_no_link_all_option
3841
3842
3843 case $llvm_cv_platform_type in
3844   Unix)
3845
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3848 _ACEOF
3849
3850     LLVM_ON_UNIX=1
3851
3852     LLVM_ON_WIN32=0
3853
3854     ;;
3855   Win32)
3856
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3859 _ACEOF
3860
3861     LLVM_ON_UNIX=0
3862
3863     LLVM_ON_WIN32=1
3864
3865     ;;
3866 esac
3867
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   case $target in
3874   i?86-*)                 llvm_cv_target_arch="x86" ;;
3875   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3876   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3877   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3878   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3879   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3880   mips-*)                 llvm_cv_target_arch="Mips" ;;
3881   xcore-*)                llvm_cv_target_arch="XCore" ;;
3882   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3883   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3884   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3885   *)                      llvm_cv_target_arch="Unknown" ;;
3886 esac
3887 fi
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894 fi
3895
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898     x86)     LLVM_NATIVE_ARCH="X86" ;;
3899     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3900     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901 esac
3902
3903 ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_prog in grep ggrep; do
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930     # Check for GNU ac_path_GREP and select it if it is found.
3931   # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3933 *GNU*)
3934   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935 *)
3936   ac_count=0
3937   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3938   while :
3939   do
3940     cat "conftest.in" "conftest.in" >"conftest.tmp"
3941     mv "conftest.tmp" "conftest.in"
3942     cp "conftest.in" "conftest.nl"
3943     echo 'GREP' >> "conftest.nl"
3944     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946     ac_count=`expr $ac_count + 1`
3947     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948       # Best one so far, save it but keep looking for a better one
3949       ac_cv_path_GREP="$ac_path_GREP"
3950       ac_path_GREP_max=$ac_count
3951     fi
3952     # 10*(2^10) chars as input seems more than enough
3953     test $ac_count -gt 10 && break
3954   done
3955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957
3958
3959     $ac_path_GREP_found && break 3
3960   done
3961 done
3962
3963 done
3964 IFS=$as_save_IFS
3965
3966
3967 fi
3968
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973    { (exit 1); exit 1; }; }
3974 fi
3975
3976 else
3977   ac_cv_path_GREP=$GREP
3978 fi
3979
3980
3981 fi
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984  GREP="$ac_cv_path_GREP"
3985
3986
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993    then ac_cv_path_EGREP="$GREP -E"
3994    else
3995      # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008   for ac_prog in egrep; do
4009   for ac_exec_ext in '' $ac_executable_extensions; do
4010     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012     # Check for GNU ac_path_EGREP and select it if it is found.
4013   # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4015 *GNU*)
4016   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017 *)
4018   ac_count=0
4019   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4020   while :
4021   do
4022     cat "conftest.in" "conftest.in" >"conftest.tmp"
4023     mv "conftest.tmp" "conftest.in"
4024     cp "conftest.in" "conftest.nl"
4025     echo 'EGREP' >> "conftest.nl"
4026     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028     ac_count=`expr $ac_count + 1`
4029     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030       # Best one so far, save it but keep looking for a better one
4031       ac_cv_path_EGREP="$ac_path_EGREP"
4032       ac_path_EGREP_max=$ac_count
4033     fi
4034     # 10*(2^10) chars as input seems more than enough
4035     test $ac_count -gt 10 && break
4036   done
4037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 esac
4039
4040
4041     $ac_path_EGREP_found && break 3
4042   done
4043 done
4044
4045 done
4046 IFS=$as_save_IFS
4047
4048
4049 fi
4050
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055    { (exit 1); exit 1; }; }
4056 fi
4057
4058 else
4059   ac_cv_path_EGREP=$EGREP
4060 fi
4061
4062
4063    fi
4064 fi
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067  EGREP="$ac_cv_path_EGREP"
4068
4069
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #include <stdlib.h>
4082 #include <stdarg.h>
4083 #include <string.h>
4084 #include <float.h>
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_compile") 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109   { (case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_try") 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_cv_header_stdc=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_cv_header_stdc=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <string.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "memchr" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "free" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182   if test "$cross_compiling" = yes; then
4183   :
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <ctype.h>
4192 #include <stdlib.h>
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 #else
4197 # define ISLOWER(c) \
4198                    (('a' <= (c) && (c) <= 'i') \
4199                      || ('j' <= (c) && (c) <= 'r') \
4200                      || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #endif
4203
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205 int
4206 main ()
4207 {
4208   int i;
4209   for (i = 0; i < 256; i++)
4210     if (XOR (islower (i), ISLOWER (i))
4211         || toupper (i) != TOUPPER (i))
4212       return 2;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_link") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   :
4237 else
4238   echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ( exit $ac_status )
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 fi
4247
4248
4249 fi
4250 fi
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4254
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4257 _ACEOF
4258
4259 fi
4260
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272                   inttypes.h stdint.h unistd.h
4273 do
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 $ac_includes_default
4287
4288 #include <$ac_header>
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4292 case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_compile") 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } &&
4304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305   { (case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_try") 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; } &&
4314          { ac_try='test -s conftest.$ac_objext'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   eval "$as_ac_Header=yes"
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329         eval "$as_ac_Header=no"
4330 fi
4331
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335                { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338   cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 _ACEOF
4341
4342 fi
4343
4344 done
4345
4346
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4361
4362 int
4363 main ()
4364 {
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366  bogus endian macros
4367 #endif
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_compile") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388   { (case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; } &&
4397          { ac_try='test -s conftest.$ac_objext'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4416
4417 int
4418 main ()
4419 {
4420 #if BYTE_ORDER != BIG_ENDIAN
4421  not big endian
4422 #endif
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4430 case "(($ac_try" in
4431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432   *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435   (eval "$ac_compile") 2>conftest.er1
4436   ac_status=$?
4437   grep -v '^ *+' conftest.er1 >conftest.err
4438   rm -f conftest.er1
4439   cat conftest.err >&5
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } &&
4442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443   { (case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_try") 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; } &&
4452          { ac_try='test -s conftest.$ac_objext'
4453   { (case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   ac_cv_c_bigendian=yes
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467         ac_cv_c_bigendian=no
4468 fi
4469
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477   # try to guess the endianness by grepping values into an object file
4478   ac_cv_c_bigendian=unknown
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4491 int
4492 main ()
4493 {
4494  _ascii (); _ebcdic ();
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4501 case "(($ac_try" in
4502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503   *) ac_try_echo=$ac_try;;
4504 esac
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506   (eval "$ac_compile") 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514   { (case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_try") 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; } &&
4523          { ac_try='test -s conftest.$ac_objext'
4524   { (case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529   (eval "$ac_try") 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534   ac_cv_c_bigendian=yes
4535 fi
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537   if test "$ac_cv_c_bigendian" = unknown; then
4538     ac_cv_c_bigendian=no
4539   else
4540     # finding both strings is unlikely to happen, but who knows?
4541     ac_cv_c_bigendian=unknown
4542   fi
4543 fi
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548
4549 fi
4550
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 else
4553   cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 $ac_includes_default
4560 int
4561 main ()
4562 {
4563
4564   /* Are we little or big endian?  From Harbison&Steele.  */
4565   union
4566   {
4567     long int l;
4568     char c[sizeof (long int)];
4569   } u;
4570   u.l = 1;
4571   return u.c[sizeof (long int) - 1] == 1;
4572
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   ac_cv_c_bigendian=no
4598 else
4599   echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 ( exit $ac_status )
4604 ac_cv_c_bigendian=yes
4605 fi
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607 fi
4608
4609
4610 fi
4611
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4617   yes)
4618     ENDIAN=big
4619  ;;
4620   no)
4621     ENDIAN=little
4622  ;;
4623   *)
4624     { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628    { (exit 1); exit 1; }; } ;;
4629 esac
4630
4631
4632 if test "$cross_compiling" = yes; then
4633   LLVM_CROSS_COMPILING=1
4634
4635
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642   ac_cv_build_exeext=.exe
4643 else
4644   ac_build_prefix=${build_alias}-
4645
4646   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$BUILD_CC"; then
4654   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4677 else
4678   { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 fi
4681
4682
4683   if test -z "$BUILD_CC"; then
4684      # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test -n "$BUILD_CC"; then
4692   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_BUILD_CC="gcc"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4715 else
4716   { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4718 fi
4719
4720
4721      if test -z "$BUILD_CC"; then
4722        # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$BUILD_CC"; then
4730   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731 else
4732   ac_prog_rejected=no
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741        ac_prog_rejected=yes
4742        continue
4743      fi
4744     ac_cv_prog_BUILD_CC="cc"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 if test $ac_prog_rejected = yes; then
4753   # We found a bogon in the path, so make sure we never use it.
4754   set dummy $ac_cv_prog_BUILD_CC
4755   shift
4756   if test $# != 0; then
4757     # We chose a different compiler from the bogus one.
4758     # However, it has the same basename, so the bogon will be chosen
4759     # first if we set BUILD_CC to just the basename; use the full file name.
4760     shift
4761     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762   fi
4763 fi
4764 fi
4765 fi
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4770 else
4771   { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776      fi
4777   fi
4778   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780    { (exit 1); exit 1; }; }
4781   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782   rm -f conftest*
4783   echo 'int main () { return 0; }' > conftest.$ac_ext
4784   ac_cv_build_exeext=
4785   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786   (eval $ac_build_link) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; then
4790     for file in conftest.*; do
4791       case $file in
4792       *.c | *.o | *.obj | *.dSYM) ;;
4793       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794       esac
4795     done
4796   else
4797     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799    { (exit 1); exit 1; }; }
4800   fi
4801   rm -f conftest*
4802   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803 fi
4804 fi
4805
4806 BUILD_EXEEXT=""
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4811
4812   ac_build_prefix=${build_alias}-
4813   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   if test -n "$BUILD_CXX"; then
4821   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4844 else
4845   { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4847 fi
4848
4849
4850   if test -z "$BUILD_CXX"; then
4851      # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -n "$BUILD_CXX"; then
4859   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_BUILD_CXX="g++"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4882 else
4883   { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 fi
4886
4887
4888      if test -z "$BUILD_CXX"; then
4889        # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$BUILD_CXX"; then
4897   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898 else
4899   ac_prog_rejected=no
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908        ac_prog_rejected=yes
4909        continue
4910      fi
4911     ac_cv_prog_BUILD_CXX="c++"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 if test $ac_prog_rejected = yes; then
4920   # We found a bogon in the path, so make sure we never use it.
4921   set dummy $ac_cv_prog_BUILD_CXX
4922   shift
4923   if test $# != 0; then
4924     # We chose a different compiler from the bogus one.
4925     # However, it has the same basename, so the bogon will be chosen
4926     # first if we set BUILD_CXX to just the basename; use the full file name.
4927     shift
4928     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929   fi
4930 fi
4931 fi
4932 fi
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943      fi
4944   fi
4945 else
4946   LLVM_CROSS_COMPILING=0
4947
4948 fi
4949
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4951   cvsbuild="yes"
4952   optimize="no"
4953   CVSBUILD=CVSBUILD=1
4954
4955 else
4956   cvsbuild="no"
4957   optimize="yes"
4958 fi
4959
4960
4961 # Check whether --enable-optimized was given.
4962 if test "${enable_optimized+set}" = set; then
4963   enableval=$enable_optimized;
4964 else
4965   enableval=$optimize
4966 fi
4967
4968 if test ${enableval} = "no" ; then
4969   ENABLE_OPTIMIZED=
4970
4971 else
4972   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4973
4974 fi
4975
4976 # Check whether --enable-profiling was given.
4977 if test "${enable_profiling+set}" = set; then
4978   enableval=$enable_profiling;
4979 else
4980   enableval="no"
4981 fi
4982
4983 if test ${enableval} = "no" ; then
4984   ENABLE_PROFILING=
4985
4986 else
4987   ENABLE_PROFILING=ENABLE_PROFILING=1
4988
4989 fi
4990
4991 # Check whether --enable-assertions was given.
4992 if test "${enable_assertions+set}" = set; then
4993   enableval=$enable_assertions;
4994 else
4995   enableval="yes"
4996 fi
4997
4998 if test ${enableval} = "yes" ; then
4999   DISABLE_ASSERTIONS=
5000
5001 else
5002   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5003
5004 fi
5005
5006 # Check whether --enable-expensive-checks was given.
5007 if test "${enable_expensive_checks+set}" = set; then
5008   enableval=$enable_expensive_checks;
5009 else
5010   enableval="no"
5011 fi
5012
5013 if test ${enableval} = "yes" ; then
5014   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015
5016   EXPENSIVE_CHECKS=yes
5017
5018 else
5019   ENABLE_EXPENSIVE_CHECKS=
5020
5021   EXPENSIVE_CHECKS=no
5022
5023 fi
5024
5025 # Check whether --enable-debug-runtime was given.
5026 if test "${enable_debug_runtime+set}" = set; then
5027   enableval=$enable_debug_runtime;
5028 else
5029   enableval=no
5030 fi
5031
5032 if test ${enableval} = "no" ; then
5033   DEBUG_RUNTIME=
5034
5035 else
5036   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5037
5038 fi
5039
5040 # Check whether --enable-debug-symbols was given.
5041 if test "${enable_debug_symbols+set}" = set; then
5042   enableval=$enable_debug_symbols;
5043 else
5044   enableval=no
5045 fi
5046
5047 if test ${enableval} = "no" ; then
5048   DEBUG_SYMBOLS=
5049
5050 else
5051   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5052
5053 fi
5054
5055 # Check whether --enable-jit was given.
5056 if test "${enable_jit+set}" = set; then
5057   enableval=$enable_jit;
5058 else
5059   enableval=default
5060 fi
5061
5062 if test ${enableval} = "no"
5063 then
5064   JIT=
5065
5066 else
5067   case "$llvm_cv_target_arch" in
5068     x86)         TARGET_HAS_JIT=1
5069  ;;
5070     Sparc)       TARGET_HAS_JIT=0
5071  ;;
5072     PowerPC)     TARGET_HAS_JIT=1
5073  ;;
5074     x86_64)      TARGET_HAS_JIT=1
5075  ;;
5076     Alpha)       TARGET_HAS_JIT=0
5077  ;;
5078     ARM)         TARGET_HAS_JIT=1
5079  ;;
5080     Mips)        TARGET_HAS_JIT=1
5081  ;;
5082     XCore)       TARGET_HAS_JIT=0
5083  ;;
5084     MSP430)      TARGET_HAS_JIT=0
5085  ;;
5086     MBlaze)      TARGET_HAS_JIT=0
5087  ;;
5088     PTX)         TARGET_HAS_JIT=0
5089  ;;
5090     *)           TARGET_HAS_JIT=0
5091  ;;
5092   esac
5093 fi
5094
5095 # Check whether --enable-docs was given.
5096 if test "${enable_docs+set}" = set; then
5097   enableval=$enable_docs;
5098 else
5099   enableval=default
5100 fi
5101
5102 case "$enableval" in
5103   yes) ENABLE_DOCS=1
5104  ;;
5105   no)  ENABLE_DOCS=0
5106  ;;
5107   default) ENABLE_DOCS=1
5108  ;;
5109   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5111    { (exit 1); exit 1; }; } ;;
5112 esac
5113
5114 # Check whether --enable-doxygen was given.
5115 if test "${enable_doxygen+set}" = set; then
5116   enableval=$enable_doxygen;
5117 else
5118   enableval=default
5119 fi
5120
5121 case "$enableval" in
5122   yes) ENABLE_DOXYGEN=1
5123  ;;
5124   no)  ENABLE_DOXYGEN=0
5125  ;;
5126   default) ENABLE_DOXYGEN=0
5127  ;;
5128   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5130    { (exit 1); exit 1; }; } ;;
5131 esac
5132
5133 # Check whether --enable-threads was given.
5134 if test "${enable_threads+set}" = set; then
5135   enableval=$enable_threads;
5136 else
5137   enableval=default
5138 fi
5139
5140 case "$enableval" in
5141   yes) ENABLE_THREADS=1
5142  ;;
5143   no)  ENABLE_THREADS=0
5144  ;;
5145   default) ENABLE_THREADS=1
5146  ;;
5147   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5149    { (exit 1); exit 1; }; } ;;
5150 esac
5151
5152 cat >>confdefs.h <<_ACEOF
5153 #define ENABLE_THREADS $ENABLE_THREADS
5154 _ACEOF
5155
5156
5157 # Check whether --enable-pthreads was given.
5158 if test "${enable_pthreads+set}" = set; then
5159   enableval=$enable_pthreads;
5160 else
5161   enableval=default
5162 fi
5163
5164 case "$enableval" in
5165   yes) ENABLE_PTHREADS=1
5166  ;;
5167   no)  ENABLE_PTHREADS=0
5168  ;;
5169   default) ENABLE_PTHREADS=1
5170  ;;
5171   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5173    { (exit 1); exit 1; }; } ;;
5174 esac
5175
5176 # Check whether --enable-pic was given.
5177 if test "${enable_pic+set}" = set; then
5178   enableval=$enable_pic;
5179 else
5180   enableval=default
5181 fi
5182
5183 case "$enableval" in
5184   yes) ENABLE_PIC=1
5185  ;;
5186   no)  ENABLE_PIC=0
5187  ;;
5188   default) ENABLE_PIC=1
5189  ;;
5190   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5191 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5192    { (exit 1); exit 1; }; } ;;
5193 esac
5194
5195 cat >>confdefs.h <<_ACEOF
5196 #define ENABLE_PIC $ENABLE_PIC
5197 _ACEOF
5198
5199
5200 # Check whether --enable-shared was given.
5201 if test "${enable_shared+set}" = set; then
5202   enableval=$enable_shared;
5203 else
5204   enableval=default
5205 fi
5206
5207 case "$enableval" in
5208   yes) ENABLE_SHARED=1
5209  ;;
5210   no)  ENABLE_SHARED=0
5211  ;;
5212   default) ENABLE_SHARED=0
5213  ;;
5214   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5215 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5216    { (exit 1); exit 1; }; } ;;
5217 esac
5218
5219 # Check whether --enable-embed-stdcxx was given.
5220 if test "${enable_embed_stdcxx+set}" = set; then
5221   enableval=$enable_embed_stdcxx;
5222 else
5223   enableval=default
5224 fi
5225
5226 case "$enableval" in
5227   yes) ENABLE_EMBED_STDCXX=1
5228  ;;
5229   no)  ENABLE_EMBED_STDCXX=0
5230  ;;
5231   default) ENABLE_EMBED_STDCXX=0
5232  ;;
5233   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5235    { (exit 1); exit 1; }; } ;;
5236 esac
5237
5238 # Check whether --enable-timestamps was given.
5239 if test "${enable_timestamps+set}" = set; then
5240   enableval=$enable_timestamps;
5241 else
5242   enableval=default
5243 fi
5244
5245 case "$enableval" in
5246   yes) ENABLE_TIMESTAMPS=1
5247  ;;
5248   no)  ENABLE_TIMESTAMPS=0
5249  ;;
5250   default) ENABLE_TIMESTAMPS=1
5251  ;;
5252   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5254    { (exit 1); exit 1; }; } ;;
5255 esac
5256
5257 cat >>confdefs.h <<_ACEOF
5258 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5259 _ACEOF
5260
5261
5262 TARGETS_TO_BUILD=""
5263 # Check whether --enable-targets was given.
5264 if test "${enable_targets+set}" = set; then
5265   enableval=$enable_targets;
5266 else
5267   enableval=all
5268 fi
5269
5270 if test "$enableval" = host-only ; then
5271   enableval=host
5272 fi
5273 case "$enableval" in
5274   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5275   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5276       case "$a_target" in
5277         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5282         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5283         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5285         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5288         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5289         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5290         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5291         host) case "$llvm_cv_target_arch" in
5292             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5295             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5296             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5297             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5298             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5299             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5300             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5301             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5303             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5304             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5305 echo "$as_me: error: Can not set target to build" >&2;}
5306    { (exit 1); exit 1; }; } ;;
5307           esac ;;
5308         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5309 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5310    { (exit 1); exit 1; }; } ;;
5311       esac
5312   done
5313   ;;
5314 esac
5315 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5316
5317
5318 # Determine whether we are building LLVM support for the native architecture.
5319 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5320 for a_target in $TARGETS_TO_BUILD; do
5321   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5322
5323 cat >>confdefs.h <<_ACEOF
5324 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5325 _ACEOF
5326
5327     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5328     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5329     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5330     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5331     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5332       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5333     fi
5334
5335 cat >>confdefs.h <<_ACEOF
5336 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5337 _ACEOF
5338
5339
5340 cat >>confdefs.h <<_ACEOF
5341 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5342 _ACEOF
5343
5344
5345 cat >>confdefs.h <<_ACEOF
5346 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5347 _ACEOF
5348
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5352 _ACEOF
5353
5354     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5358 _ACEOF
5359
5360     fi
5361   fi
5362 done
5363
5364 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5365 # target feature def files.
5366 LLVM_ENUM_TARGETS=""
5367 LLVM_ENUM_ASM_PRINTERS=""
5368 LLVM_ENUM_ASM_PARSERS=""
5369 LLVM_ENUM_DISASSEMBLERS=""
5370 for target_to_build in $TARGETS_TO_BUILD; do
5371   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5372   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5373     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5374   fi
5375   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5376     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5377   fi
5378   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5379     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5380   fi
5381 done
5382
5383
5384
5385
5386
5387 # Check whether --enable-cbe-printf-a was given.
5388 if test "${enable_cbe_printf_a+set}" = set; then
5389   enableval=$enable_cbe_printf_a;
5390 else
5391   enableval=default
5392 fi
5393
5394 case "$enableval" in
5395   yes) ENABLE_CBE_PRINTF_A=1
5396  ;;
5397   no)  ENABLE_CBE_PRINTF_A=0
5398  ;;
5399   default)  ENABLE_CBE_PRINTF_A=1
5400  ;;
5401   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5402 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5403    { (exit 1); exit 1; }; } ;;
5404 esac
5405
5406 cat >>confdefs.h <<_ACEOF
5407 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5408 _ACEOF
5409
5410
5411
5412 # Check whether --with-optimize-option was given.
5413 if test "${with_optimize_option+set}" = set; then
5414   withval=$with_optimize_option;
5415 else
5416   withval=default
5417 fi
5418
5419 { echo "$as_me:$LINENO: checking optimization flags" >&5
5420 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5421 case "$withval" in
5422   default)
5423     case "$llvm_cv_os_type" in
5424     FreeBSD) optimize_option=-O2 ;;
5425     MingW) optimize_option=-O2 ;;
5426     *)     optimize_option=-O3 ;;
5427     esac ;;
5428   *) optimize_option="$withval" ;;
5429 esac
5430 OPTIMIZE_OPTION=$optimize_option
5431
5432 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5433 echo "${ECHO_T}$optimize_option" >&6; }
5434
5435
5436 # Check whether --with-extra-options was given.
5437 if test "${with_extra_options+set}" = set; then
5438   withval=$with_extra_options;
5439 else
5440   withval=default
5441 fi
5442
5443 case "$withval" in
5444   default) EXTRA_OPTIONS= ;;
5445   *) EXTRA_OPTIONS=$withval ;;
5446 esac
5447 EXTRA_OPTIONS=$EXTRA_OPTIONS
5448
5449
5450
5451 # Check whether --with-extra-ld-options was given.
5452 if test "${with_extra_ld_options+set}" = set; then
5453   withval=$with_extra_ld_options;
5454 else
5455   withval=default
5456 fi
5457
5458 case "$withval" in
5459   default) EXTRA_LD_OPTIONS= ;;
5460   *) EXTRA_LD_OPTIONS=$withval ;;
5461 esac
5462 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5463
5464
5465 # Check whether --enable-bindings was given.
5466 if test "${enable_bindings+set}" = set; then
5467   enableval=$enable_bindings;
5468 else
5469   enableval=default
5470 fi
5471
5472 BINDINGS_TO_BUILD=""
5473 case "$enableval" in
5474   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5475   all ) BINDINGS_TO_BUILD="ocaml" ;;
5476   none | no) BINDINGS_TO_BUILD="" ;;
5477   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5478       case "$a_binding" in
5479         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5480         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5481 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5482    { (exit 1); exit 1; }; } ;;
5483       esac
5484   done
5485   ;;
5486 esac
5487
5488
5489 # Check whether --with-ocaml-libdir was given.
5490 if test "${with_ocaml_libdir+set}" = set; then
5491   withval=$with_ocaml_libdir;
5492 else
5493   withval=auto
5494 fi
5495
5496 case "$withval" in
5497   auto) with_ocaml_libdir="$withval" ;;
5498   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5499   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5500 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5501    { (exit 1); exit 1; }; } ;;
5502 esac
5503
5504
5505 # Check whether --with-clang-srcdir was given.
5506 if test "${with_clang_srcdir+set}" = set; then
5507   withval=$with_clang_srcdir;
5508 else
5509   withval="-"
5510 fi
5511
5512 case "$withval" in
5513   -) clang_src_root="" ;;
5514   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5515   *) clang_src_root="$ac_pwd/$withval" ;;
5516 esac
5517 CLANG_SRC_ROOT=$clang_src_root
5518
5519
5520
5521 # Check whether --with-clang-resource-dir was given.
5522 if test "${with_clang_resource_dir+set}" = set; then
5523   withval=$with_clang_resource_dir;
5524 else
5525   withval=""
5526 fi
5527
5528
5529 cat >>confdefs.h <<_ACEOF
5530 #define CLANG_RESOURCE_DIR "$withval"
5531 _ACEOF
5532
5533
5534
5535 # Check whether --with-c-include-dirs was given.
5536 if test "${with_c_include_dirs+set}" = set; then
5537   withval=$with_c_include_dirs;
5538 else
5539   withval=""
5540 fi
5541
5542
5543 cat >>confdefs.h <<_ACEOF
5544 #define C_INCLUDE_DIRS "$withval"
5545 _ACEOF
5546
5547
5548
5549 # Check whether --with-cxx-include-root was given.
5550 if test "${with_cxx_include_root+set}" = set; then
5551   withval=$with_cxx_include_root;
5552 else
5553   withval=""
5554 fi
5555
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define CXX_INCLUDE_ROOT "$withval"
5559 _ACEOF
5560
5561
5562
5563 # Check whether --with-cxx-include-arch was given.
5564 if test "${with_cxx_include_arch+set}" = set; then
5565   withval=$with_cxx_include_arch;
5566 else
5567   withval=""
5568 fi
5569
5570
5571 cat >>confdefs.h <<_ACEOF
5572 #define CXX_INCLUDE_ARCH "$withval"
5573 _ACEOF
5574
5575
5576
5577 # Check whether --with-cxx-include-32bit-dir was given.
5578 if test "${with_cxx_include_32bit_dir+set}" = set; then
5579   withval=$with_cxx_include_32bit_dir;
5580 else
5581   withval=""
5582 fi
5583
5584
5585 cat >>confdefs.h <<_ACEOF
5586 #define CXX_INCLUDE_32BIT_DIR "$withval"
5587 _ACEOF
5588
5589
5590
5591 # Check whether --with-cxx-include-64bit-dir was given.
5592 if test "${with_cxx_include_64bit_dir+set}" = set; then
5593   withval=$with_cxx_include_64bit_dir;
5594 else
5595   withval=""
5596 fi
5597
5598
5599 cat >>confdefs.h <<_ACEOF
5600 #define CXX_INCLUDE_64BIT_DIR "$withval"
5601 _ACEOF
5602
5603
5604
5605 # Check whether --with-binutils-include was given.
5606 if test "${with_binutils_include+set}" = set; then
5607   withval=$with_binutils_include;
5608 else
5609   withval=default
5610 fi
5611
5612 case "$withval" in
5613   default) WITH_BINUTILS_INCDIR=default ;;
5614   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5615   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5616 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5617    { (exit 1); exit 1; }; } ;;
5618 esac
5619 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5620   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5621
5622   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5623      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5624      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5625 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5626    { (exit 1); exit 1; }; };
5627   fi
5628 fi
5629
5630
5631 # Check whether --with-bug-report-url was given.
5632 if test "${with_bug_report_url+set}" = set; then
5633   withval=$with_bug_report_url;
5634 else
5635   withval="http://llvm.org/bugs/"
5636 fi
5637
5638
5639 cat >>confdefs.h <<_ACEOF
5640 #define BUG_REPORT_URL "$withval"
5641 _ACEOF
5642
5643
5644 # Check whether --enable-libffi was given.
5645 if test "${enable_libffi+set}" = set; then
5646   enableval=$enable_libffi; case "$enableval" in
5647     yes) llvm_cv_enable_libffi="yes" ;;
5648     no)  llvm_cv_enable_libffi="no"  ;;
5649     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652   esac
5653 else
5654   llvm_cv_enable_libffi=no
5655 fi
5656
5657
5658
5659 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661 if test "${lt_cv_path_NM+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   if test -n "$NM"; then
5665   # Let the user override the test.
5666   lt_cv_path_NM="$NM"
5667 else
5668   lt_nm_to_check="${ac_tool_prefix}nm"
5669   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670     lt_nm_to_check="$lt_nm_to_check nm"
5671   fi
5672   for lt_tmp_nm in $lt_nm_to_check; do
5673     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5675       IFS="$lt_save_ifs"
5676       test -z "$ac_dir" && ac_dir=.
5677       tmp_nm="$ac_dir/$lt_tmp_nm"
5678       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679         # Check to see if the nm accepts a BSD-compat flag.
5680         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681         #   nm: unknown option "B" ignored
5682         # Tru64's nm complains that /dev/null is an invalid object file
5683         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684         */dev/null* | *'Invalid file or object type'*)
5685           lt_cv_path_NM="$tmp_nm -B"
5686           break
5687           ;;
5688         *)
5689           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690           */dev/null*)
5691             lt_cv_path_NM="$tmp_nm -p"
5692             break
5693             ;;
5694           *)
5695             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696             continue # so that we can try to find one that supports BSD flags
5697             ;;
5698           esac
5699           ;;
5700         esac
5701       fi
5702     done
5703     IFS="$lt_save_ifs"
5704   done
5705   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5706 fi
5707 fi
5708 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5710 NM="$lt_cv_path_NM"
5711
5712
5713
5714 { echo "$as_me:$LINENO: checking for GNU make" >&5
5715 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716 if test "${llvm_cv_gnu_make_command+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   llvm_cv_gnu_make_command=''
5720  for a in "$MAKE" make gmake gnumake ; do
5721   if test -z "$a" ; then continue ; fi ;
5722   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5723   then
5724    llvm_cv_gnu_make_command=$a ;
5725    break;
5726   fi
5727  done
5728 fi
5729 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5731  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5732    ifGNUmake='' ;
5733  else
5734    ifGNUmake='#' ;
5735    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736 echo "${ECHO_T}\"Not found\"" >&6; };
5737  fi
5738
5739
5740 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5742 LN_S=$as_ln_s
5743 if test "$LN_S" = "ln -s"; then
5744   { echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748 echo "${ECHO_T}no, using $LN_S" >&6; }
5749 fi
5750
5751 # Extract the first word of "cmp", so it can be a program name with args.
5752 set dummy cmp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CMP+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   case $CMP in
5759   [\\/]* | ?:[\\/]*)
5760   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5761   ;;
5762   *)
5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5779   ;;
5780 esac
5781 fi
5782 CMP=$ac_cv_path_CMP
5783 if test -n "$CMP"; then
5784   { echo "$as_me:$LINENO: result: $CMP" >&5
5785 echo "${ECHO_T}$CMP" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790
5791
5792 # Extract the first word of "cp", so it can be a program name with args.
5793 set dummy cp; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_CP+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   case $CP in
5800   [\\/]* | ?:[\\/]*)
5801   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5802   ;;
5803   *)
5804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5820   ;;
5821 esac
5822 fi
5823 CP=$ac_cv_path_CP
5824 if test -n "$CP"; then
5825   { echo "$as_me:$LINENO: result: $CP" >&5
5826 echo "${ECHO_T}$CP" >&6; }
5827 else
5828   { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5830 fi
5831
5832
5833 # Extract the first word of "date", so it can be a program name with args.
5834 set dummy date; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_DATE+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   case $DATE in
5841   [\\/]* | ?:[\\/]*)
5842   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5843   ;;
5844   *)
5845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5861   ;;
5862 esac
5863 fi
5864 DATE=$ac_cv_path_DATE
5865 if test -n "$DATE"; then
5866   { echo "$as_me:$LINENO: result: $DATE" >&5
5867 echo "${ECHO_T}$DATE" >&6; }
5868 else
5869   { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5871 fi
5872
5873
5874 # Extract the first word of "find", so it can be a program name with args.
5875 set dummy find; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_FIND+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   case $FIND in
5882   [\\/]* | ?:[\\/]*)
5883   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5884   ;;
5885   *)
5886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5902   ;;
5903 esac
5904 fi
5905 FIND=$ac_cv_path_FIND
5906 if test -n "$FIND"; then
5907   { echo "$as_me:$LINENO: result: $FIND" >&5
5908 echo "${ECHO_T}$FIND" >&6; }
5909 else
5910   { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5913
5914
5915 # Extract the first word of "grep", so it can be a program name with args.
5916 set dummy grep; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_GREP+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   case $GREP in
5923   [\\/]* | ?:[\\/]*)
5924   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5925   ;;
5926   *)
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5943   ;;
5944 esac
5945 fi
5946 GREP=$ac_cv_path_GREP
5947 if test -n "$GREP"; then
5948   { echo "$as_me:$LINENO: result: $GREP" >&5
5949 echo "${ECHO_T}$GREP" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956 # Extract the first word of "mkdir", so it can be a program name with args.
5957 set dummy mkdir; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MKDIR+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   case $MKDIR in
5964   [\\/]* | ?:[\\/]*)
5965   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5966   ;;
5967   *)
5968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5984   ;;
5985 esac
5986 fi
5987 MKDIR=$ac_cv_path_MKDIR
5988 if test -n "$MKDIR"; then
5989   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990 echo "${ECHO_T}$MKDIR" >&6; }
5991 else
5992   { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5994 fi
5995
5996
5997 # Extract the first word of "mv", so it can be a program name with args.
5998 set dummy mv; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_path_MV+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   case $MV in
6005   [\\/]* | ?:[\\/]*)
6006   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6007   ;;
6008   *)
6009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6025   ;;
6026 esac
6027 fi
6028 MV=$ac_cv_path_MV
6029 if test -n "$MV"; then
6030   { echo "$as_me:$LINENO: result: $MV" >&5
6031 echo "${ECHO_T}$MV" >&6; }
6032 else
6033   { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6035 fi
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_RANLIB+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   if test -n "$RANLIB"; then
6047   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 RANLIB=$ac_cv_prog_RANLIB
6067 if test -n "$RANLIB"; then
6068   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069 echo "${ECHO_T}$RANLIB" >&6; }
6070 else
6071   { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_RANLIB"; then
6078   ac_ct_RANLIB=$RANLIB
6079   # Extract the first word of "ranlib", so it can be a program name with args.
6080 set dummy ranlib; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   if test -n "$ac_ct_RANLIB"; then
6087   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094   for ac_exec_ext in '' $ac_executable_extensions; do
6095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096     ac_cv_prog_ac_ct_RANLIB="ranlib"
6097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107 if test -n "$ac_ct_RANLIB"; then
6108   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6110 else
6111   { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6113 fi
6114
6115   if test "x$ac_ct_RANLIB" = x; then
6116     RANLIB=":"
6117   else
6118     case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet.  If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet.  If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128     RANLIB=$ac_ct_RANLIB
6129   fi
6130 else
6131   RANLIB="$ac_cv_prog_RANLIB"
6132 fi
6133
6134 if test -n "$ac_tool_prefix"; then
6135   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ar; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_AR+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   if test -n "$AR"; then
6143   ac_cv_prog_AR="$AR" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150   for ac_exec_ext in '' $ac_executable_extensions; do
6151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152     ac_cv_prog_AR="${ac_tool_prefix}ar"
6153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 AR=$ac_cv_prog_AR
6163 if test -n "$AR"; then
6164   { echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6; }
6166 else
6167   { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6170
6171
6172 fi
6173 if test -z "$ac_cv_prog_AR"; then
6174   ac_ct_AR=$AR
6175   # Extract the first word of "ar", so it can be a program name with args.
6176 set dummy ar; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   if test -n "$ac_ct_AR"; then
6183   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190   for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_prog_ac_ct_AR="ar"
6193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203 if test -n "$ac_ct_AR"; then
6204   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205 echo "${ECHO_T}$ac_ct_AR" >&6; }
6206 else
6207   { echo "$as_me:$LINENO: result: no" >&5
6208 echo "${ECHO_T}no" >&6; }
6209 fi
6210
6211   if test "x$ac_ct_AR" = x; then
6212     AR="false"
6213   else
6214     case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet.  If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet.  If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224     AR=$ac_ct_AR
6225   fi
6226 else
6227   AR="$ac_cv_prog_AR"
6228 fi
6229
6230 # Extract the first word of "rm", so it can be a program name with args.
6231 set dummy rm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_RM+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   case $RM in
6238   [\\/]* | ?:[\\/]*)
6239   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6240   ;;
6241   *)
6242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6258   ;;
6259 esac
6260 fi
6261 RM=$ac_cv_path_RM
6262 if test -n "$RM"; then
6263   { echo "$as_me:$LINENO: result: $RM" >&5
6264 echo "${ECHO_T}$RM" >&6; }
6265 else
6266   { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6268 fi
6269
6270
6271 # Extract the first word of "sed", so it can be a program name with args.
6272 set dummy sed; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_SED+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   case $SED in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6299   ;;
6300 esac
6301 fi
6302 SED=$ac_cv_path_SED
6303 if test -n "$SED"; then
6304   { echo "$as_me:$LINENO: result: $SED" >&5
6305 echo "${ECHO_T}$SED" >&6; }
6306 else
6307   { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 fi
6310
6311
6312 # Extract the first word of "tar", so it can be a program name with args.
6313 set dummy tar; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_TAR+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   case $TAR in
6320   [\\/]* | ?:[\\/]*)
6321   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6322   ;;
6323   *)
6324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329   for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6340   ;;
6341 esac
6342 fi
6343 TAR=$ac_cv_path_TAR
6344 if test -n "$TAR"; then
6345   { echo "$as_me:$LINENO: result: $TAR" >&5
6346 echo "${ECHO_T}$TAR" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353 # Extract the first word of "pwd", so it can be a program name with args.
6354 set dummy pwd; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_BINPWD+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   case $BINPWD in
6361   [\\/]* | ?:[\\/]*)
6362   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6363   ;;
6364   *)
6365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370   for ac_exec_ext in '' $ac_executable_extensions; do
6371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6381   ;;
6382 esac
6383 fi
6384 BINPWD=$ac_cv_path_BINPWD
6385 if test -n "$BINPWD"; then
6386   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6387 echo "${ECHO_T}$BINPWD" >&6; }
6388 else
6389   { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6391 fi
6392
6393
6394
6395 # Extract the first word of "Graphviz", so it can be a program name with args.
6396 set dummy Graphviz; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   case $GRAPHVIZ in
6403   [\\/]* | ?:[\\/]*)
6404   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6405   ;;
6406   *)
6407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6423   ;;
6424 esac
6425 fi
6426 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6427 if test -n "$GRAPHVIZ"; then
6428   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6429 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6430 else
6431   { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6433 fi
6434
6435
6436 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6437
6438 cat >>confdefs.h <<\_ACEOF
6439 #define HAVE_GRAPHVIZ 1
6440 _ACEOF
6441
6442     if test "$llvm_cv_os_type" = "MingW" ; then
6443     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6444   fi
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6448 _ACEOF
6449
6450 fi
6451 # Extract the first word of "dot", so it can be a program name with args.
6452 set dummy dot; ac_word=$2
6453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455 if test "${ac_cv_path_DOT+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   case $DOT in
6459   [\\/]* | ?:[\\/]*)
6460   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6461   ;;
6462   *)
6463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468   for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6479   ;;
6480 esac
6481 fi
6482 DOT=$ac_cv_path_DOT
6483 if test -n "$DOT"; then
6484   { echo "$as_me:$LINENO: result: $DOT" >&5
6485 echo "${ECHO_T}$DOT" >&6; }
6486 else
6487   { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6489 fi
6490
6491
6492 if test "$DOT" != "echo dot" ; then
6493
6494 cat >>confdefs.h <<\_ACEOF
6495 #define HAVE_DOT 1
6496 _ACEOF
6497
6498     if test "$llvm_cv_os_type" = "MingW" ; then
6499     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6500   fi
6501
6502 cat >>confdefs.h <<_ACEOF
6503 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6504 _ACEOF
6505
6506 fi
6507 # Extract the first word of "fdp", so it can be a program name with args.
6508 set dummy fdp; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_path_FDP+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   case $FDP in
6515   [\\/]* | ?:[\\/]*)
6516   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6517   ;;
6518   *)
6519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524   for ac_exec_ext in '' $ac_executable_extensions; do
6525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6535   ;;
6536 esac
6537 fi
6538 FDP=$ac_cv_path_FDP
6539 if test -n "$FDP"; then
6540   { echo "$as_me:$LINENO: result: $FDP" >&5
6541 echo "${ECHO_T}$FDP" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547
6548 if test "$FDP" != "echo fdp" ; then
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define HAVE_FDP 1
6552 _ACEOF
6553
6554     if test "$llvm_cv_os_type" = "MingW" ; then
6555     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6556   fi
6557
6558 cat >>confdefs.h <<_ACEOF
6559 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6560 _ACEOF
6561
6562 fi
6563 # Extract the first word of "neato", so it can be a program name with args.
6564 set dummy neato; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_NEATO+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   case $NEATO in
6571   [\\/]* | ?:[\\/]*)
6572   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6573   ;;
6574   *)
6575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580   for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6591   ;;
6592 esac
6593 fi
6594 NEATO=$ac_cv_path_NEATO
6595 if test -n "$NEATO"; then
6596   { echo "$as_me:$LINENO: result: $NEATO" >&5
6597 echo "${ECHO_T}$NEATO" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603
6604 if test "$NEATO" != "echo neato" ; then
6605
6606 cat >>confdefs.h <<\_ACEOF
6607 #define HAVE_NEATO 1
6608 _ACEOF
6609
6610     if test "$llvm_cv_os_type" = "MingW" ; then
6611     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6612   fi
6613
6614 cat >>confdefs.h <<_ACEOF
6615 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6616 _ACEOF
6617
6618 fi
6619 # Extract the first word of "twopi", so it can be a program name with args.
6620 set dummy twopi; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_TWOPI+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   case $TWOPI in
6627   [\\/]* | ?:[\\/]*)
6628   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6629   ;;
6630   *)
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6647   ;;
6648 esac
6649 fi
6650 TWOPI=$ac_cv_path_TWOPI
6651 if test -n "$TWOPI"; then
6652   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6653 echo "${ECHO_T}$TWOPI" >&6; }
6654 else
6655   { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6657 fi
6658
6659
6660 if test "$TWOPI" != "echo twopi" ; then
6661
6662 cat >>confdefs.h <<\_ACEOF
6663 #define HAVE_TWOPI 1
6664 _ACEOF
6665
6666     if test "$llvm_cv_os_type" = "MingW" ; then
6667     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6668   fi
6669
6670 cat >>confdefs.h <<_ACEOF
6671 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6672 _ACEOF
6673
6674 fi
6675 # Extract the first word of "circo", so it can be a program name with args.
6676 set dummy circo; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_CIRCO+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   case $CIRCO in
6683   [\\/]* | ?:[\\/]*)
6684   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6685   ;;
6686   *)
6687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6703   ;;
6704 esac
6705 fi
6706 CIRCO=$ac_cv_path_CIRCO
6707 if test -n "$CIRCO"; then
6708   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6709 echo "${ECHO_T}$CIRCO" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715
6716 if test "$CIRCO" != "echo circo" ; then
6717
6718 cat >>confdefs.h <<\_ACEOF
6719 #define HAVE_CIRCO 1
6720 _ACEOF
6721
6722     if test "$llvm_cv_os_type" = "MingW" ; then
6723     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6724   fi
6725
6726 cat >>confdefs.h <<_ACEOF
6727 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6728 _ACEOF
6729
6730 fi
6731 for ac_prog in gv gsview32
6732 do
6733   # Extract the first word of "$ac_prog", so it can be a program name with args.
6734 set dummy $ac_prog; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_GV+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   case $GV in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760   ;;
6761 esac
6762 fi
6763 GV=$ac_cv_path_GV
6764 if test -n "$GV"; then
6765   { echo "$as_me:$LINENO: result: $GV" >&5
6766 echo "${ECHO_T}$GV" >&6; }
6767 else
6768   { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6770 fi
6771
6772
6773   test -n "$GV" && break
6774 done
6775 test -n "$GV" || GV="echo gv"
6776
6777 if test "$GV" != "echo gv" ; then
6778
6779 cat >>confdefs.h <<\_ACEOF
6780 #define HAVE_GV 1
6781 _ACEOF
6782
6783     if test "$llvm_cv_os_type" = "MingW" ; then
6784     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6785   fi
6786
6787 cat >>confdefs.h <<_ACEOF
6788 #define LLVM_PATH_GV "$GV${EXEEXT}"
6789 _ACEOF
6790
6791 fi
6792 # Extract the first word of "dotty", so it can be a program name with args.
6793 set dummy dotty; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_DOTTY+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   case $DOTTY in
6800   [\\/]* | ?:[\\/]*)
6801   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6802   ;;
6803   *)
6804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809   for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6820   ;;
6821 esac
6822 fi
6823 DOTTY=$ac_cv_path_DOTTY
6824 if test -n "$DOTTY"; then
6825   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6826 echo "${ECHO_T}$DOTTY" >&6; }
6827 else
6828   { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 fi
6831
6832
6833 if test "$DOTTY" != "echo dotty" ; then
6834
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_DOTTY 1
6837 _ACEOF
6838
6839     if test "$llvm_cv_os_type" = "MingW" ; then
6840     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6841   fi
6842
6843 cat >>confdefs.h <<_ACEOF
6844 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6845 _ACEOF
6846
6847 fi
6848 # Extract the first word of "xdot.py", so it can be a program name with args.
6849 set dummy xdot.py; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   case $XDOT_PY in
6856   [\\/]* | ?:[\\/]*)
6857   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6858   ;;
6859   *)
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6876   ;;
6877 esac
6878 fi
6879 XDOT_PY=$ac_cv_path_XDOT_PY
6880 if test -n "$XDOT_PY"; then
6881   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6882 echo "${ECHO_T}$XDOT_PY" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 if test "$XDOT_PY" != "echo xdot.py" ; then
6890
6891 cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_XDOT_PY 1
6893 _ACEOF
6894
6895     if test "$llvm_cv_os_type" = "MingW" ; then
6896     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6897   fi
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6901 _ACEOF
6902
6903 fi
6904
6905
6906 # Extract the first word of "perl", so it can be a program name with args.
6907 set dummy perl; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_PERL+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   case $PERL in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923   for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6934   ;;
6935 esac
6936 fi
6937 PERL=$ac_cv_path_PERL
6938 if test -n "$PERL"; then
6939   { echo "$as_me:$LINENO: result: $PERL" >&5
6940 echo "${ECHO_T}$PERL" >&6; }
6941 else
6942   { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946
6947 if test "$PERL" != "none"; then
6948   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6949 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6950   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6951     { echo "$as_me:$LINENO: result: yes" >&5
6952 echo "${ECHO_T}yes" >&6; }
6953   else
6954     PERL=none
6955     { echo "$as_me:$LINENO: result: not found" >&5
6956 echo "${ECHO_T}not found" >&6; }
6957   fi
6958 fi
6959
6960
6961 if test x"$PERL" = xnone; then
6962    HAVE_PERL=0
6963
6964    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6965 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6966    { (exit 1); exit 1; }; }
6967 else
6968    HAVE_PERL=1
6969
6970 fi
6971
6972 # Find a good install program.  We prefer a C program (faster),
6973 # so one script is as good as another.  But avoid the broken or
6974 # incompatible versions:
6975 # SysV /etc/install, /usr/sbin/install
6976 # SunOS /usr/etc/install
6977 # IRIX /sbin/install
6978 # AIX /bin/install
6979 # AmigaOS /C/install, which installs bootblocks on floppy discs
6980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6983 # OS/2's system install, which has a completely different semantic
6984 # ./install, which can be erroneously created by make from ./install.sh.
6985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6987 if test -z "$INSTALL"; then
6988 if test "${ac_cv_path_install+set}" = set; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   test -z "$as_dir" && as_dir=.
6996   # Account for people who put trailing slashes in PATH elements.
6997 case $as_dir/ in
6998   ./ | .// | /cC/* | \
6999   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7000   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7001   /usr/ucb/* ) ;;
7002   *)
7003     # OSF1 and SCO ODT 3.0 have their own names for install.
7004     # Don't use installbsd from OSF since it installs stuff as root
7005     # by default.
7006     for ac_prog in ginstall scoinst install; do
7007       for ac_exec_ext in '' $ac_executable_extensions; do
7008         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7009           if test $ac_prog = install &&
7010             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7011             # AIX install.  It has an incompatible calling convention.
7012             :
7013           elif test $ac_prog = install &&
7014             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015             # program-specific install script used by HP pwplus--don't use.
7016             :
7017           else
7018             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7019             break 3
7020           fi
7021         fi
7022       done
7023     done
7024     ;;
7025 esac
7026 done
7027 IFS=$as_save_IFS
7028
7029
7030 fi
7031   if test "${ac_cv_path_install+set}" = set; then
7032     INSTALL=$ac_cv_path_install
7033   else
7034     # As a last resort, use the slow shell script.  Don't cache a
7035     # value for INSTALL within a source directory, because that will
7036     # break other packages using the cache if that directory is
7037     # removed, or if the value is a relative name.
7038     INSTALL=$ac_install_sh
7039   fi
7040 fi
7041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7042 echo "${ECHO_T}$INSTALL" >&6; }
7043
7044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7045 # It thinks the first close brace ends the variable substitution.
7046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7047
7048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7049
7050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7051
7052 case "$INSTALL" in
7053  [\\/$]* | ?:[\\/]* ) ;;
7054  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7055 esac
7056
7057 # Extract the first word of "bzip2", so it can be a program name with args.
7058 set dummy bzip2; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_BZIP2+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   case $BZIP2 in
7065   [\\/]* | ?:[\\/]*)
7066   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7067   ;;
7068   *)
7069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074   for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084   ;;
7085 esac
7086 fi
7087 BZIP2=$ac_cv_path_BZIP2
7088 if test -n "$BZIP2"; then
7089   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7090 echo "${ECHO_T}$BZIP2" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096
7097 # Extract the first word of "cat", so it can be a program name with args.
7098 set dummy cat; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_CAT+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   case $CAT in
7105   [\\/]* | ?:[\\/]*)
7106   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7107   ;;
7108   *)
7109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114   for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124   ;;
7125 esac
7126 fi
7127 CAT=$ac_cv_path_CAT
7128 if test -n "$CAT"; then
7129   { echo "$as_me:$LINENO: result: $CAT" >&5
7130 echo "${ECHO_T}$CAT" >&6; }
7131 else
7132   { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7134 fi
7135
7136
7137 # Extract the first word of "doxygen", so it can be a program name with args.
7138 set dummy doxygen; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   case $DOXYGEN in
7145   [\\/]* | ?:[\\/]*)
7146   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7147   ;;
7148   *)
7149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152   IFS=$as_save_IFS
7153   test -z "$as_dir" && as_dir=.
7154   for ac_exec_ext in '' $ac_executable_extensions; do
7155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164   ;;
7165 esac
7166 fi
7167 DOXYGEN=$ac_cv_path_DOXYGEN
7168 if test -n "$DOXYGEN"; then
7169   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7170 echo "${ECHO_T}$DOXYGEN" >&6; }
7171 else
7172   { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7174 fi
7175
7176
7177 # Extract the first word of "groff", so it can be a program name with args.
7178 set dummy groff; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_GROFF+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   case $GROFF in
7185   [\\/]* | ?:[\\/]*)
7186   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7187   ;;
7188   *)
7189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192   IFS=$as_save_IFS
7193   test -z "$as_dir" && as_dir=.
7194   for ac_exec_ext in '' $ac_executable_extensions; do
7195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198     break 2
7199   fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204   ;;
7205 esac
7206 fi
7207 GROFF=$ac_cv_path_GROFF
7208 if test -n "$GROFF"; then
7209   { echo "$as_me:$LINENO: result: $GROFF" >&5
7210 echo "${ECHO_T}$GROFF" >&6; }
7211 else
7212   { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7214 fi
7215
7216
7217 # Extract the first word of "gzip", so it can be a program name with args.
7218 set dummy gzip; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   case $GZIPBIN in
7225   [\\/]* | ?:[\\/]*)
7226   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7227   ;;
7228   *)
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234   for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244   ;;
7245 esac
7246 fi
7247 GZIPBIN=$ac_cv_path_GZIPBIN
7248 if test -n "$GZIPBIN"; then
7249   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7250 echo "${ECHO_T}$GZIPBIN" >&6; }
7251 else
7252   { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7254 fi
7255
7256
7257 # Extract the first word of "pod2html", so it can be a program name with args.
7258 set dummy pod2html; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_POD2HTML+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   case $POD2HTML in
7265   [\\/]* | ?:[\\/]*)
7266   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7267   ;;
7268   *)
7269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274   for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284   ;;
7285 esac
7286 fi
7287 POD2HTML=$ac_cv_path_POD2HTML
7288 if test -n "$POD2HTML"; then
7289   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7290 echo "${ECHO_T}$POD2HTML" >&6; }
7291 else
7292   { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7294 fi
7295
7296
7297 # Extract the first word of "pod2man", so it can be a program name with args.
7298 set dummy pod2man; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_POD2MAN+set}" = set; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   case $POD2MAN in
7305   [\\/]* | ?:[\\/]*)
7306   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7307   ;;
7308   *)
7309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314   for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324   ;;
7325 esac
7326 fi
7327 POD2MAN=$ac_cv_path_POD2MAN
7328 if test -n "$POD2MAN"; then
7329   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7330 echo "${ECHO_T}$POD2MAN" >&6; }
7331 else
7332   { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7334 fi
7335
7336
7337 # Extract the first word of "pdfroff", so it can be a program name with args.
7338 set dummy pdfroff; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_path_PDFROFF+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344   case $PDFROFF in
7345   [\\/]* | ?:[\\/]*)
7346   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7347   ;;
7348   *)
7349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352   IFS=$as_save_IFS
7353   test -z "$as_dir" && as_dir=.
7354   for ac_exec_ext in '' $ac_executable_extensions; do
7355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358     break 2
7359   fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364   ;;
7365 esac
7366 fi
7367 PDFROFF=$ac_cv_path_PDFROFF
7368 if test -n "$PDFROFF"; then
7369   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7370 echo "${ECHO_T}$PDFROFF" >&6; }
7371 else
7372   { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7374 fi
7375
7376
7377 # Extract the first word of "runtest", so it can be a program name with args.
7378 set dummy runtest; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_RUNTEST+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   case $RUNTEST in
7385   [\\/]* | ?:[\\/]*)
7386   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7387   ;;
7388   *)
7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404   ;;
7405 esac
7406 fi
7407 RUNTEST=$ac_cv_path_RUNTEST
7408 if test -n "$RUNTEST"; then
7409   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7410 echo "${ECHO_T}$RUNTEST" >&6; }
7411 else
7412   { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7415
7416
7417
7418 no_itcl=true
7419 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7420 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7421
7422 # Check whether --with-tclinclude was given.
7423 if test "${with_tclinclude+set}" = set; then
7424   withval=$with_tclinclude; with_tclinclude=${withval}
7425 else
7426   with_tclinclude=''
7427 fi
7428
7429 if test "${ac_cv_path_tclsh+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432
7433 if test x"${with_tclinclude}" != x ; then
7434   if test -f ${with_tclinclude}/tclsh ; then
7435     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7436   elif test -f ${with_tclinclude}/src/tclsh ; then
7437     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7438   else
7439     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7440 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7441    { (exit 1); exit 1; }; }
7442   fi
7443 fi
7444 fi
7445
7446
7447 if test x"${ac_cv_path_tclsh}" = x ; then
7448   { echo "$as_me:$LINENO: result: none" >&5
7449 echo "${ECHO_T}none" >&6; }
7450   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
7451 do
7452   # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy $ac_prog; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_TCLSH+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   case $TCLSH in
7460   [\\/]* | ?:[\\/]*)
7461   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7462   ;;
7463   *)
7464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469   for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7478
7479   ;;
7480 esac
7481 fi
7482 TCLSH=$ac_cv_path_TCLSH
7483 if test -n "$TCLSH"; then
7484   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7485 echo "${ECHO_T}$TCLSH" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491
7492   test -n "$TCLSH" && break
7493 done
7494
7495   if test x"${TCLSH}" = x ; then
7496     ac_cv_path_tclsh='';
7497   else
7498     ac_cv_path_tclsh="${TCLSH}";
7499   fi
7500 else
7501   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7502 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7503   TCLSH="${ac_cv_path_tclsh}"
7504
7505 fi
7506
7507 # Extract the first word of "zip", so it can be a program name with args.
7508 set dummy zip; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_path_ZIP+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   case $ZIP in
7515   [\\/]* | ?:[\\/]*)
7516   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7517   ;;
7518   *)
7519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534   ;;
7535 esac
7536 fi
7537 ZIP=$ac_cv_path_ZIP
7538 if test -n "$ZIP"; then
7539   { echo "$as_me:$LINENO: result: $ZIP" >&5
7540 echo "${ECHO_T}$ZIP" >&6; }
7541 else
7542   { echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6; }
7544 fi
7545
7546
7547 for ac_prog in ocamlc
7548 do
7549   # Extract the first word of "$ac_prog", so it can be a program name with args.
7550 set dummy $ac_prog; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_path_OCAMLC+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   case $OCAMLC in
7557   [\\/]* | ?:[\\/]*)
7558   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7559   ;;
7560   *)
7561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566   for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576   ;;
7577 esac
7578 fi
7579 OCAMLC=$ac_cv_path_OCAMLC
7580 if test -n "$OCAMLC"; then
7581   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7582 echo "${ECHO_T}$OCAMLC" >&6; }
7583 else
7584   { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7586 fi
7587
7588
7589   test -n "$OCAMLC" && break
7590 done
7591
7592 for ac_prog in ocamlopt
7593 do
7594   # Extract the first word of "$ac_prog", so it can be a program name with args.
7595 set dummy $ac_prog; ac_word=$2
7596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601   case $OCAMLOPT in
7602   [\\/]* | ?:[\\/]*)
7603   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7604   ;;
7605   *)
7606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611   for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621   ;;
7622 esac
7623 fi
7624 OCAMLOPT=$ac_cv_path_OCAMLOPT
7625 if test -n "$OCAMLOPT"; then
7626   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7627 echo "${ECHO_T}$OCAMLOPT" >&6; }
7628 else
7629   { echo "$as_me:$LINENO: result: no" >&5
7630 echo "${ECHO_T}no" >&6; }
7631 fi
7632
7633
7634   test -n "$OCAMLOPT" && break
7635 done
7636
7637 for ac_prog in ocamldep
7638 do
7639   # Extract the first word of "$ac_prog", so it can be a program name with args.
7640 set dummy $ac_prog; ac_word=$2
7641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   case $OCAMLDEP in
7647   [\\/]* | ?:[\\/]*)
7648   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7649   ;;
7650   *)
7651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656   for ac_exec_ext in '' $ac_executable_extensions; do
7657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7658     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666   ;;
7667 esac
7668 fi
7669 OCAMLDEP=$ac_cv_path_OCAMLDEP
7670 if test -n "$OCAMLDEP"; then
7671   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7672 echo "${ECHO_T}$OCAMLDEP" >&6; }
7673 else
7674   { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7676 fi
7677
7678
7679   test -n "$OCAMLDEP" && break
7680 done
7681
7682 for ac_prog in ocamldoc
7683 do
7684   # Extract the first word of "$ac_prog", so it can be a program name with args.
7685 set dummy $ac_prog; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   case $OCAMLDOC in
7692   [\\/]* | ?:[\\/]*)
7693   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7694   ;;
7695   *)
7696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699   IFS=$as_save_IFS
7700   test -z "$as_dir" && as_dir=.
7701   for ac_exec_ext in '' $ac_executable_extensions; do
7702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7703     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705     break 2
7706   fi
7707 done
7708 done
7709 IFS=$as_save_IFS
7710
7711   ;;
7712 esac
7713 fi
7714 OCAMLDOC=$ac_cv_path_OCAMLDOC
7715 if test -n "$OCAMLDOC"; then
7716   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7717 echo "${ECHO_T}$OCAMLDOC" >&6; }
7718 else
7719   { echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6; }
7721 fi
7722
7723
7724   test -n "$OCAMLDOC" && break
7725 done
7726
7727 for ac_prog in gas as
7728 do
7729   # Extract the first word of "$ac_prog", so it can be a program name with args.
7730 set dummy $ac_prog; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_path_GAS+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   case $GAS in
7737   [\\/]* | ?:[\\/]*)
7738   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7739   ;;
7740   *)
7741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744   IFS=$as_save_IFS
7745   test -z "$as_dir" && as_dir=.
7746   for ac_exec_ext in '' $ac_executable_extensions; do
7747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7748     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750     break 2
7751   fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756   ;;
7757 esac
7758 fi
7759 GAS=$ac_cv_path_GAS
7760 if test -n "$GAS"; then
7761   { echo "$as_me:$LINENO: result: $GAS" >&5
7762 echo "${ECHO_T}$GAS" >&6; }
7763 else
7764   { echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6; }
7766 fi
7767
7768
7769   test -n "$GAS" && break
7770 done
7771
7772
7773 { echo "$as_me:$LINENO: checking for linker version" >&5
7774 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7775 if test "${llvm_cv_link_version+set}" = set; then
7776   echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778
7779    version_string="$(ld -v 2>&1 | head -1)"
7780
7781    # Check for ld64.
7782    if (echo "$version_string" | grep -q "ld64"); then
7783      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7784    else
7785      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7786    fi
7787
7788 fi
7789 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7790 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7791
7792 cat >>confdefs.h <<_ACEOF
7793 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7794 _ACEOF
7795
7796
7797
7798 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7799 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7800 if test "${llvm_cv_link_use_r+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803    ac_ext=c
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809   oldcflags="$CFLAGS"
7810   CFLAGS="$CFLAGS -Wl,-R."
7811   cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817
7818 int
7819 main ()
7820 {
7821
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7828 case "(($ac_try" in
7829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830   *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833   (eval "$ac_link") 2>conftest.er1
7834   ac_status=$?
7835   grep -v '^ *+' conftest.er1 >conftest.err
7836   rm -f conftest.er1
7837   cat conftest.err >&5
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7841   { (case "(($ac_try" in
7842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843   *) ac_try_echo=$ac_try;;
7844 esac
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846   (eval "$ac_try") 2>&5
7847   ac_status=$?
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); }; } &&
7850          { ac_try='test -s conftest$ac_exeext'
7851   { (case "(($ac_try" in
7852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853   *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856   (eval "$ac_try") 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   llvm_cv_link_use_r=yes
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865         llvm_cv_link_use_r=no
7866 fi
7867
7868 rm -f core conftest.err conftest.$ac_objext \
7869       conftest$ac_exeext conftest.$ac_ext
7870   CFLAGS="$oldcflags"
7871   ac_ext=c
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877
7878 fi
7879 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7880 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7881 if test "$llvm_cv_link_use_r" = yes ; then
7882
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_LINK_R 1
7885 _ACEOF
7886
7887   fi
7888
7889
7890 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7891 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7892 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895    ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901   oldcflags="$CFLAGS"
7902   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7903   cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909
7910 int
7911 main ()
7912 {
7913
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (ac_try="$ac_link"
7920 case "(($ac_try" in
7921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922   *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925   (eval "$ac_link") 2>conftest.er1
7926   ac_status=$?
7927   grep -v '^ *+' conftest.er1 >conftest.err
7928   rm -f conftest.er1
7929   cat conftest.err >&5
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); } &&
7932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7933   { (case "(($ac_try" in
7934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935   *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938   (eval "$ac_try") 2>&5
7939   ac_status=$?
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); }; } &&
7942          { ac_try='test -s conftest$ac_exeext'
7943   { (case "(($ac_try" in
7944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945   *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948   (eval "$ac_try") 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; }; then
7952   llvm_cv_link_use_export_dynamic=yes
7953 else
7954   echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957         llvm_cv_link_use_export_dynamic=no
7958 fi
7959
7960 rm -f core conftest.err conftest.$ac_objext \
7961       conftest$ac_exeext conftest.$ac_ext
7962   CFLAGS="$oldcflags"
7963   ac_ext=c
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7968
7969
7970 fi
7971 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7972 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7973 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7974
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_LINK_EXPORT_DYNAMIC 1
7977 _ACEOF
7978
7979   fi
7980
7981
7982 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7983 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7984 if test "${llvm_cv_link_use_version_script+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987    ac_ext=c
7988 ac_cpp='$CPP $CPPFLAGS'
7989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992
7993   oldcflags="$CFLAGS"
7994
7995   # The following code is from the autoconf manual,
7996   # "11.13: Limitations of Usual Tools".
7997   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7998   # Use mktemp if possible; otherwise fall back on mkdir,
7999   # with $RANDOM to make collisions less likely.
8000   : ${TMPDIR=/tmp}
8001   {
8002     tmp=`
8003       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8004     ` &&
8005     test -n "$tmp" && test -d "$tmp"
8006   } || {
8007     tmp=$TMPDIR/foo$$-$RANDOM
8008     (umask 077 && mkdir "$tmp")
8009   } || exit $?
8010
8011   echo "{" > "$tmp/export.map"
8012   echo "  global: main;" >> "$tmp/export.map"
8013   echo "  local: *;" >> "$tmp/export.map"
8014   echo "};" >> "$tmp/export.map"
8015
8016   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8017   cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023
8024 int
8025 main ()
8026 {
8027
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (ac_try="$ac_link"
8034 case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039   (eval "$ac_link") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } &&
8046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047   { (case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052   (eval "$ac_try") 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest$ac_exeext'
8057   { (case "(($ac_try" in
8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059   *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062   (eval "$ac_try") 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   llvm_cv_link_use_version_script=yes
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071         llvm_cv_link_use_version_script=no
8072 fi
8073
8074 rm -f core conftest.err conftest.$ac_objext \
8075       conftest$ac_exeext conftest.$ac_ext
8076   rm "$tmp/export.map"
8077   rmdir "$tmp"
8078   CFLAGS="$oldcflags"
8079   ac_ext=c
8080 ac_cpp='$CPP $CPPFLAGS'
8081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8084
8085
8086 fi
8087 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8088 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8089 if test "$llvm_cv_link_use_version_script" = yes ; then
8090   HAVE_LINK_VERSION_SCRIPT=1
8091
8092   fi
8093
8094
8095
8096
8097 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8098 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8099 if test "${ac_cv_c_const+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108
8109 int
8110 main ()
8111 {
8112 /* FIXME: Include the comments suggested by Paul. */
8113 #ifndef __cplusplus
8114   /* Ultrix mips cc rejects this.  */
8115   typedef int charset[2];
8116   const charset x;
8117   /* SunOS 4.1.1 cc rejects this.  */
8118   char const *const *ccp;
8119   char **p;
8120   /* NEC SVR4.0.2 mips cc rejects this.  */
8121   struct point {int x, y;};
8122   static struct point const zero = {0,0};
8123   /* AIX XL C 1.02.0.0 rejects this.
8124      It does not let you subtract one const X* pointer from another in
8125      an arm of an if-expression whose if-part is not a constant
8126      expression */
8127   const char *g = "string";
8128   ccp = &g + (g ? g-g : 0);
8129   /* HPUX 7.0 cc rejects these. */
8130   ++ccp;
8131   p = (char**) ccp;
8132   ccp = (char const *const *) p;
8133   { /* SCO 3.2v4 cc rejects this.  */
8134     char *t;
8135     char const *s = 0 ? (char *) 0 : (char const *) 0;
8136
8137     *t++ = 0;
8138     if (s) return 0;
8139   }
8140   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8141     int x[] = {25, 17};
8142     const int *foo = &x[0];
8143     ++foo;
8144   }
8145   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8146     typedef const int *iptr;
8147     iptr p = 0;
8148     ++p;
8149   }
8150   { /* AIX XL C 1.02.0.0 rejects this saying
8151        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8152     struct s { int j; const int *ap[3]; };
8153     struct s *b; b->j = 5;
8154   }
8155   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8156     const int foo = 10;
8157     if (!foo) return 0;
8158   }
8159   return !x[0] && !zero.x;
8160 #endif
8161
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (ac_try="$ac_compile"
8168 case "(($ac_try" in
8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170   *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173   (eval "$ac_compile") 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } &&
8180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181   { (case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; } &&
8190          { ac_try='test -s conftest.$ac_objext'
8191   { (case "(($ac_try" in
8192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193   *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196   (eval "$ac_try") 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; }; then
8200   ac_cv_c_const=yes
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205         ac_cv_c_const=no
8206 fi
8207
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 fi
8210 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8211 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8212 if test $ac_cv_c_const = no; then
8213
8214 cat >>confdefs.h <<\_ACEOF
8215 #define const
8216 _ACEOF
8217
8218 fi
8219
8220
8221
8222
8223
8224
8225 ac_header_dirent=no
8226 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8227   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8228 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8229 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h.  */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h.  */
8239 #include <sys/types.h>
8240 #include <$ac_hdr>
8241
8242 int
8243 main ()
8244 {
8245 if ((DIR *) 0)
8246 return 0;
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255   *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258   (eval "$ac_compile") 2>conftest.er1
8259   ac_status=$?
8260   grep -v '^ *+' conftest.er1 >conftest.err
8261   rm -f conftest.er1
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } &&
8265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; } &&
8275          { ac_try='test -s conftest.$ac_objext'
8276   { (case "(($ac_try" in
8277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278   *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281   (eval "$ac_try") 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); }; }; then
8285   eval "$as_ac_Header=yes"
8286 else
8287   echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290         eval "$as_ac_Header=no"
8291 fi
8292
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295 ac_res=`eval echo '${'$as_ac_Header'}'`
8296                { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8299   cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8301 _ACEOF
8302
8303 ac_header_dirent=$ac_hdr; break
8304 fi
8305
8306 done
8307 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8308 if test $ac_header_dirent = dirent.h; then
8309   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8310 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8311 if test "${ac_cv_search_opendir+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   ac_func_search_save_LIBS=$LIBS
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321
8322 /* Override any GCC internal prototype to avoid an error.
8323    Use char because int might match the return type of a GCC
8324    builtin and then its argument prototype would still apply.  */
8325 #ifdef __cplusplus
8326 extern "C"
8327 #endif
8328 char opendir ();
8329 int
8330 main ()
8331 {
8332 return opendir ();
8333   ;
8334   return 0;
8335 }
8336 _ACEOF
8337 for ac_lib in '' dir; do
8338   if test -z "$ac_lib"; then
8339     ac_res="none required"
8340   else
8341     ac_res=-l$ac_lib
8342     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8343   fi
8344   rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (ac_try="$ac_link"
8346 case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351   (eval "$ac_link") 2>conftest.er1
8352   ac_status=$?
8353   grep -v '^ *+' conftest.er1 >conftest.err
8354   rm -f conftest.er1
8355   cat conftest.err >&5
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359   { (case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_try") 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; } &&
8368          { ac_try='test -s conftest$ac_exeext'
8369   { (case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_try") 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_search_opendir=$ac_res
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383
8384 fi
8385
8386 rm -f core conftest.err conftest.$ac_objext \
8387       conftest$ac_exeext
8388   if test "${ac_cv_search_opendir+set}" = set; then
8389   break
8390 fi
8391 done
8392 if test "${ac_cv_search_opendir+set}" = set; then
8393   :
8394 else
8395   ac_cv_search_opendir=no
8396 fi
8397 rm conftest.$ac_ext
8398 LIBS=$ac_func_search_save_LIBS
8399 fi
8400 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8401 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8402 ac_res=$ac_cv_search_opendir
8403 if test "$ac_res" != no; then
8404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8405
8406 fi
8407
8408 else
8409   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8410 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8411 if test "${ac_cv_search_opendir+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   ac_func_search_save_LIBS=$LIBS
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422 /* Override any GCC internal prototype to avoid an error.
8423    Use char because int might match the return type of a GCC
8424    builtin and then its argument prototype would still apply.  */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 char opendir ();
8429 int
8430 main ()
8431 {
8432 return opendir ();
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 for ac_lib in '' x; do
8438   if test -z "$ac_lib"; then
8439     ac_res="none required"
8440   else
8441     ac_res=-l$ac_lib
8442     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8443   fi
8444   rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (ac_try="$ac_link"
8446 case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_link") 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8459   { (case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_try") 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; } &&
8468          { ac_try='test -s conftest$ac_exeext'
8469   { (case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474   (eval "$ac_try") 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; }; then
8478   ac_cv_search_opendir=$ac_res
8479 else
8480   echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8482
8483
8484 fi
8485
8486 rm -f core conftest.err conftest.$ac_objext \
8487       conftest$ac_exeext
8488   if test "${ac_cv_search_opendir+set}" = set; then
8489   break
8490 fi
8491 done
8492 if test "${ac_cv_search_opendir+set}" = set; then
8493   :
8494 else
8495   ac_cv_search_opendir=no
8496 fi
8497 rm conftest.$ac_ext
8498 LIBS=$ac_func_search_save_LIBS
8499 fi
8500 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8501 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8502 ac_res=$ac_cv_search_opendir
8503 if test "$ac_res" != no; then
8504   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8505
8506 fi
8507
8508 fi
8509
8510
8511 for ac_header in dlfcn.h
8512 do
8513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 fi
8520 ac_res=`eval echo '${'$as_ac_Header'}'`
8521                { echo "$as_me:$LINENO: result: $ac_res" >&5
8522 echo "${ECHO_T}$ac_res" >&6; }
8523 else
8524   # Is the header compilable?
8525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533 $ac_includes_default
8534 #include <$ac_header>
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8538 case "(($ac_try" in
8539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540   *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543   (eval "$ac_compile") 2>conftest.er1
8544   ac_status=$?
8545   grep -v '^ *+' conftest.er1 >conftest.err
8546   rm -f conftest.er1
8547   cat conftest.err >&5
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8551   { (case "(($ac_try" in
8552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553   *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556   (eval "$ac_try") 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; } &&
8560          { ac_try='test -s conftest.$ac_objext'
8561   { (case "(($ac_try" in
8562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563   *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566   (eval "$ac_try") 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; }; then
8570   ac_header_compiler=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575         ac_header_compiler=no
8576 fi
8577
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8580 echo "${ECHO_T}$ac_header_compiler" >&6; }
8581
8582 # Is the header present?
8583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591 #include <$ac_header>
8592 _ACEOF
8593 if { (ac_try="$ac_cpp conftest.$ac_ext"
8594 case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } >/dev/null; then
8606   if test -s conftest.err; then
8607     ac_cpp_err=$ac_c_preproc_warn_flag
8608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8609   else
8610     ac_cpp_err=
8611   fi
8612 else
8613   ac_cpp_err=yes
8614 fi
8615 if test -z "$ac_cpp_err"; then
8616   ac_header_preproc=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621   ac_header_preproc=no
8622 fi
8623
8624 rm -f conftest.err conftest.$ac_ext
8625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8626 echo "${ECHO_T}$ac_header_preproc" >&6; }
8627
8628 # So?  What about this header?
8629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8630   yes:no: )
8631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8635     ac_header_preproc=yes
8636     ;;
8637   no:yes:* )
8638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8650     ( cat <<\_ASBOX
8651 ## ----------------------------------- ##
8652 ## Report this to llvmbugs@cs.uiuc.edu ##
8653 ## ----------------------------------- ##
8654 _ASBOX
8655      ) | sed "s/^/$as_me: WARNING:     /" >&2
8656     ;;
8657 esac
8658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   eval "$as_ac_Header=\$ac_header_preproc"
8664 fi
8665 ac_res=`eval echo '${'$as_ac_Header'}'`
8666                { echo "$as_me:$LINENO: result: $ac_res" >&5
8667 echo "${ECHO_T}$ac_res" >&6; }
8668
8669 fi
8670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8671   cat >>confdefs.h <<_ACEOF
8672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8673 _ACEOF
8674
8675 fi
8676
8677 done
8678
8679 # Check whether --enable-ltdl-install was given.
8680 if test "${enable_ltdl_install+set}" = set; then
8681   enableval=$enable_ltdl_install;
8682 fi
8683
8684
8685
8686
8687 if test x"${enable_ltdl_install-no}" != xno; then
8688   INSTALL_LTDL_TRUE=
8689   INSTALL_LTDL_FALSE='#'
8690 else
8691   INSTALL_LTDL_TRUE='#'
8692   INSTALL_LTDL_FALSE=
8693 fi
8694
8695
8696
8697 if test x"${enable_ltdl_convenience-no}" != xno; then
8698   CONVENIENCE_LTDL_TRUE=
8699   CONVENIENCE_LTDL_FALSE='#'
8700 else
8701   CONVENIENCE_LTDL_TRUE='#'
8702   CONVENIENCE_LTDL_FALSE=
8703 fi
8704
8705
8706 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8708 library_names_spec=
8709 libname_spec='lib$name'
8710 soname_spec=
8711 shrext_cmds=".so"
8712 postinstall_cmds=
8713 postuninstall_cmds=
8714 finish_cmds=
8715 finish_eval=
8716 shlibpath_var=
8717 shlibpath_overrides_runpath=unknown
8718 version_type=none
8719 dynamic_linker="$host_os ld.so"
8720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8721 if test "$GCC" = yes; then
8722   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8723   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8724     # if the path contains ";" then we assume it to be the separator
8725     # otherwise default to the standard path separator (i.e. ":") - it is
8726     # assumed that no part of a normal pathname contains ";" but that should
8727     # okay in the real world where ";" in dirpaths is itself problematic.
8728     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8729   else
8730     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8731   fi
8732 else
8733   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8734 fi
8735 need_lib_prefix=unknown
8736 hardcode_into_libs=no
8737
8738 # when you set need_version to no, make sure it does not cause -set_version
8739 # flags to be left without arguments
8740 need_version=unknown
8741
8742 case $host_os in
8743 aix3*)
8744   version_type=linux
8745   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8746   shlibpath_var=LIBPATH
8747
8748   # AIX 3 has no versioning support, so we append a major version to the name.
8749   soname_spec='${libname}${release}${shared_ext}$major'
8750   ;;
8751
8752 aix4* | aix5*)
8753   version_type=linux
8754   need_lib_prefix=no
8755   need_version=no
8756   hardcode_into_libs=yes
8757   if test "$host_cpu" = ia64; then
8758     # AIX 5 supports IA64
8759     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8760     shlibpath_var=LD_LIBRARY_PATH
8761   else
8762     # With GCC up to 2.95.x, collect2 would create an import file
8763     # for dependence libraries.  The import file would start with
8764     # the line `#! .'.  This would cause the generated library to
8765     # depend on `.', always an invalid library.  This was fixed in
8766     # development snapshots of GCC prior to 3.0.
8767     case $host_os in
8768       aix4 | aix4.[01] | aix4.[01].*)
8769       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8770            echo ' yes '
8771            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8772         :
8773       else
8774         can_build_shared=no
8775       fi
8776       ;;
8777     esac
8778     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8779     # soname into executable. Probably we can add versioning support to
8780     # collect2, so additional links can be useful in future.
8781     if test "$aix_use_runtimelinking" = yes; then
8782       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8783       # instead of lib<name>.a to let people know that these are not
8784       # typical AIX shared libraries.
8785       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786     else
8787       # We preserve .a as extension for shared libraries through AIX4.2
8788       # and later when we are not doing run time linking.
8789       library_names_spec='${libname}${release}.a $libname.a'
8790       soname_spec='${libname}${release}${shared_ext}$major'
8791     fi
8792     shlibpath_var=LIBPATH
8793   fi
8794   ;;
8795
8796 amigaos*)
8797   library_names_spec='$libname.ixlibrary $libname.a'
8798   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8799   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'
8800   ;;
8801
8802 beos*)
8803   library_names_spec='${libname}${shared_ext}'
8804   dynamic_linker="$host_os ld.so"
8805   shlibpath_var=LIBRARY_PATH
8806   ;;
8807
8808 bsdi[45]*)
8809   version_type=linux
8810   need_version=no
8811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812   soname_spec='${libname}${release}${shared_ext}$major'
8813   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8814   shlibpath_var=LD_LIBRARY_PATH
8815   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8816   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8817   # the default ld.so.conf also contains /usr/contrib/lib and
8818   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8819   # libtool to hard-code these into programs
8820   ;;
8821
8822 cygwin* | mingw* | pw32*)
8823   version_type=windows
8824   shrext_cmds=".dll"
8825   need_version=no
8826   need_lib_prefix=no
8827
8828   case $GCC,$host_os in
8829   yes,cygwin* | yes,mingw* | yes,pw32*)
8830     library_names_spec='$libname.dll.a'
8831     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8832     postinstall_cmds='base_file=`basename \${file}`~
8833       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8834       dldir=$destdir/`dirname \$dlpath`~
8835       test -d \$dldir || mkdir -p \$dldir~
8836       $install_prog $dir/$dlname \$dldir/$dlname~
8837       chmod a+x \$dldir/$dlname'
8838     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8839       dlpath=$dir/\$dldll~
8840        $rm \$dlpath'
8841     shlibpath_overrides_runpath=yes
8842
8843     case $host_os in
8844     cygwin*)
8845       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8846       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8847       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8848       ;;
8849     mingw*)
8850       # MinGW DLLs use traditional 'lib' prefix
8851       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8853       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8854         # It is most probably a Windows format PATH printed by
8855         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8856         # path with ; separators, and with drive letters. We can handle the
8857         # drive letters (cygwin fileutils understands them), so leave them,
8858         # especially as we might pass files found there to a mingw objdump,
8859         # which wouldn't understand a cygwinified path. Ahh.
8860         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8861       else
8862         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8863       fi
8864       ;;
8865     pw32*)
8866       # pw32 DLLs use 'pw' prefix rather than 'lib'
8867       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8868       ;;
8869     esac
8870     ;;
8871
8872   *)
8873     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8874     ;;
8875   esac
8876   dynamic_linker='Win32 ld.exe'
8877   # FIXME: first we should search . and the directory the executable is in
8878   shlibpath_var=PATH
8879   ;;
8880
8881 darwin* | rhapsody*)
8882   dynamic_linker="$host_os dyld"
8883   version_type=darwin
8884   need_lib_prefix=no
8885   need_version=no
8886   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8887   soname_spec='${libname}${release}${major}$shared_ext'
8888   shlibpath_overrides_runpath=yes
8889   shlibpath_var=DYLD_LIBRARY_PATH
8890   shrext_cmds='.dylib'
8891   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8892   if test "$GCC" = yes; then
8893     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"`
8894   else
8895     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8896   fi
8897   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8898   ;;
8899
8900 dgux*)
8901   version_type=linux
8902   need_lib_prefix=no
8903   need_version=no
8904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8905   soname_spec='${libname}${release}${shared_ext}$major'
8906   shlibpath_var=LD_LIBRARY_PATH
8907   ;;
8908
8909 freebsd1*)
8910   dynamic_linker=no
8911   ;;
8912
8913 kfreebsd*-gnu)
8914   version_type=linux
8915   need_lib_prefix=no
8916   need_version=no
8917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918   soname_spec='${libname}${release}${shared_ext}$major'
8919   shlibpath_var=LD_LIBRARY_PATH
8920   shlibpath_overrides_runpath=no
8921   hardcode_into_libs=yes
8922   dynamic_linker='GNU ld.so'
8923   ;;
8924
8925 freebsd* | dragonfly*)
8926   # DragonFly does not have aout.  When/if they implement a new
8927   # versioning mechanism, adjust this.
8928   if test -x /usr/bin/objformat; then
8929     objformat=`/usr/bin/objformat`
8930   else
8931     case $host_os in
8932     freebsd[123]*) objformat=aout ;;
8933     *) objformat=elf ;;
8934     esac
8935   fi
8936   version_type=freebsd-$objformat
8937   case $version_type in
8938     freebsd-elf*)
8939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8940       need_version=no
8941       need_lib_prefix=no
8942       ;;
8943     freebsd-*)
8944       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8945       need_version=yes
8946       ;;
8947   esac
8948   shlibpath_var=LD_LIBRARY_PATH
8949   case $host_os in
8950   freebsd2*)
8951     shlibpath_overrides_runpath=yes
8952     ;;
8953   freebsd3.[01]* | freebsdelf3.[01]*)
8954     shlibpath_overrides_runpath=yes
8955     hardcode_into_libs=yes
8956     ;;
8957   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8958   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8959     shlibpath_overrides_runpath=no
8960     hardcode_into_libs=yes
8961     ;;
8962   freebsd*) # from 4.6 on
8963     shlibpath_overrides_runpath=yes
8964     hardcode_into_libs=yes
8965     ;;
8966   esac
8967   ;;
8968
8969 gnu*)
8970   version_type=linux
8971   need_lib_prefix=no
8972   need_version=no
8973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8974   soname_spec='${libname}${release}${shared_ext}$major'
8975   shlibpath_var=LD_LIBRARY_PATH
8976   hardcode_into_libs=yes
8977   ;;
8978
8979 hpux9* | hpux10* | hpux11*)
8980   # Give a soname corresponding to the major version so that dld.sl refuses to
8981   # link against other versions.
8982   version_type=sunos
8983   need_lib_prefix=no
8984   need_version=no
8985   case $host_cpu in
8986   ia64*)
8987     shrext_cmds='.so'
8988     hardcode_into_libs=yes
8989     dynamic_linker="$host_os dld.so"
8990     shlibpath_var=LD_LIBRARY_PATH
8991     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993     soname_spec='${libname}${release}${shared_ext}$major'
8994     if test "X$HPUX_IA64_MODE" = X32; then
8995       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8996     else
8997       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8998     fi
8999     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000     ;;
9001    hppa*64*)
9002      shrext_cmds='.sl'
9003      hardcode_into_libs=yes
9004      dynamic_linker="$host_os dld.sl"
9005      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9006      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008      soname_spec='${libname}${release}${shared_ext}$major'
9009      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9010      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011      ;;
9012    *)
9013     shrext_cmds='.sl'
9014     dynamic_linker="$host_os dld.sl"
9015     shlibpath_var=SHLIB_PATH
9016     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018     soname_spec='${libname}${release}${shared_ext}$major'
9019     ;;
9020   esac
9021   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9022   postinstall_cmds='chmod 555 $lib'
9023   ;;
9024
9025 interix3*)
9026   version_type=linux
9027   need_lib_prefix=no
9028   need_version=no
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030   soname_spec='${libname}${release}${shared_ext}$major'
9031   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9032   shlibpath_var=LD_LIBRARY_PATH
9033   shlibpath_overrides_runpath=no
9034   hardcode_into_libs=yes
9035   ;;
9036
9037 irix5* | irix6* | nonstopux*)
9038   case $host_os in
9039     nonstopux*) version_type=nonstopux ;;
9040     *)
9041         if test "$lt_cv_prog_gnu_ld" = yes; then
9042                 version_type=linux
9043         else
9044                 version_type=irix
9045         fi ;;
9046   esac
9047   need_lib_prefix=no
9048   need_version=no
9049   soname_spec='${libname}${release}${shared_ext}$major'
9050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9051   case $host_os in
9052   irix5* | nonstopux*)
9053     libsuff= shlibsuff=
9054     ;;
9055   *)
9056     case $LD in # libtool.m4 will add one of these switches to LD
9057     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9058       libsuff= shlibsuff= libmagic=32-bit;;
9059     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9060       libsuff=32 shlibsuff=N32 libmagic=N32;;
9061     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9062       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9063     *) libsuff= shlibsuff= libmagic=never-match;;
9064     esac
9065     ;;
9066   esac
9067   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9068   shlibpath_overrides_runpath=no
9069   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9070   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9071   hardcode_into_libs=yes
9072   ;;
9073
9074 # No shared lib support for Linux oldld, aout, or coff.
9075 linux*oldld* | linux*aout* | linux*coff*)
9076   dynamic_linker=no
9077   ;;
9078
9079 # This must be Linux ELF.
9080 linux*)
9081   version_type=linux
9082   need_lib_prefix=no
9083   need_version=no
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9087   shlibpath_var=LD_LIBRARY_PATH
9088   shlibpath_overrides_runpath=no
9089   # This implies no fast_install, which is unacceptable.
9090   # Some rework will be needed to allow for fast_install
9091   # before this can be enabled.
9092   hardcode_into_libs=yes
9093
9094   # Append ld.so.conf contents to the search path
9095   if test -f /etc/ld.so.conf; then
9096     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' ' '`
9097     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9098   fi
9099
9100   # We used to test for /lib/ld.so.1 and disable shared libraries on
9101   # powerpc, because MkLinux only supported shared libraries with the
9102   # GNU dynamic linker.  Since this was broken with cross compilers,
9103   # most powerpc-linux boxes support dynamic linking these days and
9104   # people can always --disable-shared, the test was removed, and we
9105   # assume the GNU/Linux dynamic linker is in use.
9106   dynamic_linker='GNU/Linux ld.so'
9107   ;;
9108
9109 knetbsd*-gnu)
9110   version_type=linux
9111   need_lib_prefix=no
9112   need_version=no
9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   shlibpath_overrides_runpath=no
9117   hardcode_into_libs=yes
9118   dynamic_linker='GNU ld.so'
9119   ;;
9120
9121 netbsd*)
9122   version_type=sunos
9123   need_lib_prefix=no
9124   need_version=no
9125   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128     dynamic_linker='NetBSD (a.out) ld.so'
9129   else
9130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131     soname_spec='${libname}${release}${shared_ext}$major'
9132     dynamic_linker='NetBSD ld.elf_so'
9133   fi
9134   shlibpath_var=LD_LIBRARY_PATH
9135   shlibpath_overrides_runpath=yes
9136   hardcode_into_libs=yes
9137   ;;
9138
9139 newsos6)
9140   version_type=linux
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   shlibpath_overrides_runpath=yes
9144   ;;
9145
9146 nto-qnx*)
9147   version_type=linux
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=yes
9154   ;;
9155
9156 openbsd*)
9157   version_type=sunos
9158   sys_lib_dlsearch_path_spec="/usr/lib"
9159   need_lib_prefix=no
9160   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9161   case $host_os in
9162     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9163     *)                         need_version=no  ;;
9164   esac
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167   shlibpath_var=LD_LIBRARY_PATH
9168   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9169     case $host_os in
9170       openbsd2.[89] | openbsd2.[89].*)
9171         shlibpath_overrides_runpath=no
9172         ;;
9173       *)
9174         shlibpath_overrides_runpath=yes
9175         ;;
9176       esac
9177   else
9178     shlibpath_overrides_runpath=yes
9179   fi
9180   ;;
9181
9182 os2*)
9183   libname_spec='$name'
9184   shrext_cmds=".dll"
9185   need_lib_prefix=no
9186   library_names_spec='$libname${shared_ext} $libname.a'
9187   dynamic_linker='OS/2 ld.exe'
9188   shlibpath_var=LIBPATH
9189   ;;
9190
9191 osf3* | osf4* | osf5*)
9192   version_type=osf
9193   need_lib_prefix=no
9194   need_version=no
9195   soname_spec='${libname}${release}${shared_ext}$major'
9196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197   shlibpath_var=LD_LIBRARY_PATH
9198   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9199   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9200   ;;
9201
9202 solaris*)
9203   version_type=linux
9204   need_lib_prefix=no
9205   need_version=no
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   soname_spec='${libname}${release}${shared_ext}$major'
9208   shlibpath_var=LD_LIBRARY_PATH
9209   shlibpath_overrides_runpath=yes
9210   hardcode_into_libs=yes
9211   # ldd complains unless libraries are executable
9212   postinstall_cmds='chmod +x $lib'
9213   ;;
9214
9215 sunos4*)
9216   version_type=sunos
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9218   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9219   shlibpath_var=LD_LIBRARY_PATH
9220   shlibpath_overrides_runpath=yes
9221   if test "$with_gnu_ld" = yes; then
9222     need_lib_prefix=no
9223   fi
9224   need_version=yes
9225   ;;
9226
9227 sysv4 | sysv4.3*)
9228   version_type=linux
9229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230   soname_spec='${libname}${release}${shared_ext}$major'
9231   shlibpath_var=LD_LIBRARY_PATH
9232   case $host_vendor in
9233     sni)
9234       shlibpath_overrides_runpath=no
9235       need_lib_prefix=no
9236       export_dynamic_flag_spec='${wl}-Blargedynsym'
9237       runpath_var=LD_RUN_PATH
9238       ;;
9239     siemens)
9240       need_lib_prefix=no
9241       ;;
9242     motorola)
9243       need_lib_prefix=no
9244       need_version=no
9245       shlibpath_overrides_runpath=no
9246       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9247       ;;
9248   esac
9249   ;;
9250
9251 sysv4*MP*)
9252   if test -d /usr/nec ;then
9253     version_type=linux
9254     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9255     soname_spec='$libname${shared_ext}.$major'
9256     shlibpath_var=LD_LIBRARY_PATH
9257   fi
9258   ;;
9259
9260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9261   version_type=freebsd-elf
9262   need_lib_prefix=no
9263   need_version=no
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   hardcode_into_libs=yes
9268   if test "$with_gnu_ld" = yes; then
9269     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9270     shlibpath_overrides_runpath=no
9271   else
9272     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9273     shlibpath_overrides_runpath=yes
9274     case $host_os in
9275       sco3.2v5*)
9276         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9277         ;;
9278     esac
9279   fi
9280   sys_lib_dlsearch_path_spec='/usr/lib'
9281   ;;
9282
9283 uts4*)
9284   version_type=linux
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   ;;
9289
9290 *)
9291   dynamic_linker=no
9292   ;;
9293 esac
9294 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9295 echo "${ECHO_T}$dynamic_linker" >&6; }
9296 test "$dynamic_linker" = no && can_build_shared=no
9297
9298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9299 if test "$GCC" = yes; then
9300   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9301 fi
9302
9303
9304 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9305 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9306 if test "${libltdl_cv_shlibext+set}" = set; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309
9310 module=yes
9311 eval libltdl_cv_shlibext=$shrext_cmds
9312
9313 fi
9314 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9315 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9316 if test -n "$libltdl_cv_shlibext"; then
9317
9318 cat >>confdefs.h <<_ACEOF
9319 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9320 _ACEOF
9321
9322 fi
9323
9324
9325 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9326 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9327 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9328   echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330   libltdl_cv_shlibpath_var="$shlibpath_var"
9331 fi
9332 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9333 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9334 if test -n "$libltdl_cv_shlibpath_var"; then
9335
9336 cat >>confdefs.h <<_ACEOF
9337 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9338 _ACEOF
9339
9340 fi
9341
9342
9343 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9344 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9345 if test "${libltdl_cv_sys_search_path+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9349 fi
9350 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9351 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9352 if test -n "$libltdl_cv_sys_search_path"; then
9353   sys_search_path=
9354   for dir in $libltdl_cv_sys_search_path; do
9355     if test -z "$sys_search_path"; then
9356       sys_search_path="$dir"
9357     else
9358       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9359     fi
9360   done
9361
9362 cat >>confdefs.h <<_ACEOF
9363 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9364 _ACEOF
9365
9366 fi
9367
9368 { echo "$as_me:$LINENO: checking for objdir" >&5
9369 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9370 if test "${libltdl_cv_objdir+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   libltdl_cv_objdir="$objdir"
9374   if test -n "$objdir"; then
9375     :
9376   else
9377     rm -f .libs 2>/dev/null
9378     mkdir .libs 2>/dev/null
9379     if test -d .libs; then
9380       libltdl_cv_objdir=.libs
9381     else
9382       # MS-DOS does not allow filenames that begin with a dot.
9383       libltdl_cv_objdir=_libs
9384     fi
9385   rmdir .libs 2>/dev/null
9386   fi
9387
9388 fi
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9390 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9391
9392 cat >>confdefs.h <<_ACEOF
9393 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9394 _ACEOF
9395
9396
9397
9398
9399
9400
9401 # Check for command to grab the raw symbol name followed by C symbol from nm.
9402 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9403 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9404 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9405   echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407
9408 # These are sane defaults that work on at least a few old systems.
9409 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9410
9411 # Character class describing NM global symbol codes.
9412 symcode='[BCDEGRST]'
9413
9414 # Regexp to match symbols that can be accessed directly from C.
9415 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9416
9417 # Transform an extracted symbol line into a proper C declaration
9418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9419
9420 # Transform an extracted symbol line into symbol name and symbol address
9421 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'"
9422
9423 # Define system-specific variables.
9424 case $host_os in
9425 aix*)
9426   symcode='[BCDT]'
9427   ;;
9428 cygwin* | mingw* | pw32*)
9429   symcode='[ABCDGISTW]'
9430   ;;
9431 hpux*) # Its linker distinguishes data from code symbols
9432   if test "$host_cpu" = ia64; then
9433     symcode='[ABCDEGRST]'
9434   fi
9435   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9436   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'"
9437   ;;
9438 linux*)
9439   if test "$host_cpu" = ia64; then
9440     symcode='[ABCDGIRSTW]'
9441     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9442     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'"
9443   fi
9444   ;;
9445 irix* | nonstopux*)
9446   symcode='[BCDEGRST]'
9447   ;;
9448 osf*)
9449   symcode='[BCDEGQRST]'
9450   ;;
9451 solaris*)
9452   symcode='[BDRT]'
9453   ;;
9454 sco3.2v5*)
9455   symcode='[DT]'
9456   ;;
9457 sysv4.2uw2*)
9458   symcode='[DT]'
9459   ;;
9460 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9461   symcode='[ABDT]'
9462   ;;
9463 sysv4)
9464   symcode='[DFNSTU]'
9465   ;;
9466 esac
9467
9468 # Handle CRLF in mingw tool chain
9469 opt_cr=
9470 case $build_os in
9471 mingw*)
9472   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9473   ;;
9474 esac
9475
9476 # If we're using GNU nm, then use its standard symbol codes.
9477 case `$NM -V 2>&1` in
9478 *GNU* | *'with BFD'*)
9479   symcode='[ABCDGIRSTW]' ;;
9480 esac
9481
9482 # Try without a prefix undercore, then with it.
9483 for ac_symprfx in "" "_"; do
9484
9485   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9486   symxfrm="\\1 $ac_symprfx\\2 \\2"
9487
9488   # Write the raw and C identifiers.
9489   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9490
9491   # Check to see that the pipe works correctly.
9492   pipe_works=no
9493
9494   rm -f conftest*
9495   cat > conftest.$ac_ext <<EOF
9496 #ifdef __cplusplus
9497 extern "C" {
9498 #endif
9499 char nm_test_var;
9500 void nm_test_func(){}
9501 #ifdef __cplusplus
9502 }
9503 #endif
9504 int main(){nm_test_var='a';nm_test_func();return(0);}
9505 EOF
9506
9507   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508   (eval $ac_compile) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; then
9512     # Now try to grab the symbols.
9513     nlist=conftest.nm
9514     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9515   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } && test -s "$nlist"; then
9519       # Try sorting and uniquifying the output.
9520       if sort "$nlist" | uniq > "$nlist"T; then
9521         mv -f "$nlist"T "$nlist"
9522       else
9523         rm -f "$nlist"T
9524       fi
9525
9526       # Make sure that we snagged all the symbols we need.
9527       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9528         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9529           cat <<EOF > conftest.$ac_ext
9530 #ifdef __cplusplus
9531 extern "C" {
9532 #endif
9533
9534 EOF
9535           # Now generate the symbol file.
9536           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9537
9538           cat <<EOF >> conftest.$ac_ext
9539 #if defined (__STDC__) && __STDC__
9540 # define lt_ptr_t void *
9541 #else
9542 # define lt_ptr_t char *
9543 # define const
9544 #endif
9545
9546 /* The mapping between symbol names and symbols. */
9547 const struct {
9548   const char *name;
9549   lt_ptr_t address;
9550 }
9551 lt_preloaded_symbols[] =
9552 {
9553 EOF
9554           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9555           cat <<\EOF >> conftest.$ac_ext
9556   {0, (lt_ptr_t) 0}
9557 };
9558
9559 #ifdef __cplusplus
9560 }
9561 #endif
9562 EOF
9563           # Now try linking the two files.
9564           mv conftest.$ac_objext conftstm.$ac_objext
9565           lt_save_LIBS="$LIBS"
9566           lt_save_CFLAGS="$CFLAGS"
9567           LIBS="conftstm.$ac_objext"
9568           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9569           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570   (eval $ac_link) 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9574             pipe_works=yes
9575           fi
9576           LIBS="$lt_save_LIBS"
9577           CFLAGS="$lt_save_CFLAGS"
9578         else
9579           echo "cannot find nm_test_func in $nlist" >&5
9580         fi
9581       else
9582         echo "cannot find nm_test_var in $nlist" >&5
9583       fi
9584     else
9585       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9586     fi
9587   else
9588     echo "$progname: failed program was:" >&5
9589     cat conftest.$ac_ext >&5
9590   fi
9591   rm -f conftest* conftst*
9592
9593   # Do not use the global_symbol_pipe unless it works.
9594   if test "$pipe_works" = yes; then
9595     break
9596   else
9597     lt_cv_sys_global_symbol_pipe=
9598   fi
9599 done
9600
9601 fi
9602
9603 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9604   lt_cv_sys_global_symbol_to_cdecl=
9605 fi
9606 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9607   { echo "$as_me:$LINENO: result: failed" >&5
9608 echo "${ECHO_T}failed" >&6; }
9609 else
9610   { echo "$as_me:$LINENO: result: ok" >&5
9611 echo "${ECHO_T}ok" >&6; }
9612 fi
9613
9614
9615 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9616 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9617 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9621     libltdl_cv_preloaded_symbols=yes
9622   else
9623     libltdl_cv_preloaded_symbols=no
9624   fi
9625
9626 fi
9627 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9628 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9629 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9630
9631 cat >>confdefs.h <<\_ACEOF
9632 #define HAVE_PRELOADED_SYMBOLS 1
9633 _ACEOF
9634
9635 fi
9636
9637 LIBADD_DL=
9638
9639 ac_ext=c
9640 ac_cpp='$CPP $CPPFLAGS'
9641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9644
9645
9646 { echo "$as_me:$LINENO: checking for shl_load" >&5
9647 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9648 if test "${ac_cv_func_shl_load+set}" = set; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651   cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9659 #define shl_load innocuous_shl_load
9660
9661 /* System header to define __stub macros and hopefully few prototypes,
9662     which can conflict with char shl_load (); below.
9663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664     <limits.h> exists even on freestanding compilers.  */
9665
9666 #ifdef __STDC__
9667 # include <limits.h>
9668 #else
9669 # include <assert.h>
9670 #endif
9671
9672 #undef shl_load
9673
9674 /* Override any GCC internal prototype to avoid an error.
9675    Use char because int might match the return type of a GCC
9676    builtin and then its argument prototype would still apply.  */
9677 #ifdef __cplusplus
9678 extern "C"
9679 #endif
9680 char shl_load ();
9681 /* The GNU C library defines this for functions which it implements
9682     to always fail with ENOSYS.  Some functions are actually named
9683     something starting with __ and the normal name is an alias.  */
9684 #if defined __stub_shl_load || defined __stub___shl_load
9685 choke me
9686 #endif
9687
9688 int
9689 main ()
9690 {
9691 return shl_load ();
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (ac_try="$ac_link"
9698 case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703   (eval "$ac_link") 2>conftest.er1
9704   ac_status=$?
9705   grep -v '^ *+' conftest.er1 >conftest.err
9706   rm -f conftest.er1
9707   cat conftest.err >&5
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); } &&
9710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9711   { (case "(($ac_try" in
9712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713   *) ac_try_echo=$ac_try;;
9714 esac
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716   (eval "$ac_try") 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; } &&
9720          { ac_try='test -s conftest$ac_exeext'
9721   { (case "(($ac_try" in
9722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723   *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726   (eval "$ac_try") 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); }; }; then
9730   ac_cv_func_shl_load=yes
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735         ac_cv_func_shl_load=no
9736 fi
9737
9738 rm -f core conftest.err conftest.$ac_objext \
9739       conftest$ac_exeext conftest.$ac_ext
9740 fi
9741 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9742 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9743 if test $ac_cv_func_shl_load = yes; then
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_SHL_LOAD 1
9747 _ACEOF
9748
9749 else
9750   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9751 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9752 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   ac_check_lib_save_LIBS=$LIBS
9756 LIBS="-ldld  $LIBS"
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763
9764 /* Override any GCC internal prototype to avoid an error.
9765    Use char because int might match the return type of a GCC
9766    builtin and then its argument prototype would still apply.  */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char shl_load ();
9771 int
9772 main ()
9773 {
9774 return shl_load ();
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9781 case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786   (eval "$ac_link") 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794   { (case "(($ac_try" in
9795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796   *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799   (eval "$ac_try") 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; } &&
9803          { ac_try='test -s conftest$ac_exeext'
9804   { (case "(($ac_try" in
9805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806   *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809   (eval "$ac_try") 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); }; }; then
9813   ac_cv_lib_dld_shl_load=yes
9814 else
9815   echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818         ac_cv_lib_dld_shl_load=no
9819 fi
9820
9821 rm -f core conftest.err conftest.$ac_objext \
9822       conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
9825 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9826 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9827 if test $ac_cv_lib_dld_shl_load = yes; then
9828
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_SHL_LOAD 1
9831 _ACEOF
9832
9833         LIBADD_DL="$LIBADD_DL -ldld"
9834 else
9835   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9836 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9838   echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840   ac_check_lib_save_LIBS=$LIBS
9841 LIBS="-ldl  $LIBS"
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848
9849 /* Override any GCC internal prototype to avoid an error.
9850    Use char because int might match the return type of a GCC
9851    builtin and then its argument prototype would still apply.  */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char dlopen ();
9856 int
9857 main ()
9858 {
9859 return dlopen ();
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9866 case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_link") 2>conftest.er1
9872   ac_status=$?
9873   grep -v '^ *+' conftest.er1 >conftest.err
9874   rm -f conftest.er1
9875   cat conftest.err >&5
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } &&
9878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879   { (case "(($ac_try" in
9880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881   *) ac_try_echo=$ac_try;;
9882 esac
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884   (eval "$ac_try") 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; } &&
9888          { ac_try='test -s conftest$ac_exeext'
9889   { (case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_try") 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_cv_lib_dl_dlopen=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903         ac_cv_lib_dl_dlopen=no
9904 fi
9905
9906 rm -f core conftest.err conftest.$ac_objext \
9907       conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9909 fi
9910 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9911 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9912 if test $ac_cv_lib_dl_dlopen = yes; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBDL 1
9916 _ACEOF
9917
9918                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9919 else
9920   cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926 #if HAVE_DLFCN_H
9927 #  include <dlfcn.h>
9928 #endif
9929
9930 int
9931 main ()
9932 {
9933 dlopen(0, 0);
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942   *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945   (eval "$ac_link") 2>conftest.er1
9946   ac_status=$?
9947   grep -v '^ *+' conftest.er1 >conftest.err
9948   rm -f conftest.er1
9949   cat conftest.err >&5
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } &&
9952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953   { (case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_try") 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest$ac_exeext'
9963   { (case "(($ac_try" in
9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965   *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968   (eval "$ac_try") 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; }; then
9972
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_LIBDL 1
9975 _ACEOF
9976  libltdl_cv_func_dlopen="yes"
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   ac_check_lib_save_LIBS=$LIBS
9987 LIBS="-lsvld  $LIBS"
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994
9995 /* Override any GCC internal prototype to avoid an error.
9996    Use char because int might match the return type of a GCC
9997    builtin and then its argument prototype would still apply.  */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char dlopen ();
10002 int
10003 main ()
10004 {
10005 return dlopen ();
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_link") 2>conftest.er1
10018   ac_status=$?
10019   grep -v '^ *+' conftest.er1 >conftest.err
10020   rm -f conftest.er1
10021   cat conftest.err >&5
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } &&
10024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10025   { (case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_try") 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; } &&
10034          { ac_try='test -s conftest$ac_exeext'
10035   { (case "(($ac_try" in
10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037   *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040   (eval "$ac_try") 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   ac_cv_lib_svld_dlopen=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049         ac_cv_lib_svld_dlopen=no
10050 fi
10051
10052 rm -f core conftest.err conftest.$ac_objext \
10053       conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10055 fi
10056 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10058 if test $ac_cv_lib_svld_dlopen = yes; then
10059
10060 cat >>confdefs.h <<\_ACEOF
10061 #define HAVE_LIBDL 1
10062 _ACEOF
10063
10064                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10065 else
10066   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10067 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldld  $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079
10080 /* Override any GCC internal prototype to avoid an error.
10081    Use char because int might match the return type of a GCC
10082    builtin and then its argument prototype would still apply.  */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char dld_link ();
10087 int
10088 main ()
10089 {
10090 return dld_link ();
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102   (eval "$ac_link") 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110   { (case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_try") 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; } &&
10119          { ac_try='test -s conftest$ac_exeext'
10120   { (case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_try") 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_lib_dld_dld_link=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134         ac_cv_lib_dld_dld_link=no
10135 fi
10136
10137 rm -f core conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10142 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10143 if test $ac_cv_lib_dld_dld_link = yes; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_DLD 1
10147 _ACEOF
10148
10149                 LIBADD_DL="$LIBADD_DL -ldld"
10150 else
10151   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10152 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10153 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10164 #define _dyld_func_lookup innocuous__dyld_func_lookup
10165
10166 /* System header to define __stub macros and hopefully few prototypes,
10167     which can conflict with char _dyld_func_lookup (); below.
10168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10169     <limits.h> exists even on freestanding compilers.  */
10170
10171 #ifdef __STDC__
10172 # include <limits.h>
10173 #else
10174 # include <assert.h>
10175 #endif
10176
10177 #undef _dyld_func_lookup
10178
10179 /* Override any GCC internal prototype to avoid an error.
10180    Use char because int might match the return type of a GCC
10181    builtin and then its argument prototype would still apply.  */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char _dyld_func_lookup ();
10186 /* The GNU C library defines this for functions which it implements
10187     to always fail with ENOSYS.  Some functions are actually named
10188     something starting with __ and the normal name is an alias.  */
10189 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10190 choke me
10191 #endif
10192
10193 int
10194 main ()
10195 {
10196 return _dyld_func_lookup ();
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_link") 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } &&
10215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_try") 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; } &&
10225          { ac_try='test -s conftest$ac_exeext'
10226   { (case "(($ac_try" in
10227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228   *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231   (eval "$ac_try") 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; }; then
10235   ac_cv_func__dyld_func_lookup=yes
10236 else
10237   echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240         ac_cv_func__dyld_func_lookup=no
10241 fi
10242
10243 rm -f core conftest.err conftest.$ac_objext \
10244       conftest$ac_exeext conftest.$ac_ext
10245 fi
10246 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10247 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10248 if test $ac_cv_func__dyld_func_lookup = yes; then
10249
10250 cat >>confdefs.h <<\_ACEOF
10251 #define HAVE_DYLD 1
10252 _ACEOF
10253
10254 fi
10255
10256
10257 fi
10258
10259
10260 fi
10261
10262
10263 fi
10264
10265 rm -f core conftest.err conftest.$ac_objext \
10266       conftest$ac_exeext conftest.$ac_ext
10267
10268 fi
10269
10270
10271 fi
10272
10273
10274 fi
10275
10276
10277 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10278 then
10279   lt_save_LIBS="$LIBS"
10280   LIBS="$LIBS $LIBADD_DL"
10281
10282 for ac_func in dlerror
10283 do
10284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10298 #define $ac_func innocuous_$ac_func
10299
10300 /* System header to define __stub macros and hopefully few prototypes,
10301     which can conflict with char $ac_func (); below.
10302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303     <limits.h> exists even on freestanding compilers.  */
10304
10305 #ifdef __STDC__
10306 # include <limits.h>
10307 #else
10308 # include <assert.h>
10309 #endif
10310
10311 #undef $ac_func
10312
10313 /* Override any GCC internal prototype to avoid an error.
10314    Use char because int might match the return type of a GCC
10315    builtin and then its argument prototype would still apply.  */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char $ac_func ();
10320 /* The GNU C library defines this for functions which it implements
10321     to always fail with ENOSYS.  Some functions are actually named
10322     something starting with __ and the normal name is an alias.  */
10323 #if defined __stub_$ac_func || defined __stub___$ac_func
10324 choke me
10325 #endif
10326
10327 int
10328 main ()
10329 {
10330 return $ac_func ();
10331   ;
10332   return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_link") 2>conftest.er1
10343   ac_status=$?
10344   grep -v '^ *+' conftest.er1 >conftest.err
10345   rm -f conftest.er1
10346   cat conftest.err >&5
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } &&
10349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350   { (case "(($ac_try" in
10351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352   *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355   (eval "$ac_try") 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; } &&
10359          { ac_try='test -s conftest$ac_exeext'
10360   { (case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365   (eval "$ac_try") 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   eval "$as_ac_var=yes"
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374         eval "$as_ac_var=no"
10375 fi
10376
10377 rm -f core conftest.err conftest.$ac_objext \
10378       conftest$ac_exeext conftest.$ac_ext
10379 fi
10380 ac_res=`eval echo '${'$as_ac_var'}'`
10381                { echo "$as_me:$LINENO: result: $ac_res" >&5
10382 echo "${ECHO_T}$ac_res" >&6; }
10383 if test `eval echo '${'$as_ac_var'}'` = yes; then
10384   cat >>confdefs.h <<_ACEOF
10385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10386 _ACEOF
10387
10388 fi
10389 done
10390
10391   LIBS="$lt_save_LIBS"
10392 fi
10393 ac_ext=c
10394 ac_cpp='$CPP $CPPFLAGS'
10395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398
10399
10400
10401 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10402 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10403 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   ac_cv_sys_symbol_underscore=no
10407   cat > conftest.$ac_ext <<EOF
10408 void nm_test_func(){}
10409 int main(){nm_test_func;return 0;}
10410 EOF
10411   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412   (eval $ac_compile) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; then
10416     # Now try to grab the symbols.
10417     ac_nlist=conftest.nm
10418     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10419   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } && test -s "$ac_nlist"; then
10423       # See whether the symbols have a leading underscore.
10424       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10425         ac_cv_sys_symbol_underscore=yes
10426       else
10427         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10428           :
10429         else
10430           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10431         fi
10432       fi
10433     else
10434       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10435     fi
10436   else
10437     echo "configure: failed program was:" >&5
10438     cat conftest.c >&5
10439   fi
10440   rm -rf conftest*
10441
10442 fi
10443 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10444 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10445
10446
10447 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10448   if test x"$libltdl_cv_func_dlopen" = xyes ||
10449      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10450         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10451 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10452 if test "${libltdl_cv_need_uscore+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455   libltdl_cv_need_uscore=unknown
10456           save_LIBS="$LIBS"
10457           LIBS="$LIBS $LIBADD_DL"
10458           if test "$cross_compiling" = yes; then :
10459   libltdl_cv_need_uscore=cross
10460 else
10461   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10462   lt_status=$lt_dlunknown
10463   cat > conftest.$ac_ext <<EOF
10464 #line 10474 "configure"
10465 #include "confdefs.h"
10466
10467 #if HAVE_DLFCN_H
10468 #include <dlfcn.h>
10469 #endif
10470
10471 #include <stdio.h>
10472
10473 #ifdef RTLD_GLOBAL
10474 #  define LT_DLGLOBAL           RTLD_GLOBAL
10475 #else
10476 #  ifdef DL_GLOBAL
10477 #    define LT_DLGLOBAL         DL_GLOBAL
10478 #  else
10479 #    define LT_DLGLOBAL         0
10480 #  endif
10481 #endif
10482
10483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10484    find out it does not work in some platform. */
10485 #ifndef LT_DLLAZY_OR_NOW
10486 #  ifdef RTLD_LAZY
10487 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10488 #  else
10489 #    ifdef DL_LAZY
10490 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10491 #    else
10492 #      ifdef RTLD_NOW
10493 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10494 #      else
10495 #        ifdef DL_NOW
10496 #          define LT_DLLAZY_OR_NOW      DL_NOW
10497 #        else
10498 #          define LT_DLLAZY_OR_NOW      0
10499 #        endif
10500 #      endif
10501 #    endif
10502 #  endif
10503 #endif
10504
10505 #ifdef __cplusplus
10506 extern "C" void exit (int);
10507 #endif
10508
10509 void fnord() { int i=42;}
10510 int main ()
10511 {
10512   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10513   int status = $lt_dlunknown;
10514
10515   if (self)
10516     {
10517       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10518       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10519       /* dlclose (self); */
10520     }
10521   else
10522     puts (dlerror ());
10523
10524     exit (status);
10525 }
10526 EOF
10527   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528   (eval $ac_link) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10532     (./conftest; exit; ) >&5 2>/dev/null
10533     lt_status=$?
10534     case x$lt_status in
10535       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10536       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10537       x$lt_dlunknown|x*)  ;;
10538     esac
10539   else :
10540     # compilation failed
10541
10542   fi
10543 fi
10544 rm -fr conftest*
10545
10546           LIBS="$save_LIBS"
10547
10548 fi
10549 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10550 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10551   fi
10552 fi
10553
10554 if test x"$libltdl_cv_need_uscore" = xyes; then
10555
10556 cat >>confdefs.h <<\_ACEOF
10557 #define NEED_USCORE 1
10558 _ACEOF
10559
10560 fi
10561
10562
10563 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10564 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10565 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568   # PORTME does your system automatically load deplibs for dlopen?
10569   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10570   # For now, we just catch OSes we know something about -- in the
10571   # future, we'll try test this programmatically.
10572   libltdl_cv_sys_dlopen_deplibs=unknown
10573   case "$host_os" in
10574   aix3*|aix4.1.*|aix4.2.*)
10575     # Unknown whether this is true for these versions of AIX, but
10576     # we want this `case' here to explicitly catch those versions.
10577     libltdl_cv_sys_dlopen_deplibs=unknown
10578     ;;
10579   aix[45]*)
10580     libltdl_cv_sys_dlopen_deplibs=yes
10581     ;;
10582   darwin*)
10583     # Assuming the user has installed a libdl from somewhere, this is true
10584     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10585     libltdl_cv_sys_dlopen_deplibs=yes
10586     ;;
10587   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10588     # GNU and its variants, using gnu ld.so (Glibc)
10589     libltdl_cv_sys_dlopen_deplibs=yes
10590     ;;
10591   hpux10*|hpux11*)
10592     libltdl_cv_sys_dlopen_deplibs=yes
10593     ;;
10594   interix*)
10595     libltdl_cv_sys_dlopen_deplibs=yes
10596     ;;
10597   irix[12345]*|irix6.[01]*)
10598     # Catch all versions of IRIX before 6.2, and indicate that we don't
10599     # know how it worked for any of those versions.
10600     libltdl_cv_sys_dlopen_deplibs=unknown
10601     ;;
10602   irix*)
10603     # The case above catches anything before 6.2, and it's known that
10604     # at 6.2 and later dlopen does load deplibs.
10605     libltdl_cv_sys_dlopen_deplibs=yes
10606     ;;
10607   netbsd*)
10608     libltdl_cv_sys_dlopen_deplibs=yes
10609     ;;
10610   openbsd*)
10611     libltdl_cv_sys_dlopen_deplibs=yes
10612     ;;
10613   osf[1234]*)
10614     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10615     # it did *not* use an RPATH in a shared library to find objects the
10616     # library depends on, so we explicitly say `no'.
10617     libltdl_cv_sys_dlopen_deplibs=no
10618     ;;
10619   osf5.0|osf5.0a|osf5.1)
10620     # dlopen *does* load deplibs and with the right loader patch applied
10621     # it even uses RPATH in a shared library to search for shared objects
10622     # that the library depends on, but there's no easy way to know if that
10623     # patch is installed.  Since this is the case, all we can really
10624     # say is unknown -- it depends on the patch being installed.  If
10625     # it is, this changes to `yes'.  Without it, it would be `no'.
10626     libltdl_cv_sys_dlopen_deplibs=unknown
10627     ;;
10628   osf*)
10629     # the two cases above should catch all versions of osf <= 5.1.  Read
10630     # the comments above for what we know about them.
10631     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10632     # is used to find them so we can finally say `yes'.
10633     libltdl_cv_sys_dlopen_deplibs=yes
10634     ;;
10635   solaris*)
10636     libltdl_cv_sys_dlopen_deplibs=yes
10637     ;;
10638   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10639     libltdl_cv_sys_dlopen_deplibs=yes
10640     ;;
10641   esac
10642
10643 fi
10644 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10645 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10646 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10647
10648 cat >>confdefs.h <<\_ACEOF
10649 #define LTDL_DLOPEN_DEPLIBS 1
10650 _ACEOF
10651
10652 fi
10653
10654
10655 for ac_header in argz.h
10656 do
10657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662   echo $ECHO_N "(cached) $ECHO_C" >&6
10663 fi
10664 ac_res=`eval echo '${'$as_ac_Header'}'`
10665                { echo "$as_me:$LINENO: result: $ac_res" >&5
10666 echo "${ECHO_T}$ac_res" >&6; }
10667 else
10668   # Is the header compilable?
10669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h.  */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h.  */
10677 $ac_includes_default
10678 #include <$ac_header>
10679 _ACEOF
10680 rm -f conftest.$ac_objext
10681 if { (ac_try="$ac_compile"
10682 case "(($ac_try" in
10683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684   *) ac_try_echo=$ac_try;;
10685 esac
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687   (eval "$ac_compile") 2>conftest.er1
10688   ac_status=$?
10689   grep -v '^ *+' conftest.er1 >conftest.err
10690   rm -f conftest.er1
10691   cat conftest.err >&5
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); } &&
10694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10695   { (case "(($ac_try" in
10696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697   *) ac_try_echo=$ac_try;;
10698 esac
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700   (eval "$ac_try") 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; } &&
10704          { ac_try='test -s conftest.$ac_objext'
10705   { (case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_try") 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; }; then
10714   ac_header_compiler=yes
10715 else
10716   echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719         ac_header_compiler=no
10720 fi
10721
10722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724 echo "${ECHO_T}$ac_header_compiler" >&6; }
10725
10726 # Is the header present?
10727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735 #include <$ac_header>
10736 _ACEOF
10737 if { (ac_try="$ac_cpp conftest.$ac_ext"
10738 case "(($ac_try" in
10739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740   *) ac_try_echo=$ac_try;;
10741 esac
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } >/dev/null; then
10750   if test -s conftest.err; then
10751     ac_cpp_err=$ac_c_preproc_warn_flag
10752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10753   else
10754     ac_cpp_err=
10755   fi
10756 else
10757   ac_cpp_err=yes
10758 fi
10759 if test -z "$ac_cpp_err"; then
10760   ac_header_preproc=yes
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765   ac_header_preproc=no
10766 fi
10767
10768 rm -f conftest.err conftest.$ac_ext
10769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770 echo "${ECHO_T}$ac_header_preproc" >&6; }
10771
10772 # So?  What about this header?
10773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774   yes:no: )
10775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779     ac_header_preproc=yes
10780     ;;
10781   no:yes:* )
10782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10794     ( cat <<\_ASBOX
10795 ## ----------------------------------- ##
10796 ## Report this to llvmbugs@cs.uiuc.edu ##
10797 ## ----------------------------------- ##
10798 _ASBOX
10799      ) | sed "s/^/$as_me: WARNING:     /" >&2
10800     ;;
10801 esac
10802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   eval "$as_ac_Header=\$ac_header_preproc"
10808 fi
10809 ac_res=`eval echo '${'$as_ac_Header'}'`
10810                { echo "$as_me:$LINENO: result: $ac_res" >&5
10811 echo "${ECHO_T}$ac_res" >&6; }
10812
10813 fi
10814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10815   cat >>confdefs.h <<_ACEOF
10816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817 _ACEOF
10818
10819 fi
10820
10821 done
10822
10823
10824 { echo "$as_me:$LINENO: checking for error_t" >&5
10825 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10826 if test "${ac_cv_type_error_t+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835 #if HAVE_ARGZ_H
10836 #  include <argz.h>
10837 #endif
10838
10839 typedef error_t ac__type_new_;
10840 int
10841 main ()
10842 {
10843 if ((ac__type_new_ *) 0)
10844   return 0;
10845 if (sizeof (ac__type_new_))
10846   return 0;
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest.$ac_objext
10852 if { (ac_try="$ac_compile"
10853 case "(($ac_try" in
10854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855   *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858   (eval "$ac_compile") 2>conftest.er1
10859   ac_status=$?
10860   grep -v '^ *+' conftest.er1 >conftest.err
10861   rm -f conftest.er1
10862   cat conftest.err >&5
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); } &&
10865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10866   { (case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_try") 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; } &&
10875          { ac_try='test -s conftest.$ac_objext'
10876   { (case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881   (eval "$ac_try") 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); }; }; then
10885   ac_cv_type_error_t=yes
10886 else
10887   echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10889
10890         ac_cv_type_error_t=no
10891 fi
10892
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 fi
10895 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10896 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10897 if test $ac_cv_type_error_t = yes; then
10898
10899 cat >>confdefs.h <<_ACEOF
10900 #define HAVE_ERROR_T 1
10901 _ACEOF
10902
10903
10904 else
10905
10906 cat >>confdefs.h <<\_ACEOF
10907 #define error_t int
10908 _ACEOF
10909
10910 fi
10911
10912
10913
10914
10915
10916
10917
10918 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10919 do
10920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10934 #define $ac_func innocuous_$ac_func
10935
10936 /* System header to define __stub macros and hopefully few prototypes,
10937     which can conflict with char $ac_func (); below.
10938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10939     <limits.h> exists even on freestanding compilers.  */
10940
10941 #ifdef __STDC__
10942 # include <limits.h>
10943 #else
10944 # include <assert.h>
10945 #endif
10946
10947 #undef $ac_func
10948
10949 /* Override any GCC internal prototype to avoid an error.
10950    Use char because int might match the return type of a GCC
10951    builtin and then its argument prototype would still apply.  */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char $ac_func ();
10956 /* The GNU C library defines this for functions which it implements
10957     to always fail with ENOSYS.  Some functions are actually named
10958     something starting with __ and the normal name is an alias.  */
10959 #if defined __stub_$ac_func || defined __stub___$ac_func
10960 choke me
10961 #endif
10962
10963 int
10964 main ()
10965 {
10966 return $ac_func ();
10967   ;
10968   return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (ac_try="$ac_link"
10973 case "(($ac_try" in
10974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975   *) ac_try_echo=$ac_try;;
10976 esac
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978   (eval "$ac_link") 2>conftest.er1
10979   ac_status=$?
10980   grep -v '^ *+' conftest.er1 >conftest.err
10981   rm -f conftest.er1
10982   cat conftest.err >&5
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } &&
10985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10986   { (case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991   (eval "$ac_try") 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); }; } &&
10995          { ac_try='test -s conftest$ac_exeext'
10996   { (case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001   (eval "$ac_try") 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; }; then
11005   eval "$as_ac_var=yes"
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010         eval "$as_ac_var=no"
11011 fi
11012
11013 rm -f core conftest.err conftest.$ac_objext \
11014       conftest$ac_exeext conftest.$ac_ext
11015 fi
11016 ac_res=`eval echo '${'$as_ac_var'}'`
11017                { echo "$as_me:$LINENO: result: $ac_res" >&5
11018 echo "${ECHO_T}$ac_res" >&6; }
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020   cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11022 _ACEOF
11023
11024 fi
11025 done
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
11054 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11055                   stdio.h unistd.h
11056 do
11057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 fi
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065                { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11067 else
11068   # Is the header compilable?
11069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077 $ac_includes_default
11078 #include <$ac_header>
11079 _ACEOF
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084   *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087   (eval "$ac_compile") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } &&
11094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095   { (case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest.$ac_objext'
11105   { (case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_try") 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; }; then
11114   ac_header_compiler=yes
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119         ac_header_compiler=no
11120 fi
11121
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124 echo "${ECHO_T}$ac_header_compiler" >&6; }
11125
11126 # Is the header present?
11127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <$ac_header>
11136 _ACEOF
11137 if { (ac_try="$ac_cpp conftest.$ac_ext"
11138 case "(($ac_try" in
11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140   *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144   ac_status=$?
11145   grep -v '^ *+' conftest.er1 >conftest.err
11146   rm -f conftest.er1
11147   cat conftest.err >&5
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } >/dev/null; then
11150   if test -s conftest.err; then
11151     ac_cpp_err=$ac_c_preproc_warn_flag
11152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11153   else
11154     ac_cpp_err=
11155   fi
11156 else
11157   ac_cpp_err=yes
11158 fi
11159 if test -z "$ac_cpp_err"; then
11160   ac_header_preproc=yes
11161 else
11162   echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165   ac_header_preproc=no
11166 fi
11167
11168 rm -f conftest.err conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170 echo "${ECHO_T}$ac_header_preproc" >&6; }
11171
11172 # So?  What about this header?
11173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11174   yes:no: )
11175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179     ac_header_preproc=yes
11180     ;;
11181   no:yes:* )
11182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11194     ( cat <<\_ASBOX
11195 ## ----------------------------------- ##
11196 ## Report this to llvmbugs@cs.uiuc.edu ##
11197 ## ----------------------------------- ##
11198 _ASBOX
11199      ) | sed "s/^/$as_me: WARNING:     /" >&2
11200     ;;
11201 esac
11202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11205   echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207   eval "$as_ac_Header=\$ac_header_preproc"
11208 fi
11209 ac_res=`eval echo '${'$as_ac_Header'}'`
11210                { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11212
11213 fi
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215   cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 _ACEOF
11218
11219 fi
11220
11221 done
11222
11223
11224
11225
11226
11227 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11228 do
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 fi
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237                { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11239 else
11240   # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 $ac_includes_default
11250 #include <$ac_header>
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_header_compiler=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ac_header_compiler=no
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296 echo "${ECHO_T}$ac_header_compiler" >&6; }
11297
11298 # Is the header present?
11299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 #include <$ac_header>
11308 _ACEOF
11309 if { (ac_try="$ac_cpp conftest.$ac_ext"
11310 case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } >/dev/null; then
11322   if test -s conftest.err; then
11323     ac_cpp_err=$ac_c_preproc_warn_flag
11324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325   else
11326     ac_cpp_err=
11327   fi
11328 else
11329   ac_cpp_err=yes
11330 fi
11331 if test -z "$ac_cpp_err"; then
11332   ac_header_preproc=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337   ac_header_preproc=no
11338 fi
11339
11340 rm -f conftest.err conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6; }
11343
11344 # So?  What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346   yes:no: )
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351     ac_header_preproc=yes
11352     ;;
11353   no:yes:* )
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366     ( cat <<\_ASBOX
11367 ## ----------------------------------- ##
11368 ## Report this to llvmbugs@cs.uiuc.edu ##
11369 ## ----------------------------------- ##
11370 _ASBOX
11371      ) | sed "s/^/$as_me: WARNING:     /" >&2
11372     ;;
11373 esac
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379   eval "$as_ac_Header=\$ac_header_preproc"
11380 fi
11381 ac_res=`eval echo '${'$as_ac_Header'}'`
11382                { echo "$as_me:$LINENO: result: $ac_res" >&5
11383 echo "${ECHO_T}$ac_res" >&6; }
11384
11385 fi
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387   cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389 _ACEOF
11390
11391 fi
11392
11393 done
11394
11395
11396
11397 for ac_header in string.h strings.h
11398 do
11399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 fi
11406 ac_res=`eval echo '${'$as_ac_Header'}'`
11407                { echo "$as_me:$LINENO: result: $ac_res" >&5
11408 echo "${ECHO_T}$ac_res" >&6; }
11409 else
11410   # Is the header compilable?
11411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h.  */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h.  */
11419 $ac_includes_default
11420 #include <$ac_header>
11421 _ACEOF
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_compile") 2>conftest.er1
11430   ac_status=$?
11431   grep -v '^ *+' conftest.er1 >conftest.err
11432   rm -f conftest.er1
11433   cat conftest.err >&5
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); } &&
11436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437   { (case "(($ac_try" in
11438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439   *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442   (eval "$ac_try") 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; } &&
11446          { ac_try='test -s conftest.$ac_objext'
11447   { (case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_try") 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }; then
11456   ac_header_compiler=yes
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461         ac_header_compiler=no
11462 fi
11463
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11466 echo "${ECHO_T}$ac_header_compiler" >&6; }
11467
11468 # Is the header present?
11469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 #include <$ac_header>
11478 _ACEOF
11479 if { (ac_try="$ac_cpp conftest.$ac_ext"
11480 case "(($ac_try" in
11481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482   *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } >/dev/null; then
11492   if test -s conftest.err; then
11493     ac_cpp_err=$ac_c_preproc_warn_flag
11494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11495   else
11496     ac_cpp_err=
11497   fi
11498 else
11499   ac_cpp_err=yes
11500 fi
11501 if test -z "$ac_cpp_err"; then
11502   ac_header_preproc=yes
11503 else
11504   echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507   ac_header_preproc=no
11508 fi
11509
11510 rm -f conftest.err conftest.$ac_ext
11511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512 echo "${ECHO_T}$ac_header_preproc" >&6; }
11513
11514 # So?  What about this header?
11515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516   yes:no: )
11517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521     ac_header_preproc=yes
11522     ;;
11523   no:yes:* )
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11527 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11531 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536     ( cat <<\_ASBOX
11537 ## ----------------------------------- ##
11538 ## Report this to llvmbugs@cs.uiuc.edu ##
11539 ## ----------------------------------- ##
11540 _ASBOX
11541      ) | sed "s/^/$as_me: WARNING:     /" >&2
11542     ;;
11543 esac
11544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547   echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549   eval "$as_ac_Header=\$ac_header_preproc"
11550 fi
11551 ac_res=`eval echo '${'$as_ac_Header'}'`
11552                { echo "$as_me:$LINENO: result: $ac_res" >&5
11553 echo "${ECHO_T}$ac_res" >&6; }
11554
11555 fi
11556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11557   cat >>confdefs.h <<_ACEOF
11558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11559 _ACEOF
11560  break
11561 fi
11562
11563 done
11564
11565
11566
11567
11568 for ac_func in strchr index
11569 do
11570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576   cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11584 #define $ac_func innocuous_$ac_func
11585
11586 /* System header to define __stub macros and hopefully few prototypes,
11587     which can conflict with char $ac_func (); below.
11588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11589     <limits.h> exists even on freestanding compilers.  */
11590
11591 #ifdef __STDC__
11592 # include <limits.h>
11593 #else
11594 # include <assert.h>
11595 #endif
11596
11597 #undef $ac_func
11598
11599 /* Override any GCC internal prototype to avoid an error.
11600    Use char because int might match the return type of a GCC
11601    builtin and then its argument prototype would still apply.  */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 char $ac_func ();
11606 /* The GNU C library defines this for functions which it implements
11607     to always fail with ENOSYS.  Some functions are actually named
11608     something starting with __ and the normal name is an alias.  */
11609 #if defined __stub_$ac_func || defined __stub___$ac_func
11610 choke me
11611 #endif
11612
11613 int
11614 main ()
11615 {
11616 return $ac_func ();
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625   *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628   (eval "$ac_link") 2>conftest.er1
11629   ac_status=$?
11630   grep -v '^ *+' conftest.er1 >conftest.err
11631   rm -f conftest.er1
11632   cat conftest.err >&5
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); } &&
11635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11636   { (case "(($ac_try" in
11637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638   *) ac_try_echo=$ac_try;;
11639 esac
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641   (eval "$ac_try") 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; } &&
11645          { ac_try='test -s conftest$ac_exeext'
11646   { (case "(($ac_try" in
11647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648   *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651   (eval "$ac_try") 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); }; }; then
11655   eval "$as_ac_var=yes"
11656 else
11657   echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11659
11660         eval "$as_ac_var=no"
11661 fi
11662
11663 rm -f core conftest.err conftest.$ac_objext \
11664       conftest$ac_exeext conftest.$ac_ext
11665 fi
11666 ac_res=`eval echo '${'$as_ac_var'}'`
11667                { echo "$as_me:$LINENO: result: $ac_res" >&5
11668 echo "${ECHO_T}$ac_res" >&6; }
11669 if test `eval echo '${'$as_ac_var'}'` = yes; then
11670   cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672 _ACEOF
11673  break
11674 fi
11675 done
11676
11677
11678
11679 for ac_func in strrchr rindex
11680 do
11681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11695 #define $ac_func innocuous_$ac_func
11696
11697 /* System header to define __stub macros and hopefully few prototypes,
11698     which can conflict with char $ac_func (); below.
11699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700     <limits.h> exists even on freestanding compilers.  */
11701
11702 #ifdef __STDC__
11703 # include <limits.h>
11704 #else
11705 # include <assert.h>
11706 #endif
11707
11708 #undef $ac_func
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711    Use char because int might match the return type of a GCC
11712    builtin and then its argument prototype would still apply.  */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char $ac_func ();
11717 /* The GNU C library defines this for functions which it implements
11718     to always fail with ENOSYS.  Some functions are actually named
11719     something starting with __ and the normal name is an alias.  */
11720 #if defined __stub_$ac_func || defined __stub___$ac_func
11721 choke me
11722 #endif
11723
11724 int
11725 main ()
11726 {
11727 return $ac_func ();
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739   (eval "$ac_link") 2>conftest.er1
11740   ac_status=$?
11741   grep -v '^ *+' conftest.er1 >conftest.err
11742   rm -f conftest.er1
11743   cat conftest.err >&5
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); } &&
11746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11747   { (case "(($ac_try" in
11748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749   *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752   (eval "$ac_try") 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; } &&
11756          { ac_try='test -s conftest$ac_exeext'
11757   { (case "(($ac_try" in
11758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759   *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762   (eval "$ac_try") 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   eval "$as_ac_var=yes"
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771         eval "$as_ac_var=no"
11772 fi
11773
11774 rm -f core conftest.err conftest.$ac_objext \
11775       conftest$ac_exeext conftest.$ac_ext
11776 fi
11777 ac_res=`eval echo '${'$as_ac_var'}'`
11778                { echo "$as_me:$LINENO: result: $ac_res" >&5
11779 echo "${ECHO_T}$ac_res" >&6; }
11780 if test `eval echo '${'$as_ac_var'}'` = yes; then
11781   cat >>confdefs.h <<_ACEOF
11782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783 _ACEOF
11784  break
11785 fi
11786 done
11787
11788
11789
11790 for ac_func in memcpy bcopy
11791 do
11792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h.  */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h.  */
11804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11806 #define $ac_func innocuous_$ac_func
11807
11808 /* System header to define __stub macros and hopefully few prototypes,
11809     which can conflict with char $ac_func (); below.
11810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811     <limits.h> exists even on freestanding compilers.  */
11812
11813 #ifdef __STDC__
11814 # include <limits.h>
11815 #else
11816 # include <assert.h>
11817 #endif
11818
11819 #undef $ac_func
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822    Use char because int might match the return type of a GCC
11823    builtin and then its argument prototype would still apply.  */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char $ac_func ();
11828 /* The GNU C library defines this for functions which it implements
11829     to always fail with ENOSYS.  Some functions are actually named
11830     something starting with __ and the normal name is an alias.  */
11831 #if defined __stub_$ac_func || defined __stub___$ac_func
11832 choke me
11833 #endif
11834
11835 int
11836 main ()
11837 {
11838 return $ac_func ();
11839   ;
11840   return 0;
11841 }
11842 _ACEOF
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (ac_try="$ac_link"
11845 case "(($ac_try" in
11846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847   *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850   (eval "$ac_link") 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11858   { (case "(($ac_try" in
11859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860   *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863   (eval "$ac_try") 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; } &&
11867          { ac_try='test -s conftest$ac_exeext'
11868   { (case "(($ac_try" in
11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870   *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873   (eval "$ac_try") 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   eval "$as_ac_var=yes"
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882         eval "$as_ac_var=no"
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext \
11886       conftest$ac_exeext conftest.$ac_ext
11887 fi
11888 ac_res=`eval echo '${'$as_ac_var'}'`
11889                { echo "$as_me:$LINENO: result: $ac_res" >&5
11890 echo "${ECHO_T}$ac_res" >&6; }
11891 if test `eval echo '${'$as_ac_var'}'` = yes; then
11892   cat >>confdefs.h <<_ACEOF
11893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11894 _ACEOF
11895  break
11896 fi
11897 done
11898
11899
11900
11901 for ac_func in memmove strcmp
11902 do
11903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11907   echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909   cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11917 #define $ac_func innocuous_$ac_func
11918
11919 /* System header to define __stub macros and hopefully few prototypes,
11920     which can conflict with char $ac_func (); below.
11921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922     <limits.h> exists even on freestanding compilers.  */
11923
11924 #ifdef __STDC__
11925 # include <limits.h>
11926 #else
11927 # include <assert.h>
11928 #endif
11929
11930 #undef $ac_func
11931
11932 /* Override any GCC internal prototype to avoid an error.
11933    Use char because int might match the return type of a GCC
11934    builtin and then its argument prototype would still apply.  */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 char $ac_func ();
11939 /* The GNU C library defines this for functions which it implements
11940     to always fail with ENOSYS.  Some functions are actually named
11941     something starting with __ and the normal name is an alias.  */
11942 #if defined __stub_$ac_func || defined __stub___$ac_func
11943 choke me
11944 #endif
11945
11946 int
11947 main ()
11948 {
11949 return $ac_func ();
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (ac_try="$ac_link"
11956 case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_link") 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969   { (case "(($ac_try" in
11970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971   *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974   (eval "$ac_try") 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest$ac_exeext'
11979   { (case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984   (eval "$ac_try") 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; }; then
11988   eval "$as_ac_var=yes"
11989 else
11990   echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993         eval "$as_ac_var=no"
11994 fi
11995
11996 rm -f core conftest.err conftest.$ac_objext \
11997       conftest$ac_exeext conftest.$ac_ext
11998 fi
11999 ac_res=`eval echo '${'$as_ac_var'}'`
12000                { echo "$as_me:$LINENO: result: $ac_res" >&5
12001 echo "${ECHO_T}$ac_res" >&6; }
12002 if test `eval echo '${'$as_ac_var'}'` = yes; then
12003   cat >>confdefs.h <<_ACEOF
12004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005 _ACEOF
12006
12007 fi
12008 done
12009
12010
12011
12012
12013 for ac_func in closedir opendir readdir
12014 do
12015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021   cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h.  */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h.  */
12027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12029 #define $ac_func innocuous_$ac_func
12030
12031 /* System header to define __stub macros and hopefully few prototypes,
12032     which can conflict with char $ac_func (); below.
12033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034     <limits.h> exists even on freestanding compilers.  */
12035
12036 #ifdef __STDC__
12037 # include <limits.h>
12038 #else
12039 # include <assert.h>
12040 #endif
12041
12042 #undef $ac_func
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045    Use char because int might match the return type of a GCC
12046    builtin and then its argument prototype would still apply.  */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char $ac_func ();
12051 /* The GNU C library defines this for functions which it implements
12052     to always fail with ENOSYS.  Some functions are actually named
12053     something starting with __ and the normal name is an alias.  */
12054 #if defined __stub_$ac_func || defined __stub___$ac_func
12055 choke me
12056 #endif
12057
12058 int
12059 main ()
12060 {
12061 return $ac_func ();
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (ac_try="$ac_link"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_link") 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081   { (case "(($ac_try" in
12082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083   *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086   (eval "$ac_try") 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (case "(($ac_try" in
12092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093   *) ac_try_echo=$ac_try;;
12094 esac
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096   (eval "$ac_try") 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); }; }; then
12100   eval "$as_ac_var=yes"
12101 else
12102   echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105         eval "$as_ac_var=no"
12106 fi
12107
12108 rm -f core conftest.err conftest.$ac_objext \
12109       conftest$ac_exeext conftest.$ac_ext
12110 fi
12111 ac_res=`eval echo '${'$as_ac_var'}'`
12112                { echo "$as_me:$LINENO: result: $ac_res" >&5
12113 echo "${ECHO_T}$ac_res" >&6; }
12114 if test `eval echo '${'$as_ac_var'}'` = yes; then
12115   cat >>confdefs.h <<_ACEOF
12116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12117 _ACEOF
12118
12119 fi
12120 done
12121
12122
12123
12124 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12125 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12126
12127 ICC=no
12128 IXX=no
12129 case $CC in
12130   icc*|icpc*)
12131     ICC=yes
12132     IXX=yes
12133     ;;
12134    *)
12135     ;;
12136 esac
12137
12138 if test "$GCC" != "yes" && test "$ICC" != "yes"
12139 then
12140   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12141 echo "$as_me: error: gcc|icc required but not found" >&2;}
12142    { (exit 1); exit 1; }; }
12143 fi
12144
12145 if test "$GXX" != "yes" && test "$IXX" != "yes"
12146 then
12147   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12148 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12149    { (exit 1); exit 1; }; }
12150 fi
12151
12152 if test "$GCC" = "yes"
12153 then
12154   cat >conftest.$ac_ext <<_ACEOF
12155 #if !defined(__GNUC__) || __GNUC__ < 3
12156 #error Unsupported GCC version
12157 #endif
12158
12159 _ACEOF
12160 rm -f conftest.$ac_objext
12161 if { (ac_try="$ac_compile"
12162 case "(($ac_try" in
12163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164   *) ac_try_echo=$ac_try;;
12165 esac
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167   (eval "$ac_compile") 2>conftest.er1
12168   ac_status=$?
12169   grep -v '^ *+' conftest.er1 >conftest.err
12170   rm -f conftest.er1
12171   cat conftest.err >&5
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); } &&
12174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12175   { (case "(($ac_try" in
12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177   *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180   (eval "$ac_try") 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; } &&
12184          { ac_try='test -s conftest.$ac_objext'
12185   { (case "(($ac_try" in
12186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187   *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190   (eval "$ac_try") 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   :
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12200 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12201    { (exit 1); exit 1; }; }
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206
12207 if test -z "$llvm_cv_gnu_make_command"
12208 then
12209   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12210 echo "$as_me: error: GNU Make required but not found" >&2;}
12211    { (exit 1); exit 1; }; }
12212 fi
12213
12214 { echo "$as_me:$LINENO: result: ok" >&5
12215 echo "${ECHO_T}ok" >&6; }
12216
12217 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12218 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12219 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12220
12221 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12222
12223 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12224 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12225
12226
12227
12228 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12229 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12230 if test "${ac_cv_lib_m_sin+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lm  $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243    Use char because int might match the return type of a GCC
12244    builtin and then its argument prototype would still apply.  */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char sin ();
12249 int
12250 main ()
12251 {
12252 return sin ();
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261   *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264   (eval "$ac_link") 2>conftest.er1
12265   ac_status=$?
12266   grep -v '^ *+' conftest.er1 >conftest.err
12267   rm -f conftest.er1
12268   cat conftest.err >&5
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); } &&
12271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12272   { (case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_try") 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; } &&
12281          { ac_try='test -s conftest$ac_exeext'
12282   { (case "(($ac_try" in
12283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284   *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287   (eval "$ac_try") 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; }; then
12291   ac_cv_lib_m_sin=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_lib_m_sin=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext \
12300       conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12304 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12305 if test $ac_cv_lib_m_sin = yes; then
12306   cat >>confdefs.h <<_ACEOF
12307 #define HAVE_LIBM 1
12308 _ACEOF
12309
12310   LIBS="-lm $LIBS"
12311
12312 fi
12313
12314 if test "$llvm_cv_os_type" = "MingW" ; then
12315
12316 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12317 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12318 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12319   echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321   ac_check_lib_save_LIBS=$LIBS
12322 LIBS="-limagehlp  $LIBS"
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329
12330
12331 int
12332 main ()
12333 {
12334 return main ();
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (ac_try="$ac_link"
12341 case "(($ac_try" in
12342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343   *) ac_try_echo=$ac_try;;
12344 esac
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346   (eval "$ac_link") 2>conftest.er1
12347   ac_status=$?
12348   grep -v '^ *+' conftest.er1 >conftest.err
12349   rm -f conftest.er1
12350   cat conftest.err >&5
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); } &&
12353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12354   { (case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_try") 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; } &&
12363          { ac_try='test -s conftest$ac_exeext'
12364   { (case "(($ac_try" in
12365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366   *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369   (eval "$ac_try") 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; }; then
12373   ac_cv_lib_imagehlp_main=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378         ac_cv_lib_imagehlp_main=no
12379 fi
12380
12381 rm -f core conftest.err conftest.$ac_objext \
12382       conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12384 fi
12385 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12386 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12387 if test $ac_cv_lib_imagehlp_main = yes; then
12388   cat >>confdefs.h <<_ACEOF
12389 #define HAVE_LIBIMAGEHLP 1
12390 _ACEOF
12391
12392   LIBS="-limagehlp $LIBS"
12393
12394 fi
12395
12396
12397 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12398 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12399 if test "${ac_cv_lib_psapi_main+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-lpsapi  $LIBS"
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410
12411
12412 int
12413 main ()
12414 {
12415 return main ();
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_link") 2>conftest.er1
12428   ac_status=$?
12429   grep -v '^ *+' conftest.er1 >conftest.err
12430   rm -f conftest.er1
12431   cat conftest.err >&5
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } &&
12434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435   { (case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_try") 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; } &&
12444          { ac_try='test -s conftest$ac_exeext'
12445   { (case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_try") 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   ac_cv_lib_psapi_main=yes
12455 else
12456   echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459         ac_cv_lib_psapi_main=no
12460 fi
12461
12462 rm -f core conftest.err conftest.$ac_objext \
12463       conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12465 fi
12466 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12467 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12468 if test $ac_cv_lib_psapi_main = yes; then
12469   cat >>confdefs.h <<_ACEOF
12470 #define HAVE_LIBPSAPI 1
12471 _ACEOF
12472
12473   LIBS="-lpsapi $LIBS"
12474
12475 fi
12476
12477 fi
12478
12479 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12480 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12481 if test "${ac_cv_search_dlopen+set}" = set; then
12482   echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484   ac_func_search_save_LIBS=$LIBS
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h.  */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h.  */
12491
12492 /* Override any GCC internal prototype to avoid an error.
12493    Use char because int might match the return type of a GCC
12494    builtin and then its argument prototype would still apply.  */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 char dlopen ();
12499 int
12500 main ()
12501 {
12502 return dlopen ();
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 for ac_lib in '' dl; do
12508   if test -z "$ac_lib"; then
12509     ac_res="none required"
12510   else
12511     ac_res=-l$ac_lib
12512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12513   fi
12514   rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521   (eval "$ac_link") 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529   { (case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_try") 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; } &&
12538          { ac_try='test -s conftest$ac_exeext'
12539   { (case "(($ac_try" in
12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541   *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544   (eval "$ac_try") 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   ac_cv_search_dlopen=$ac_res
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553
12554 fi
12555
12556 rm -f core conftest.err conftest.$ac_objext \
12557       conftest$ac_exeext
12558   if test "${ac_cv_search_dlopen+set}" = set; then
12559   break
12560 fi
12561 done
12562 if test "${ac_cv_search_dlopen+set}" = set; then
12563   :
12564 else
12565   ac_cv_search_dlopen=no
12566 fi
12567 rm conftest.$ac_ext
12568 LIBS=$ac_func_search_save_LIBS
12569 fi
12570 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12571 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12572 ac_res=$ac_cv_search_dlopen
12573 if test "$ac_res" != no; then
12574   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12575
12576 cat >>confdefs.h <<\_ACEOF
12577 #define HAVE_DLOPEN 1
12578 _ACEOF
12579
12580 else
12581   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12582 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12583 fi
12584
12585
12586 if test "$llvm_cv_enable_libffi" = "yes" ; then
12587   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12588 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12589 if test "${ac_cv_search_ffi_call+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   ac_func_search_save_LIBS=$LIBS
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601    Use char because int might match the return type of a GCC
12602    builtin and then its argument prototype would still apply.  */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char ffi_call ();
12607 int
12608 main ()
12609 {
12610 return ffi_call ();
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 for ac_lib in '' ffi; do
12616   if test -z "$ac_lib"; then
12617     ac_res="none required"
12618   else
12619     ac_res=-l$ac_lib
12620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12621   fi
12622   rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629   (eval "$ac_link") 2>conftest.er1
12630   ac_status=$?
12631   grep -v '^ *+' conftest.er1 >conftest.err
12632   rm -f conftest.er1
12633   cat conftest.err >&5
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } &&
12636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12637   { (case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_try") 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; } &&
12646          { ac_try='test -s conftest$ac_exeext'
12647   { (case "(($ac_try" in
12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649   *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652   (eval "$ac_try") 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; }; then
12656   ac_cv_search_ffi_call=$ac_res
12657 else
12658   echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661
12662 fi
12663
12664 rm -f core conftest.err conftest.$ac_objext \
12665       conftest$ac_exeext
12666   if test "${ac_cv_search_ffi_call+set}" = set; then
12667   break
12668 fi
12669 done
12670 if test "${ac_cv_search_ffi_call+set}" = set; then
12671   :
12672 else
12673   ac_cv_search_ffi_call=no
12674 fi
12675 rm conftest.$ac_ext
12676 LIBS=$ac_func_search_save_LIBS
12677 fi
12678 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12679 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12680 ac_res=$ac_cv_search_ffi_call
12681 if test "$ac_res" != no; then
12682   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_FFI_CALL 1
12686 _ACEOF
12687
12688 else
12689   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12690 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12691    { (exit 1); exit 1; }; }
12692 fi
12693
12694 fi
12695
12696 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12697 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12698 if test "${ac_cv_search_mallinfo+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701   ac_func_search_save_LIBS=$LIBS
12702 cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708
12709 /* Override any GCC internal prototype to avoid an error.
12710    Use char because int might match the return type of a GCC
12711    builtin and then its argument prototype would still apply.  */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char mallinfo ();
12716 int
12717 main ()
12718 {
12719 return mallinfo ();
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 for ac_lib in '' malloc; do
12725   if test -z "$ac_lib"; then
12726     ac_res="none required"
12727   else
12728     ac_res=-l$ac_lib
12729     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12730   fi
12731   rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735   *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738   (eval "$ac_link") 2>conftest.er1
12739   ac_status=$?
12740   grep -v '^ *+' conftest.er1 >conftest.err
12741   rm -f conftest.er1
12742   cat conftest.err >&5
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } &&
12745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746   { (case "(($ac_try" in
12747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748   *) ac_try_echo=$ac_try;;
12749 esac
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751   (eval "$ac_try") 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; } &&
12755          { ac_try='test -s conftest$ac_exeext'
12756   { (case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761   (eval "$ac_try") 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }; }; then
12765   ac_cv_search_mallinfo=$ac_res
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770
12771 fi
12772
12773 rm -f core conftest.err conftest.$ac_objext \
12774       conftest$ac_exeext
12775   if test "${ac_cv_search_mallinfo+set}" = set; then
12776   break
12777 fi
12778 done
12779 if test "${ac_cv_search_mallinfo+set}" = set; then
12780   :
12781 else
12782   ac_cv_search_mallinfo=no
12783 fi
12784 rm conftest.$ac_ext
12785 LIBS=$ac_func_search_save_LIBS
12786 fi
12787 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12788 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12789 ac_res=$ac_cv_search_mallinfo
12790 if test "$ac_res" != no; then
12791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12792
12793 cat >>confdefs.h <<\_ACEOF
12794 #define HAVE_MALLINFO 1
12795 _ACEOF
12796
12797 fi
12798
12799
12800 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12801
12802 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12803 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12804 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lpthread  $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h.  */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h.  */
12815
12816 /* Override any GCC internal prototype to avoid an error.
12817    Use char because int might match the return type of a GCC
12818    builtin and then its argument prototype would still apply.  */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 char pthread_mutex_init ();
12823 int
12824 main ()
12825 {
12826 return pthread_mutex_init ();
12827   ;
12828   return 0;
12829 }
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835   *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838   (eval "$ac_link") 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12846   { (case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851   (eval "$ac_try") 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; } &&
12855          { ac_try='test -s conftest$ac_exeext'
12856   { (case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_try") 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   ac_cv_lib_pthread_pthread_mutex_init=yes
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870         ac_cv_lib_pthread_pthread_mutex_init=no
12871 fi
12872
12873 rm -f core conftest.err conftest.$ac_objext \
12874       conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12876 fi
12877 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12879 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12880   cat >>confdefs.h <<_ACEOF
12881 #define HAVE_LIBPTHREAD 1
12882 _ACEOF
12883
12884   LIBS="-lpthread $LIBS"
12885
12886 fi
12887
12888   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12889 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12890 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12891   echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893   ac_func_search_save_LIBS=$LIBS
12894 cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900
12901 /* Override any GCC internal prototype to avoid an error.
12902    Use char because int might match the return type of a GCC
12903    builtin and then its argument prototype would still apply.  */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 char pthread_mutex_lock ();
12908 int
12909 main ()
12910 {
12911 return pthread_mutex_lock ();
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 for ac_lib in '' pthread; do
12917   if test -z "$ac_lib"; then
12918     ac_res="none required"
12919   else
12920     ac_res=-l$ac_lib
12921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12922   fi
12923   rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (ac_try="$ac_link"
12925 case "(($ac_try" in
12926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927   *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930   (eval "$ac_link") 2>conftest.er1
12931   ac_status=$?
12932   grep -v '^ *+' conftest.er1 >conftest.err
12933   rm -f conftest.er1
12934   cat conftest.err >&5
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); } &&
12937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12938   { (case "(($ac_try" in
12939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940   *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943   (eval "$ac_try") 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; } &&
12947          { ac_try='test -s conftest$ac_exeext'
12948   { (case "(($ac_try" in
12949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950   *) ac_try_echo=$ac_try;;
12951 esac
12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953   (eval "$ac_try") 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   ac_cv_search_pthread_mutex_lock=$ac_res
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12961
12962
12963 fi
12964
12965 rm -f core conftest.err conftest.$ac_objext \
12966       conftest$ac_exeext
12967   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12968   break
12969 fi
12970 done
12971 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12972   :
12973 else
12974   ac_cv_search_pthread_mutex_lock=no
12975 fi
12976 rm conftest.$ac_ext
12977 LIBS=$ac_func_search_save_LIBS
12978 fi
12979 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12980 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12981 ac_res=$ac_cv_search_pthread_mutex_lock
12982 if test "$ac_res" != no; then
12983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12984
12985 cat >>confdefs.h <<\_ACEOF
12986 #define HAVE_PTHREAD_MUTEX_LOCK 1
12987 _ACEOF
12988
12989 fi
12990
12991   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12992 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12993 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12994   echo $ECHO_N "(cached) $ECHO_C" >&6
12995 else
12996   ac_func_search_save_LIBS=$LIBS
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h.  */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h.  */
13003
13004 /* Override any GCC internal prototype to avoid an error.
13005    Use char because int might match the return type of a GCC
13006    builtin and then its argument prototype would still apply.  */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 char pthread_rwlock_init ();
13011 int
13012 main ()
13013 {
13014 return pthread_rwlock_init ();
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 for ac_lib in '' pthread; do
13020   if test -z "$ac_lib"; then
13021     ac_res="none required"
13022   else
13023     ac_res=-l$ac_lib
13024     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13025   fi
13026   rm -f conftest.$ac_objext conftest$ac_exeext
13027 if { (ac_try="$ac_link"
13028 case "(($ac_try" in
13029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030   *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033   (eval "$ac_link") 2>conftest.er1
13034   ac_status=$?
13035   grep -v '^ *+' conftest.er1 >conftest.err
13036   rm -f conftest.er1
13037   cat conftest.err >&5
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); } &&
13040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13041   { (case "(($ac_try" in
13042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043   *) ac_try_echo=$ac_try;;
13044 esac
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046   (eval "$ac_try") 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); }; } &&
13050          { ac_try='test -s conftest$ac_exeext'
13051   { (case "(($ac_try" in
13052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053   *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056   (eval "$ac_try") 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; }; then
13060   ac_cv_search_pthread_rwlock_init=$ac_res
13061 else
13062   echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065
13066 fi
13067
13068 rm -f core conftest.err conftest.$ac_objext \
13069       conftest$ac_exeext
13070   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13071   break
13072 fi
13073 done
13074 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13075   :
13076 else
13077   ac_cv_search_pthread_rwlock_init=no
13078 fi
13079 rm conftest.$ac_ext
13080 LIBS=$ac_func_search_save_LIBS
13081 fi
13082 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13083 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13084 ac_res=$ac_cv_search_pthread_rwlock_init
13085 if test "$ac_res" != no; then
13086   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13087
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_PTHREAD_RWLOCK_INIT 1
13090 _ACEOF
13091
13092 fi
13093
13094   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13095 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13096 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   ac_func_search_save_LIBS=$LIBS
13100 cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h.  */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h.  */
13106
13107 /* Override any GCC internal prototype to avoid an error.
13108    Use char because int might match the return type of a GCC
13109    builtin and then its argument prototype would still apply.  */
13110 #ifdef __cplusplus
13111 extern "C"
13112 #endif
13113 char pthread_getspecific ();
13114 int
13115 main ()
13116 {
13117 return pthread_getspecific ();
13118   ;
13119   return 0;
13120 }
13121 _ACEOF
13122 for ac_lib in '' pthread; do
13123   if test -z "$ac_lib"; then
13124     ac_res="none required"
13125   else
13126     ac_res=-l$ac_lib
13127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13128   fi
13129   rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (ac_try="$ac_link"
13131 case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_link") 2>conftest.er1
13137   ac_status=$?
13138   grep -v '^ *+' conftest.er1 >conftest.err
13139   rm -f conftest.er1
13140   cat conftest.err >&5
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); } &&
13143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13144   { (case "(($ac_try" in
13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146   *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149   (eval "$ac_try") 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; } &&
13153          { ac_try='test -s conftest$ac_exeext'
13154   { (case "(($ac_try" in
13155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156   *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159   (eval "$ac_try") 2>&5
13160   ac_status=$?
13161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162   (exit $ac_status); }; }; then
13163   ac_cv_search_pthread_getspecific=$ac_res
13164 else
13165   echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13167
13168
13169 fi
13170
13171 rm -f core conftest.err conftest.$ac_objext \
13172       conftest$ac_exeext
13173   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13174   break
13175 fi
13176 done
13177 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13178   :
13179 else
13180   ac_cv_search_pthread_getspecific=no
13181 fi
13182 rm conftest.$ac_ext
13183 LIBS=$ac_func_search_save_LIBS
13184 fi
13185 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13186 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13187 ac_res=$ac_cv_search_pthread_getspecific
13188 if test "$ac_res" != no; then
13189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_PTHREAD_GETSPECIFIC 1
13193 _ACEOF
13194
13195 fi
13196
13197 fi
13198
13199
13200 # Check whether --with-udis86 was given.
13201 if test "${with_udis86+set}" = set; then
13202   withval=$with_udis86;
13203       USE_UDIS86=1
13204
13205       case "$withval" in
13206         /usr/lib|yes) ;;
13207         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13208       esac
13209
13210 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13211 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13212 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215   ac_check_lib_save_LIBS=$LIBS
13216 LIBS="-ludis86  $LIBS"
13217 cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h.  */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h.  */
13223
13224 /* Override any GCC internal prototype to avoid an error.
13225    Use char because int might match the return type of a GCC
13226    builtin and then its argument prototype would still apply.  */
13227 #ifdef __cplusplus
13228 extern "C"
13229 #endif
13230 char ud_init ();
13231 int
13232 main ()
13233 {
13234 return ud_init ();
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243   *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246   (eval "$ac_link") 2>conftest.er1
13247   ac_status=$?
13248   grep -v '^ *+' conftest.er1 >conftest.err
13249   rm -f conftest.er1
13250   cat conftest.err >&5
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); } &&
13253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13254   { (case "(($ac_try" in
13255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256   *) ac_try_echo=$ac_try;;
13257 esac
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259   (eval "$ac_try") 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); }; } &&
13263          { ac_try='test -s conftest$ac_exeext'
13264   { (case "(($ac_try" in
13265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266   *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269   (eval "$ac_try") 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; }; then
13273   ac_cv_lib_udis86_ud_init=yes
13274 else
13275   echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278         ac_cv_lib_udis86_ud_init=no
13279 fi
13280
13281 rm -f core conftest.err conftest.$ac_objext \
13282       conftest$ac_exeext conftest.$ac_ext
13283 LIBS=$ac_check_lib_save_LIBS
13284 fi
13285 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13286 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13287 if test $ac_cv_lib_udis86_ud_init = yes; then
13288   cat >>confdefs.h <<_ACEOF
13289 #define HAVE_LIBUDIS86 1
13290 _ACEOF
13291
13292   LIBS="-ludis86 $LIBS"
13293
13294 else
13295
13296         echo "Error! You need to have libudis86 around."
13297         exit -1
13298
13299 fi
13300
13301
13302 else
13303   USE_UDIS86=0
13304
13305 fi
13306
13307
13308 cat >>confdefs.h <<_ACEOF
13309 #define USE_UDIS86 $USE_UDIS86
13310 _ACEOF
13311
13312
13313
13314 # Check whether --with-oprofile was given.
13315 if test "${with_oprofile+set}" = set; then
13316   withval=$with_oprofile;
13317       USE_OPROFILE=1
13318
13319       case "$withval" in
13320         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13321         no) llvm_cv_oppath=
13322             USE_OPROFILE=0
13323  ;;
13324         *) llvm_cv_oppath="${withval}/lib/oprofile"
13325            CPPFLAGS="-I${withval}/include";;
13326       esac
13327       if test -n "$llvm_cv_oppath" ; then
13328         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13329                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13330 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13331 if test "${ac_cv_search_bfd_init+set}" = set; then
13332   echo $ECHO_N "(cached) $ECHO_C" >&6
13333 else
13334   ac_func_search_save_LIBS=$LIBS
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h.  */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h.  */
13341
13342 /* Override any GCC internal prototype to avoid an error.
13343    Use char because int might match the return type of a GCC
13344    builtin and then its argument prototype would still apply.  */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 char bfd_init ();
13349 int
13350 main ()
13351 {
13352 return bfd_init ();
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 for ac_lib in '' bfd; do
13358   if test -z "$ac_lib"; then
13359     ac_res="none required"
13360   else
13361     ac_res=-l$ac_lib
13362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13363   fi
13364   rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (ac_try="$ac_link"
13366 case "(($ac_try" in
13367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368   *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371   (eval "$ac_link") 2>conftest.er1
13372   ac_status=$?
13373   grep -v '^ *+' conftest.er1 >conftest.err
13374   rm -f conftest.er1
13375   cat conftest.err >&5
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13379   { (case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384   (eval "$ac_try") 2>&5
13385   ac_status=$?
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); }; } &&
13388          { ac_try='test -s conftest$ac_exeext'
13389   { (case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_try") 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   ac_cv_search_bfd_init=$ac_res
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403
13404 fi
13405
13406 rm -f core conftest.err conftest.$ac_objext \
13407       conftest$ac_exeext
13408   if test "${ac_cv_search_bfd_init+set}" = set; then
13409   break
13410 fi
13411 done
13412 if test "${ac_cv_search_bfd_init+set}" = set; then
13413   :
13414 else
13415   ac_cv_search_bfd_init=no
13416 fi
13417 rm conftest.$ac_ext
13418 LIBS=$ac_func_search_save_LIBS
13419 fi
13420 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13421 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13422 ac_res=$ac_cv_search_bfd_init
13423 if test "$ac_res" != no; then
13424   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13425
13426 fi
13427
13428         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13429 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13430 if test "${ac_cv_search_op_open_agent+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   ac_func_search_save_LIBS=$LIBS
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h.  */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h.  */
13440
13441 /* Override any GCC internal prototype to avoid an error.
13442    Use char because int might match the return type of a GCC
13443    builtin and then its argument prototype would still apply.  */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 char op_open_agent ();
13448 int
13449 main ()
13450 {
13451 return op_open_agent ();
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 for ac_lib in '' opagent; do
13457   if test -z "$ac_lib"; then
13458     ac_res="none required"
13459   else
13460     ac_res=-l$ac_lib
13461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13462   fi
13463   rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (ac_try="$ac_link"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470   (eval "$ac_link") 2>conftest.er1
13471   ac_status=$?
13472   grep -v '^ *+' conftest.er1 >conftest.err
13473   rm -f conftest.er1
13474   cat conftest.err >&5
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); } &&
13477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13478   { (case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_try") 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }; } &&
13487          { ac_try='test -s conftest$ac_exeext'
13488   { (case "(($ac_try" in
13489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490   *) ac_try_echo=$ac_try;;
13491 esac
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493   (eval "$ac_try") 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; }; then
13497   ac_cv_search_op_open_agent=$ac_res
13498 else
13499   echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13501
13502
13503 fi
13504
13505 rm -f core conftest.err conftest.$ac_objext \
13506       conftest$ac_exeext
13507   if test "${ac_cv_search_op_open_agent+set}" = set; then
13508   break
13509 fi
13510 done
13511 if test "${ac_cv_search_op_open_agent+set}" = set; then
13512   :
13513 else
13514   ac_cv_search_op_open_agent=no
13515 fi
13516 rm conftest.$ac_ext
13517 LIBS=$ac_func_search_save_LIBS
13518 fi
13519 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13520 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13521 ac_res=$ac_cv_search_op_open_agent
13522 if test "$ac_res" != no; then
13523   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13524
13525 else
13526
13527           echo "Error! You need to have libopagent around."
13528           exit -1
13529
13530 fi
13531
13532         if test "${ac_cv_header_opagent_h+set}" = set; then
13533   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13534 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13535 if test "${ac_cv_header_opagent_h+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 fi
13538 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13539 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13540 else
13541   # Is the header compilable?
13542 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13543 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h.  */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h.  */
13550 $ac_includes_default
13551 #include <opagent.h>
13552 _ACEOF
13553 rm -f conftest.$ac_objext
13554 if { (ac_try="$ac_compile"
13555 case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_compile") 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13568   { (case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_try") 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; } &&
13577          { ac_try='test -s conftest.$ac_objext'
13578   { (case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583   (eval "$ac_try") 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   ac_header_compiler=yes
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592         ac_header_compiler=no
13593 fi
13594
13595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13597 echo "${ECHO_T}$ac_header_compiler" >&6; }
13598
13599 # Is the header present?
13600 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13601 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608 #include <opagent.h>
13609 _ACEOF
13610 if { (ac_try="$ac_cpp conftest.$ac_ext"
13611 case "(($ac_try" in
13612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613   *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } >/dev/null; then
13623   if test -s conftest.err; then
13624     ac_cpp_err=$ac_c_preproc_warn_flag
13625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13626   else
13627     ac_cpp_err=
13628   fi
13629 else
13630   ac_cpp_err=yes
13631 fi
13632 if test -z "$ac_cpp_err"; then
13633   ac_header_preproc=yes
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638   ac_header_preproc=no
13639 fi
13640
13641 rm -f conftest.err conftest.$ac_ext
13642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13643 echo "${ECHO_T}$ac_header_preproc" >&6; }
13644
13645 # So?  What about this header?
13646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13647   yes:no: )
13648     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13649 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13650     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13651 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13652     ac_header_preproc=yes
13653     ;;
13654   no:yes:* )
13655     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13656 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13657     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13658 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13659     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13660 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13661     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13662 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13663     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13664 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13665     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13666 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13667     ( cat <<\_ASBOX
13668 ## ----------------------------------- ##
13669 ## Report this to llvmbugs@cs.uiuc.edu ##
13670 ## ----------------------------------- ##
13671 _ASBOX
13672      ) | sed "s/^/$as_me: WARNING:     /" >&2
13673     ;;
13674 esac
13675 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13676 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13677 if test "${ac_cv_header_opagent_h+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   ac_cv_header_opagent_h=$ac_header_preproc
13681 fi
13682 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13683 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13684
13685 fi
13686 if test $ac_cv_header_opagent_h = yes; then
13687   :
13688 else
13689
13690           echo "Error! You need to have opagent.h around."
13691           exit -1
13692
13693 fi
13694
13695
13696       fi
13697
13698 else
13699
13700       USE_OPROFILE=0
13701
13702
13703 fi
13704
13705
13706 cat >>confdefs.h <<_ACEOF
13707 #define USE_OPROFILE $USE_OPROFILE
13708 _ACEOF
13709
13710
13711
13712
13713
13714
13715
13716
13717 ac_header_dirent=no
13718 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13719   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13720 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13721 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13723   echo $ECHO_N "(cached) $ECHO_C" >&6
13724 else
13725   cat >conftest.$ac_ext <<_ACEOF
13726 /* confdefs.h.  */
13727 _ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h.  */
13731 #include <sys/types.h>
13732 #include <$ac_hdr>
13733
13734 int
13735 main ()
13736 {
13737 if ((DIR *) 0)
13738 return 0;
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest.$ac_objext
13744 if { (ac_try="$ac_compile"
13745 case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750   (eval "$ac_compile") 2>conftest.er1
13751   ac_status=$?
13752   grep -v '^ *+' conftest.er1 >conftest.err
13753   rm -f conftest.er1
13754   cat conftest.err >&5
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); } &&
13757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758   { (case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763   (eval "$ac_try") 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; } &&
13767          { ac_try='test -s conftest.$ac_objext'
13768   { (case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773   (eval "$ac_try") 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; }; then
13777   eval "$as_ac_Header=yes"
13778 else
13779   echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782         eval "$as_ac_Header=no"
13783 fi
13784
13785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786 fi
13787 ac_res=`eval echo '${'$as_ac_Header'}'`
13788                { echo "$as_me:$LINENO: result: $ac_res" >&5
13789 echo "${ECHO_T}$ac_res" >&6; }
13790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13791   cat >>confdefs.h <<_ACEOF
13792 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13793 _ACEOF
13794
13795 ac_header_dirent=$ac_hdr; break
13796 fi
13797
13798 done
13799 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13800 if test $ac_header_dirent = dirent.h; then
13801   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13803 if test "${ac_cv_search_opendir+set}" = set; then
13804   echo $ECHO_N "(cached) $ECHO_C" >&6
13805 else
13806   ac_func_search_save_LIBS=$LIBS
13807 cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h.  */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h.  */
13813
13814 /* Override any GCC internal prototype to avoid an error.
13815    Use char because int might match the return type of a GCC
13816    builtin and then its argument prototype would still apply.  */
13817 #ifdef __cplusplus
13818 extern "C"
13819 #endif
13820 char opendir ();
13821 int
13822 main ()
13823 {
13824 return opendir ();
13825   ;
13826   return 0;
13827 }
13828 _ACEOF
13829 for ac_lib in '' dir; do
13830   if test -z "$ac_lib"; then
13831     ac_res="none required"
13832   else
13833     ac_res=-l$ac_lib
13834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13835   fi
13836   rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (ac_try="$ac_link"
13838 case "(($ac_try" in
13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840   *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843   (eval "$ac_link") 2>conftest.er1
13844   ac_status=$?
13845   grep -v '^ *+' conftest.er1 >conftest.err
13846   rm -f conftest.er1
13847   cat conftest.err >&5
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); } &&
13850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13851   { (case "(($ac_try" in
13852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853   *) ac_try_echo=$ac_try;;
13854 esac
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856   (eval "$ac_try") 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; } &&
13860          { ac_try='test -s conftest$ac_exeext'
13861   { (case "(($ac_try" in
13862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863   *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866   (eval "$ac_try") 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); }; }; then
13870   ac_cv_search_opendir=$ac_res
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875
13876 fi
13877
13878 rm -f core conftest.err conftest.$ac_objext \
13879       conftest$ac_exeext
13880   if test "${ac_cv_search_opendir+set}" = set; then
13881   break
13882 fi
13883 done
13884 if test "${ac_cv_search_opendir+set}" = set; then
13885   :
13886 else
13887   ac_cv_search_opendir=no
13888 fi
13889 rm conftest.$ac_ext
13890 LIBS=$ac_func_search_save_LIBS
13891 fi
13892 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13893 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13894 ac_res=$ac_cv_search_opendir
13895 if test "$ac_res" != no; then
13896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13897
13898 fi
13899
13900 else
13901   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13903 if test "${ac_cv_search_opendir+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   ac_func_search_save_LIBS=$LIBS
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913
13914 /* Override any GCC internal prototype to avoid an error.
13915    Use char because int might match the return type of a GCC
13916    builtin and then its argument prototype would still apply.  */
13917 #ifdef __cplusplus
13918 extern "C"
13919 #endif
13920 char opendir ();
13921 int
13922 main ()
13923 {
13924 return opendir ();
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 for ac_lib in '' x; do
13930   if test -z "$ac_lib"; then
13931     ac_res="none required"
13932   else
13933     ac_res=-l$ac_lib
13934     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13935   fi
13936   rm -f conftest.$ac_objext conftest$ac_exeext
13937 if { (ac_try="$ac_link"
13938 case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943   (eval "$ac_link") 2>conftest.er1
13944   ac_status=$?
13945   grep -v '^ *+' conftest.er1 >conftest.err
13946   rm -f conftest.er1
13947   cat conftest.err >&5
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); } &&
13950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13951   { (case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_try") 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; } &&
13960          { ac_try='test -s conftest$ac_exeext'
13961   { (case "(($ac_try" in
13962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963   *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966   (eval "$ac_try") 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   ac_cv_search_opendir=$ac_res
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975
13976 fi
13977
13978 rm -f core conftest.err conftest.$ac_objext \
13979       conftest$ac_exeext
13980   if test "${ac_cv_search_opendir+set}" = set; then
13981   break
13982 fi
13983 done
13984 if test "${ac_cv_search_opendir+set}" = set; then
13985   :
13986 else
13987   ac_cv_search_opendir=no
13988 fi
13989 rm conftest.$ac_ext
13990 LIBS=$ac_func_search_save_LIBS
13991 fi
13992 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13993 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13994 ac_res=$ac_cv_search_opendir
13995 if test "$ac_res" != no; then
13996   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13997
13998 fi
13999
14000 fi
14001
14002 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14003 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14004 if test "${ac_cv_header_mmap_anon+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007    ac_ext=c
14008 ac_cpp='$CPP $CPPFLAGS'
14009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14012
14013   cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h.  */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h.  */
14019 #include <sys/mman.h>
14020 #include <unistd.h>
14021 #include <fcntl.h>
14022 int
14023 main ()
14024 {
14025 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_compile") 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045   { (case "(($ac_try" in
14046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047   *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050   (eval "$ac_try") 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; } &&
14054          { ac_try='test -s conftest.$ac_objext'
14055   { (case "(($ac_try" in
14056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057   *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060   (eval "$ac_try") 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; }; then
14064   ac_cv_header_mmap_anon=yes
14065 else
14066   echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069         ac_cv_header_mmap_anon=no
14070 fi
14071
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073   ac_ext=c
14074 ac_cpp='$CPP $CPPFLAGS'
14075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14078
14079
14080 fi
14081 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14082 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14083 if test "$ac_cv_header_mmap_anon" = yes; then
14084
14085 cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_MMAP_ANONYMOUS 1
14087 _ACEOF
14088
14089 fi
14090
14091 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14092 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14093 if test "${ac_cv_header_stat_broken+set}" = set; then
14094   echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096   cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h.  */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h.  */
14102 #include <sys/types.h>
14103 #include <sys/stat.h>
14104
14105 #if defined S_ISBLK && defined S_IFDIR
14106 # if S_ISBLK (S_IFDIR)
14107 You lose.
14108 # endif
14109 #endif
14110
14111 #if defined S_ISBLK && defined S_IFCHR
14112 # if S_ISBLK (S_IFCHR)
14113 You lose.
14114 # endif
14115 #endif
14116
14117 #if defined S_ISLNK && defined S_IFREG
14118 # if S_ISLNK (S_IFREG)
14119 You lose.
14120 # endif
14121 #endif
14122
14123 #if defined S_ISSOCK && defined S_IFREG
14124 # if S_ISSOCK (S_IFREG)
14125 You lose.
14126 # endif
14127 #endif
14128
14129 _ACEOF
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131   $EGREP "You lose" >/dev/null 2>&1; then
14132   ac_cv_header_stat_broken=yes
14133 else
14134   ac_cv_header_stat_broken=no
14135 fi
14136 rm -f conftest*
14137
14138 fi
14139 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14140 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14141 if test $ac_cv_header_stat_broken = yes; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define STAT_MACROS_BROKEN 1
14145 _ACEOF
14146
14147 fi
14148
14149 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14150 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14151 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14152   echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154   cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160 #include <sys/types.h>
14161 #include <sys/wait.h>
14162 #ifndef WEXITSTATUS
14163 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14164 #endif
14165 #ifndef WIFEXITED
14166 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14167 #endif
14168
14169 int
14170 main ()
14171 {
14172   int s;
14173   wait (&s);
14174   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14175   ;
14176   return 0;
14177 }
14178 _ACEOF
14179 rm -f conftest.$ac_objext
14180 if { (ac_try="$ac_compile"
14181 case "(($ac_try" in
14182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183   *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186   (eval "$ac_compile") 2>conftest.er1
14187   ac_status=$?
14188   grep -v '^ *+' conftest.er1 >conftest.err
14189   rm -f conftest.er1
14190   cat conftest.err >&5
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194   { (case "(($ac_try" in
14195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196   *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199   (eval "$ac_try") 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; } &&
14203          { ac_try='test -s conftest.$ac_objext'
14204   { (case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_try") 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; }; then
14213   ac_cv_header_sys_wait_h=yes
14214 else
14215   echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218         ac_cv_header_sys_wait_h=no
14219 fi
14220
14221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 fi
14223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14224 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14225 if test $ac_cv_header_sys_wait_h = yes; then
14226
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_SYS_WAIT_H 1
14229 _ACEOF
14230
14231 fi
14232
14233 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14234 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14235 if test "${ac_cv_header_time+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244 #include <sys/types.h>
14245 #include <sys/time.h>
14246 #include <time.h>
14247
14248 int
14249 main ()
14250 {
14251 if ((struct tm *) 0)
14252 return 0;
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264   (eval "$ac_compile") 2>conftest.er1
14265   ac_status=$?
14266   grep -v '^ *+' conftest.er1 >conftest.err
14267   rm -f conftest.er1
14268   cat conftest.err >&5
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } &&
14271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272   { (case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest.$ac_objext'
14282   { (case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_try") 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }; then
14291   ac_cv_header_time=yes
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296         ac_cv_header_time=no
14297 fi
14298
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 fi
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14302 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14303 if test $ac_cv_header_time = yes; then
14304
14305 cat >>confdefs.h <<\_ACEOF
14306 #define TIME_WITH_SYS_TIME 1
14307 _ACEOF
14308
14309 fi
14310
14311
14312
14313
14314
14315
14316
14317
14318 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14319 do
14320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14325   echo $ECHO_N "(cached) $ECHO_C" >&6
14326 fi
14327 ac_res=`eval echo '${'$as_ac_Header'}'`
14328                { echo "$as_me:$LINENO: result: $ac_res" >&5
14329 echo "${ECHO_T}$ac_res" >&6; }
14330 else
14331   # Is the header compilable?
14332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h.  */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h.  */
14340 $ac_includes_default
14341 #include <$ac_header>
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_compile") 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14358   { (case "(($ac_try" in
14359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360   *) ac_try_echo=$ac_try;;
14361 esac
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363   (eval "$ac_try") 2>&5
14364   ac_status=$?
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); }; } &&
14367          { ac_try='test -s conftest.$ac_objext'
14368   { (case "(($ac_try" in
14369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370   *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373   (eval "$ac_try") 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_header_compiler=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382         ac_header_compiler=no
14383 fi
14384
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14387 echo "${ECHO_T}$ac_header_compiler" >&6; }
14388
14389 # Is the header present?
14390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14392 cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h.  */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h.  */
14398 #include <$ac_header>
14399 _ACEOF
14400 if { (ac_try="$ac_cpp conftest.$ac_ext"
14401 case "(($ac_try" in
14402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403   *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } >/dev/null; then
14413   if test -s conftest.err; then
14414     ac_cpp_err=$ac_c_preproc_warn_flag
14415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14416   else
14417     ac_cpp_err=
14418   fi
14419 else
14420   ac_cpp_err=yes
14421 fi
14422 if test -z "$ac_cpp_err"; then
14423   ac_header_preproc=yes
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428   ac_header_preproc=no
14429 fi
14430
14431 rm -f conftest.err conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6; }
14434
14435 # So?  What about this header?
14436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437   yes:no: )
14438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14442     ac_header_preproc=yes
14443     ;;
14444   no:yes:* )
14445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14457     ( cat <<\_ASBOX
14458 ## ----------------------------------- ##
14459 ## Report this to llvmbugs@cs.uiuc.edu ##
14460 ## ----------------------------------- ##
14461 _ASBOX
14462      ) | sed "s/^/$as_me: WARNING:     /" >&2
14463     ;;
14464 esac
14465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   eval "$as_ac_Header=\$ac_header_preproc"
14471 fi
14472 ac_res=`eval echo '${'$as_ac_Header'}'`
14473                { echo "$as_me:$LINENO: result: $ac_res" >&5
14474 echo "${ECHO_T}$ac_res" >&6; }
14475
14476 fi
14477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14478   cat >>confdefs.h <<_ACEOF
14479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14480 _ACEOF
14481
14482 fi
14483
14484 done
14485
14486
14487
14488
14489
14490
14491
14492 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14493 do
14494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 fi
14501 ac_res=`eval echo '${'$as_ac_Header'}'`
14502                { echo "$as_me:$LINENO: result: $ac_res" >&5
14503 echo "${ECHO_T}$ac_res" >&6; }
14504 else
14505   # Is the header compilable?
14506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14508 cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 $ac_includes_default
14515 #include <$ac_header>
14516 _ACEOF
14517 rm -f conftest.$ac_objext
14518 if { (ac_try="$ac_compile"
14519 case "(($ac_try" in
14520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521   *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524   (eval "$ac_compile") 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532   { (case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_try") 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; } &&
14541          { ac_try='test -s conftest.$ac_objext'
14542   { (case "(($ac_try" in
14543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544   *) ac_try_echo=$ac_try;;
14545 esac
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547   (eval "$ac_try") 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551   ac_header_compiler=yes
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556         ac_header_compiler=no
14557 fi
14558
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14561 echo "${ECHO_T}$ac_header_compiler" >&6; }
14562
14563 # Is the header present?
14564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14566 cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572 #include <$ac_header>
14573 _ACEOF
14574 if { (ac_try="$ac_cpp conftest.$ac_ext"
14575 case "(($ac_try" in
14576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577   *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } >/dev/null; then
14587   if test -s conftest.err; then
14588     ac_cpp_err=$ac_c_preproc_warn_flag
14589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14590   else
14591     ac_cpp_err=
14592   fi
14593 else
14594   ac_cpp_err=yes
14595 fi
14596 if test -z "$ac_cpp_err"; then
14597   ac_header_preproc=yes
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602   ac_header_preproc=no
14603 fi
14604
14605 rm -f conftest.err conftest.$ac_ext
14606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14607 echo "${ECHO_T}$ac_header_preproc" >&6; }
14608
14609 # So?  What about this header?
14610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14611   yes:no: )
14612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14616     ac_header_preproc=yes
14617     ;;
14618   no:yes:* )
14619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14631     ( cat <<\_ASBOX
14632 ## ----------------------------------- ##
14633 ## Report this to llvmbugs@cs.uiuc.edu ##
14634 ## ----------------------------------- ##
14635 _ASBOX
14636      ) | sed "s/^/$as_me: WARNING:     /" >&2
14637     ;;
14638 esac
14639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   eval "$as_ac_Header=\$ac_header_preproc"
14645 fi
14646 ac_res=`eval echo '${'$as_ac_Header'}'`
14647                { echo "$as_me:$LINENO: result: $ac_res" >&5
14648 echo "${ECHO_T}$ac_res" >&6; }
14649
14650 fi
14651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14652   cat >>confdefs.h <<_ACEOF
14653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14654 _ACEOF
14655
14656 fi
14657
14658 done
14659
14660
14661
14662 for ac_header in utime.h windows.h
14663 do
14664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 fi
14671 ac_res=`eval echo '${'$as_ac_Header'}'`
14672                { echo "$as_me:$LINENO: result: $ac_res" >&5
14673 echo "${ECHO_T}$ac_res" >&6; }
14674 else
14675   # Is the header compilable?
14676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 $ac_includes_default
14685 #include <$ac_header>
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691   *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694   (eval "$ac_compile") 2>conftest.er1
14695   ac_status=$?
14696   grep -v '^ *+' conftest.er1 >conftest.err
14697   rm -f conftest.er1
14698   cat conftest.err >&5
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } &&
14701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14702   { (case "(($ac_try" in
14703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704   *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707   (eval "$ac_try") 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; } &&
14711          { ac_try='test -s conftest.$ac_objext'
14712   { (case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717   (eval "$ac_try") 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); }; }; then
14721   ac_header_compiler=yes
14722 else
14723   echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726         ac_header_compiler=no
14727 fi
14728
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14731 echo "${ECHO_T}$ac_header_compiler" >&6; }
14732
14733 # Is the header present?
14734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14736 cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h.  */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h.  */
14742 #include <$ac_header>
14743 _ACEOF
14744 if { (ac_try="$ac_cpp conftest.$ac_ext"
14745 case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14751   ac_status=$?
14752   grep -v '^ *+' conftest.er1 >conftest.err
14753   rm -f conftest.er1
14754   cat conftest.err >&5
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); } >/dev/null; then
14757   if test -s conftest.err; then
14758     ac_cpp_err=$ac_c_preproc_warn_flag
14759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14760   else
14761     ac_cpp_err=
14762   fi
14763 else
14764   ac_cpp_err=yes
14765 fi
14766 if test -z "$ac_cpp_err"; then
14767   ac_header_preproc=yes
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772   ac_header_preproc=no
14773 fi
14774
14775 rm -f conftest.err conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14777 echo "${ECHO_T}$ac_header_preproc" >&6; }
14778
14779 # So?  What about this header?
14780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781   yes:no: )
14782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14786     ac_header_preproc=yes
14787     ;;
14788   no:yes:* )
14789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14791     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14792 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14793     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14796 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14801     ( cat <<\_ASBOX
14802 ## ----------------------------------- ##
14803 ## Report this to llvmbugs@cs.uiuc.edu ##
14804 ## ----------------------------------- ##
14805 _ASBOX
14806      ) | sed "s/^/$as_me: WARNING:     /" >&2
14807     ;;
14808 esac
14809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812   echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814   eval "$as_ac_Header=\$ac_header_preproc"
14815 fi
14816 ac_res=`eval echo '${'$as_ac_Header'}'`
14817                { echo "$as_me:$LINENO: result: $ac_res" >&5
14818 echo "${ECHO_T}$ac_res" >&6; }
14819
14820 fi
14821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14822   cat >>confdefs.h <<_ACEOF
14823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14824 _ACEOF
14825
14826 fi
14827
14828 done
14829
14830
14831
14832
14833
14834
14835 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14836 do
14837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842   echo $ECHO_N "(cached) $ECHO_C" >&6
14843 fi
14844 ac_res=`eval echo '${'$as_ac_Header'}'`
14845                { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 else
14848   # Is the header compilable?
14849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h.  */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h.  */
14857 $ac_includes_default
14858 #include <$ac_header>
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (ac_try="$ac_compile"
14862 case "(($ac_try" in
14863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864   *) ac_try_echo=$ac_try;;
14865 esac
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867   (eval "$ac_compile") 2>conftest.er1
14868   ac_status=$?
14869   grep -v '^ *+' conftest.er1 >conftest.err
14870   rm -f conftest.er1
14871   cat conftest.err >&5
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); } &&
14874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875   { (case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_try") 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; } &&
14884          { ac_try='test -s conftest.$ac_objext'
14885   { (case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_try") 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894   ac_header_compiler=yes
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899         ac_header_compiler=no
14900 fi
14901
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14904 echo "${ECHO_T}$ac_header_compiler" >&6; }
14905
14906 # Is the header present?
14907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14909 cat >conftest.$ac_ext <<_ACEOF
14910 /* confdefs.h.  */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h.  */
14915 #include <$ac_header>
14916 _ACEOF
14917 if { (ac_try="$ac_cpp conftest.$ac_ext"
14918 case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14924   ac_status=$?
14925   grep -v '^ *+' conftest.er1 >conftest.err
14926   rm -f conftest.er1
14927   cat conftest.err >&5
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } >/dev/null; then
14930   if test -s conftest.err; then
14931     ac_cpp_err=$ac_c_preproc_warn_flag
14932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14933   else
14934     ac_cpp_err=
14935   fi
14936 else
14937   ac_cpp_err=yes
14938 fi
14939 if test -z "$ac_cpp_err"; then
14940   ac_header_preproc=yes
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945   ac_header_preproc=no
14946 fi
14947
14948 rm -f conftest.err conftest.$ac_ext
14949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 echo "${ECHO_T}$ac_header_preproc" >&6; }
14951
14952 # So?  What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954   yes:no: )
14955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14959     ac_header_preproc=yes
14960     ;;
14961   no:yes:* )
14962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14974     ( cat <<\_ASBOX
14975 ## ----------------------------------- ##
14976 ## Report this to llvmbugs@cs.uiuc.edu ##
14977 ## ----------------------------------- ##
14978 _ASBOX
14979      ) | sed "s/^/$as_me: WARNING:     /" >&2
14980     ;;
14981 esac
14982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   eval "$as_ac_Header=\$ac_header_preproc"
14988 fi
14989 ac_res=`eval echo '${'$as_ac_Header'}'`
14990                { echo "$as_me:$LINENO: result: $ac_res" >&5
14991 echo "${ECHO_T}$ac_res" >&6; }
14992
14993 fi
14994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14995   cat >>confdefs.h <<_ACEOF
14996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14997 _ACEOF
14998
14999 fi
15000
15001 done
15002
15003
15004
15005
15006
15007 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15008 do
15009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014   echo $ECHO_N "(cached) $ECHO_C" >&6
15015 fi
15016 ac_res=`eval echo '${'$as_ac_Header'}'`
15017                { echo "$as_me:$LINENO: result: $ac_res" >&5
15018 echo "${ECHO_T}$ac_res" >&6; }
15019 else
15020   # Is the header compilable?
15021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h.  */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h.  */
15029 $ac_includes_default
15030 #include <$ac_header>
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (ac_try="$ac_compile"
15034 case "(($ac_try" in
15035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036   *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039   (eval "$ac_compile") 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15047   { (case "(($ac_try" in
15048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049   *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052   (eval "$ac_try") 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); }; } &&
15056          { ac_try='test -s conftest.$ac_objext'
15057   { (case "(($ac_try" in
15058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059   *) ac_try_echo=$ac_try;;
15060 esac
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062   (eval "$ac_try") 2>&5
15063   ac_status=$?
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); }; }; then
15066   ac_header_compiler=yes
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071         ac_header_compiler=no
15072 fi
15073
15074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076 echo "${ECHO_T}$ac_header_compiler" >&6; }
15077
15078 # Is the header present?
15079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h.  */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h.  */
15087 #include <$ac_header>
15088 _ACEOF
15089 if { (ac_try="$ac_cpp conftest.$ac_ext"
15090 case "(($ac_try" in
15091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092   *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096   ac_status=$?
15097   grep -v '^ *+' conftest.er1 >conftest.err
15098   rm -f conftest.er1
15099   cat conftest.err >&5
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } >/dev/null; then
15102   if test -s conftest.err; then
15103     ac_cpp_err=$ac_c_preproc_warn_flag
15104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15105   else
15106     ac_cpp_err=
15107   fi
15108 else
15109   ac_cpp_err=yes
15110 fi
15111 if test -z "$ac_cpp_err"; then
15112   ac_header_preproc=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117   ac_header_preproc=no
15118 fi
15119
15120 rm -f conftest.err conftest.$ac_ext
15121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15122 echo "${ECHO_T}$ac_header_preproc" >&6; }
15123
15124 # So?  What about this header?
15125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15126   yes:no: )
15127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15131     ac_header_preproc=yes
15132     ;;
15133   no:yes:* )
15134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15146     ( cat <<\_ASBOX
15147 ## ----------------------------------- ##
15148 ## Report this to llvmbugs@cs.uiuc.edu ##
15149 ## ----------------------------------- ##
15150 _ASBOX
15151      ) | sed "s/^/$as_me: WARNING:     /" >&2
15152     ;;
15153 esac
15154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15157   echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159   eval "$as_ac_Header=\$ac_header_preproc"
15160 fi
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162                { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15164
15165 fi
15166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15167   cat >>confdefs.h <<_ACEOF
15168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15169 _ACEOF
15170
15171 fi
15172
15173 done
15174
15175
15176 for ac_header in valgrind/valgrind.h
15177 do
15178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 fi
15185 ac_res=`eval echo '${'$as_ac_Header'}'`
15186                { echo "$as_me:$LINENO: result: $ac_res" >&5
15187 echo "${ECHO_T}$ac_res" >&6; }
15188 else
15189   # Is the header compilable?
15190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h.  */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h.  */
15198 $ac_includes_default
15199 #include <$ac_header>
15200 _ACEOF
15201 rm -f conftest.$ac_objext
15202 if { (ac_try="$ac_compile"
15203 case "(($ac_try" in
15204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205   *) ac_try_echo=$ac_try;;
15206 esac
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208   (eval "$ac_compile") 2>conftest.er1
15209   ac_status=$?
15210   grep -v '^ *+' conftest.er1 >conftest.err
15211   rm -f conftest.er1
15212   cat conftest.err >&5
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); } &&
15215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15216   { (case "(($ac_try" in
15217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218   *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221   (eval "$ac_try") 2>&5
15222   ac_status=$?
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); }; } &&
15225          { ac_try='test -s conftest.$ac_objext'
15226   { (case "(($ac_try" in
15227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228   *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231   (eval "$ac_try") 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); }; }; then
15235   ac_header_compiler=yes
15236 else
15237   echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240         ac_header_compiler=no
15241 fi
15242
15243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15245 echo "${ECHO_T}$ac_header_compiler" >&6; }
15246
15247 # Is the header present?
15248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h.  */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h.  */
15256 #include <$ac_header>
15257 _ACEOF
15258 if { (ac_try="$ac_cpp conftest.$ac_ext"
15259 case "(($ac_try" in
15260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261   *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15265   ac_status=$?
15266   grep -v '^ *+' conftest.er1 >conftest.err
15267   rm -f conftest.er1
15268   cat conftest.err >&5
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); } >/dev/null; then
15271   if test -s conftest.err; then
15272     ac_cpp_err=$ac_c_preproc_warn_flag
15273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15274   else
15275     ac_cpp_err=
15276   fi
15277 else
15278   ac_cpp_err=yes
15279 fi
15280 if test -z "$ac_cpp_err"; then
15281   ac_header_preproc=yes
15282 else
15283   echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286   ac_header_preproc=no
15287 fi
15288
15289 rm -f conftest.err conftest.$ac_ext
15290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291 echo "${ECHO_T}$ac_header_preproc" >&6; }
15292
15293 # So?  What about this header?
15294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295   yes:no: )
15296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300     ac_header_preproc=yes
15301     ;;
15302   no:yes:* )
15303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15315     ( cat <<\_ASBOX
15316 ## ----------------------------------- ##
15317 ## Report this to llvmbugs@cs.uiuc.edu ##
15318 ## ----------------------------------- ##
15319 _ASBOX
15320      ) | sed "s/^/$as_me: WARNING:     /" >&2
15321     ;;
15322 esac
15323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15326   echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328   eval "$as_ac_Header=\$ac_header_preproc"
15329 fi
15330 ac_res=`eval echo '${'$as_ac_Header'}'`
15331                { echo "$as_me:$LINENO: result: $ac_res" >&5
15332 echo "${ECHO_T}$ac_res" >&6; }
15333
15334 fi
15335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15336   cat >>confdefs.h <<_ACEOF
15337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15338 _ACEOF
15339
15340 fi
15341
15342 done
15343
15344
15345 for ac_header in fenv.h
15346 do
15347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352   echo $ECHO_N "(cached) $ECHO_C" >&6
15353 fi
15354 ac_res=`eval echo '${'$as_ac_Header'}'`
15355                { echo "$as_me:$LINENO: result: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15357 else
15358   # Is the header compilable?
15359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 $ac_includes_default
15368 #include <$ac_header>
15369 _ACEOF
15370 rm -f conftest.$ac_objext
15371 if { (ac_try="$ac_compile"
15372 case "(($ac_try" in
15373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374   *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377   (eval "$ac_compile") 2>conftest.er1
15378   ac_status=$?
15379   grep -v '^ *+' conftest.er1 >conftest.err
15380   rm -f conftest.er1
15381   cat conftest.err >&5
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); } &&
15384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15385   { (case "(($ac_try" in
15386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387   *) ac_try_echo=$ac_try;;
15388 esac
15389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15390   (eval "$ac_try") 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); }; } &&
15394          { ac_try='test -s conftest.$ac_objext'
15395   { (case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_try") 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_header_compiler=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409         ac_header_compiler=no
15410 fi
15411
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15414 echo "${ECHO_T}$ac_header_compiler" >&6; }
15415
15416 # Is the header present?
15417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425 #include <$ac_header>
15426 _ACEOF
15427 if { (ac_try="$ac_cpp conftest.$ac_ext"
15428 case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } >/dev/null; then
15440   if test -s conftest.err; then
15441     ac_cpp_err=$ac_c_preproc_warn_flag
15442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15443   else
15444     ac_cpp_err=
15445   fi
15446 else
15447   ac_cpp_err=yes
15448 fi
15449 if test -z "$ac_cpp_err"; then
15450   ac_header_preproc=yes
15451 else
15452   echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15454
15455   ac_header_preproc=no
15456 fi
15457
15458 rm -f conftest.err conftest.$ac_ext
15459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15460 echo "${ECHO_T}$ac_header_preproc" >&6; }
15461
15462 # So?  What about this header?
15463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15464   yes:no: )
15465     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15469     ac_header_preproc=yes
15470     ;;
15471   no:yes:* )
15472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15474     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15475 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15476     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15478     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15479 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15482     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15484     ( cat <<\_ASBOX
15485 ## ----------------------------------- ##
15486 ## Report this to llvmbugs@cs.uiuc.edu ##
15487 ## ----------------------------------- ##
15488 _ASBOX
15489      ) | sed "s/^/$as_me: WARNING:     /" >&2
15490     ;;
15491 esac
15492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   eval "$as_ac_Header=\$ac_header_preproc"
15498 fi
15499 ac_res=`eval echo '${'$as_ac_Header'}'`
15500                { echo "$as_me:$LINENO: result: $ac_res" >&5
15501 echo "${ECHO_T}$ac_res" >&6; }
15502
15503 fi
15504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15505   cat >>confdefs.h <<_ACEOF
15506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15507 _ACEOF
15508
15509 fi
15510
15511 done
15512
15513 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15514
15515 for ac_header in pthread.h
15516 do
15517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522   echo $ECHO_N "(cached) $ECHO_C" >&6
15523 fi
15524 ac_res=`eval echo '${'$as_ac_Header'}'`
15525                { echo "$as_me:$LINENO: result: $ac_res" >&5
15526 echo "${ECHO_T}$ac_res" >&6; }
15527 else
15528   # Is the header compilable?
15529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537 $ac_includes_default
15538 #include <$ac_header>
15539 _ACEOF
15540 rm -f conftest.$ac_objext
15541 if { (ac_try="$ac_compile"
15542 case "(($ac_try" in
15543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544   *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547   (eval "$ac_compile") 2>conftest.er1
15548   ac_status=$?
15549   grep -v '^ *+' conftest.er1 >conftest.err
15550   rm -f conftest.er1
15551   cat conftest.err >&5
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555   { (case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_try") 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; } &&
15564          { ac_try='test -s conftest.$ac_objext'
15565   { (case "(($ac_try" in
15566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567   *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570   (eval "$ac_try") 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_header_compiler=yes
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579         ac_header_compiler=no
15580 fi
15581
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15584 echo "${ECHO_T}$ac_header_compiler" >&6; }
15585
15586 # Is the header present?
15587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595 #include <$ac_header>
15596 _ACEOF
15597 if { (ac_try="$ac_cpp conftest.$ac_ext"
15598 case "(($ac_try" in
15599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600   *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15604   ac_status=$?
15605   grep -v '^ *+' conftest.er1 >conftest.err
15606   rm -f conftest.er1
15607   cat conftest.err >&5
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } >/dev/null; then
15610   if test -s conftest.err; then
15611     ac_cpp_err=$ac_c_preproc_warn_flag
15612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15613   else
15614     ac_cpp_err=
15615   fi
15616 else
15617   ac_cpp_err=yes
15618 fi
15619 if test -z "$ac_cpp_err"; then
15620   ac_header_preproc=yes
15621 else
15622   echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15624
15625   ac_header_preproc=no
15626 fi
15627
15628 rm -f conftest.err conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15630 echo "${ECHO_T}$ac_header_preproc" >&6; }
15631
15632 # So?  What about this header?
15633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15634   yes:no: )
15635     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15639     ac_header_preproc=yes
15640     ;;
15641   no:yes:* )
15642     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15644     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15645 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15648     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15649 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15652     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15654     ( cat <<\_ASBOX
15655 ## ----------------------------------- ##
15656 ## Report this to llvmbugs@cs.uiuc.edu ##
15657 ## ----------------------------------- ##
15658 _ASBOX
15659      ) | sed "s/^/$as_me: WARNING:     /" >&2
15660     ;;
15661 esac
15662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665   echo $ECHO_N "(cached) $ECHO_C" >&6
15666 else
15667   eval "$as_ac_Header=\$ac_header_preproc"
15668 fi
15669 ac_res=`eval echo '${'$as_ac_Header'}'`
15670                { echo "$as_me:$LINENO: result: $ac_res" >&5
15671 echo "${ECHO_T}$ac_res" >&6; }
15672
15673 fi
15674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15675   cat >>confdefs.h <<_ACEOF
15676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15677 _ACEOF
15678  HAVE_PTHREAD=1
15679
15680 else
15681   HAVE_PTHREAD=0
15682
15683 fi
15684
15685 done
15686
15687 else
15688   HAVE_PTHREAD=0
15689
15690 fi
15691
15692 if test "$llvm_cv_enable_libffi" = "yes" ; then
15693
15694
15695 for ac_header in ffi.h ffi/ffi.h
15696 do
15697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702   echo $ECHO_N "(cached) $ECHO_C" >&6
15703 fi
15704 ac_res=`eval echo '${'$as_ac_Header'}'`
15705                { echo "$as_me:$LINENO: result: $ac_res" >&5
15706 echo "${ECHO_T}$ac_res" >&6; }
15707 else
15708   # Is the header compilable?
15709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 $ac_includes_default
15718 #include <$ac_header>
15719 _ACEOF
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724   *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727   (eval "$ac_compile") 2>conftest.er1
15728   ac_status=$?
15729   grep -v '^ *+' conftest.er1 >conftest.err
15730   rm -f conftest.er1
15731   cat conftest.err >&5
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } &&
15734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735   { (case "(($ac_try" in
15736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737   *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740   (eval "$ac_try") 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; } &&
15744          { ac_try='test -s conftest.$ac_objext'
15745   { (case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750   (eval "$ac_try") 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; }; then
15754   ac_header_compiler=yes
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759         ac_header_compiler=no
15760 fi
15761
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6; }
15765
15766 # Is the header present?
15767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775 #include <$ac_header>
15776 _ACEOF
15777 if { (ac_try="$ac_cpp conftest.$ac_ext"
15778 case "(($ac_try" in
15779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780   *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15784   ac_status=$?
15785   grep -v '^ *+' conftest.er1 >conftest.err
15786   rm -f conftest.er1
15787   cat conftest.err >&5
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); } >/dev/null; then
15790   if test -s conftest.err; then
15791     ac_cpp_err=$ac_c_preproc_warn_flag
15792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793   else
15794     ac_cpp_err=
15795   fi
15796 else
15797   ac_cpp_err=yes
15798 fi
15799 if test -z "$ac_cpp_err"; then
15800   ac_header_preproc=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805   ac_header_preproc=no
15806 fi
15807
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15811
15812 # So?  What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814   yes:no: )
15815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819     ac_header_preproc=yes
15820     ;;
15821   no:yes:* )
15822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15829 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834     ( cat <<\_ASBOX
15835 ## ----------------------------------- ##
15836 ## Report this to llvmbugs@cs.uiuc.edu ##
15837 ## ----------------------------------- ##
15838 _ASBOX
15839      ) | sed "s/^/$as_me: WARNING:     /" >&2
15840     ;;
15841 esac
15842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845   echo $ECHO_N "(cached) $ECHO_C" >&6
15846 else
15847   eval "$as_ac_Header=\$ac_header_preproc"
15848 fi
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850                { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15852
15853 fi
15854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855   cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15857 _ACEOF
15858
15859 fi
15860
15861 done
15862
15863 fi
15864
15865
15866 for ac_header in CrashReporterClient.h
15867 do
15868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873   echo $ECHO_N "(cached) $ECHO_C" >&6
15874 fi
15875 ac_res=`eval echo '${'$as_ac_Header'}'`
15876                { echo "$as_me:$LINENO: result: $ac_res" >&5
15877 echo "${ECHO_T}$ac_res" >&6; }
15878 else
15879   # Is the header compilable?
15880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15882 cat >conftest.$ac_ext <<_ACEOF
15883 /* confdefs.h.  */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h.  */
15888 $ac_includes_default
15889 #include <$ac_header>
15890 _ACEOF
15891 rm -f conftest.$ac_objext
15892 if { (ac_try="$ac_compile"
15893 case "(($ac_try" in
15894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895   *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898   (eval "$ac_compile") 2>conftest.er1
15899   ac_status=$?
15900   grep -v '^ *+' conftest.er1 >conftest.err
15901   rm -f conftest.er1
15902   cat conftest.err >&5
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } &&
15905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906   { (case "(($ac_try" in
15907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908   *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911   (eval "$ac_try") 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; } &&
15915          { ac_try='test -s conftest.$ac_objext'
15916   { (case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_try") 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; }; then
15925   ac_header_compiler=yes
15926 else
15927   echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15929
15930         ac_header_compiler=no
15931 fi
15932
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15935 echo "${ECHO_T}$ac_header_compiler" >&6; }
15936
15937 # Is the header present?
15938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946 #include <$ac_header>
15947 _ACEOF
15948 if { (ac_try="$ac_cpp conftest.$ac_ext"
15949 case "(($ac_try" in
15950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951   *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15955   ac_status=$?
15956   grep -v '^ *+' conftest.er1 >conftest.err
15957   rm -f conftest.er1
15958   cat conftest.err >&5
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); } >/dev/null; then
15961   if test -s conftest.err; then
15962     ac_cpp_err=$ac_c_preproc_warn_flag
15963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15964   else
15965     ac_cpp_err=
15966   fi
15967 else
15968   ac_cpp_err=yes
15969 fi
15970 if test -z "$ac_cpp_err"; then
15971   ac_header_preproc=yes
15972 else
15973   echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15975
15976   ac_header_preproc=no
15977 fi
15978
15979 rm -f conftest.err conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15981 echo "${ECHO_T}$ac_header_preproc" >&6; }
15982
15983 # So?  What about this header?
15984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15985   yes:no: )
15986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15990     ac_header_preproc=yes
15991     ;;
15992   no:yes:* )
15993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16005     ( cat <<\_ASBOX
16006 ## ----------------------------------- ##
16007 ## Report this to llvmbugs@cs.uiuc.edu ##
16008 ## ----------------------------------- ##
16009 _ASBOX
16010      ) | sed "s/^/$as_me: WARNING:     /" >&2
16011     ;;
16012 esac
16013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016   echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018   eval "$as_ac_Header=\$ac_header_preproc"
16019 fi
16020 ac_res=`eval echo '${'$as_ac_Header'}'`
16021                { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023
16024 fi
16025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16026   cat >>confdefs.h <<_ACEOF
16027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16028 _ACEOF
16029
16030 fi
16031
16032 done
16033
16034
16035 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16036 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 extern const char *__crashreporter_info__;
16044       int main() {
16045         __crashreporter_info__ = "test";
16046         return 0;
16047       }
16048
16049 _ACEOF
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (ac_try="$ac_link"
16052 case "(($ac_try" in
16053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054   *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057   (eval "$ac_link") 2>conftest.er1
16058   ac_status=$?
16059   grep -v '^ *+' conftest.er1 >conftest.err
16060   rm -f conftest.er1
16061   cat conftest.err >&5
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); } &&
16064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16065   { (case "(($ac_try" in
16066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067   *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070   (eval "$ac_try") 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; } &&
16074          { ac_try='test -s conftest$ac_exeext'
16075   { (case "(($ac_try" in
16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077   *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080   (eval "$ac_try") 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; }; then
16084   { echo "$as_me:$LINENO: result: yes" >&5
16085 echo "${ECHO_T}yes" >&6; }
16086
16087 cat >>confdefs.h <<\_ACEOF
16088 #define HAVE_CRASHREPORTER_INFO 1
16089 _ACEOF
16090
16091 else
16092   echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095         { echo "$as_me:$LINENO: result: no" >&5
16096 echo "${ECHO_T}no" >&6; }
16097
16098 cat >>confdefs.h <<\_ACEOF
16099 #define HAVE_CRASHREPORTER_INFO 0
16100 _ACEOF
16101
16102 fi
16103
16104 rm -f core conftest.err conftest.$ac_objext \
16105       conftest$ac_exeext conftest.$ac_ext
16106
16107
16108
16109
16110   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16111 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16112 if test "${ac_cv_huge_val_sanity+set}" = set; then
16113   echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115
16116     ac_ext=cpp
16117 ac_cpp='$CXXCPP $CPPFLAGS'
16118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16121
16122     ac_save_CXXFLAGS=$CXXFLAGS
16123     CXXFLAGS=-pedantic
16124     if test "$cross_compiling" = yes; then
16125   ac_cv_huge_val_sanity=yes
16126 else
16127   cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h.  */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h.  */
16133 #include <math.h>
16134 int
16135 main ()
16136 {
16137 double x = HUGE_VAL; return x != x;
16138   ;
16139   return 0;
16140 }
16141 _ACEOF
16142 rm -f conftest$ac_exeext
16143 if { (ac_try="$ac_link"
16144 case "(($ac_try" in
16145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146   *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149   (eval "$ac_link") 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16153   { (case "(($ac_try" in
16154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155   *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158   (eval "$ac_try") 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; }; then
16162   ac_cv_huge_val_sanity=yes
16163 else
16164   echo "$as_me: program exited with status $ac_status" >&5
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168 ( exit $ac_status )
16169 ac_cv_huge_val_sanity=no
16170 fi
16171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16172 fi
16173
16174
16175     CXXFLAGS=$ac_save_CXXFLAGS
16176     ac_ext=c
16177 ac_cpp='$CPP $CPPFLAGS'
16178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16181
16182
16183 fi
16184 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16185 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16186   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16187
16188
16189 { echo "$as_me:$LINENO: checking for pid_t" >&5
16190 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16191 if test "${ac_cv_type_pid_t+set}" = set; then
16192   echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194   cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h.  */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h.  */
16200 $ac_includes_default
16201 typedef pid_t ac__type_new_;
16202 int
16203 main ()
16204 {
16205 if ((ac__type_new_ *) 0)
16206   return 0;
16207 if (sizeof (ac__type_new_))
16208   return 0;
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (ac_try="$ac_compile"
16215 case "(($ac_try" in
16216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217   *) ac_try_echo=$ac_try;;
16218 esac
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220   (eval "$ac_compile") 2>conftest.er1
16221   ac_status=$?
16222   grep -v '^ *+' conftest.er1 >conftest.err
16223   rm -f conftest.er1
16224   cat conftest.err >&5
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } &&
16227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16228   { (case "(($ac_try" in
16229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230   *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233   (eval "$ac_try") 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; } &&
16237          { ac_try='test -s conftest.$ac_objext'
16238   { (case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_try") 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; }; then
16247   ac_cv_type_pid_t=yes
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252         ac_cv_type_pid_t=no
16253 fi
16254
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 fi
16257 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16258 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16259 if test $ac_cv_type_pid_t = yes; then
16260   :
16261 else
16262
16263 cat >>confdefs.h <<_ACEOF
16264 #define pid_t int
16265 _ACEOF
16266
16267 fi
16268
16269 { echo "$as_me:$LINENO: checking for size_t" >&5
16270 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16271 if test "${ac_cv_type_size_t+set}" = set; then
16272   echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274   cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h.  */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h.  */
16280 $ac_includes_default
16281 typedef size_t ac__type_new_;
16282 int
16283 main ()
16284 {
16285 if ((ac__type_new_ *) 0)
16286   return 0;
16287 if (sizeof (ac__type_new_))
16288   return 0;
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext
16294 if { (ac_try="$ac_compile"
16295 case "(($ac_try" in
16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297   *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300   (eval "$ac_compile") 2>conftest.er1
16301   ac_status=$?
16302   grep -v '^ *+' conftest.er1 >conftest.err
16303   rm -f conftest.er1
16304   cat conftest.err >&5
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } &&
16307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308   { (case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313   (eval "$ac_try") 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; } &&
16317          { ac_try='test -s conftest.$ac_objext'
16318   { (case "(($ac_try" in
16319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320   *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323   (eval "$ac_try") 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }; }; then
16327   ac_cv_type_size_t=yes
16328 else
16329   echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332         ac_cv_type_size_t=no
16333 fi
16334
16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 fi
16337 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16338 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16339 if test $ac_cv_type_size_t = yes; then
16340   :
16341 else
16342
16343 cat >>confdefs.h <<_ACEOF
16344 #define size_t unsigned int
16345 _ACEOF
16346
16347 fi
16348
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define RETSIGTYPE void
16352 _ACEOF
16353
16354 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16355 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16356 if test "${ac_cv_struct_tm+set}" = set; then
16357   echo $ECHO_N "(cached) $ECHO_C" >&6
16358 else
16359   cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 #include <sys/types.h>
16366 #include <time.h>
16367
16368 int
16369 main ()
16370 {
16371 struct tm *tp; tp->tm_sec;
16372   ;
16373   return 0;
16374 }
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380   *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383   (eval "$ac_compile") 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391   { (case "(($ac_try" in
16392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393   *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396   (eval "$ac_try") 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); }; } &&
16400          { ac_try='test -s conftest.$ac_objext'
16401   { (case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406   (eval "$ac_try") 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; }; then
16410   ac_cv_struct_tm=time.h
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415         ac_cv_struct_tm=sys/time.h
16416 fi
16417
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 fi
16420 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16421 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16422 if test $ac_cv_struct_tm = sys/time.h; then
16423
16424 cat >>confdefs.h <<\_ACEOF
16425 #define TM_IN_SYS_TIME 1
16426 _ACEOF
16427
16428 fi
16429
16430 { echo "$as_me:$LINENO: checking for int64_t" >&5
16431 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16432 if test "${ac_cv_type_int64_t+set}" = set; then
16433   echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435   cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441 $ac_includes_default
16442 typedef int64_t ac__type_new_;
16443 int
16444 main ()
16445 {
16446 if ((ac__type_new_ *) 0)
16447   return 0;
16448 if (sizeof (ac__type_new_))
16449   return 0;
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458   *) ac_try_echo=$ac_try;;
16459 esac
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461   (eval "$ac_compile") 2>conftest.er1
16462   ac_status=$?
16463   grep -v '^ *+' conftest.er1 >conftest.err
16464   rm -f conftest.er1
16465   cat conftest.err >&5
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } &&
16468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469   { (case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_try") 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; } &&
16478          { ac_try='test -s conftest.$ac_objext'
16479   { (case "(($ac_try" in
16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481   *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484   (eval "$ac_try") 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; }; then
16488   ac_cv_type_int64_t=yes
16489 else
16490   echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493         ac_cv_type_int64_t=no
16494 fi
16495
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 fi
16498 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16499 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16500 if test $ac_cv_type_int64_t = yes; then
16501
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_INT64_T 1
16504 _ACEOF
16505
16506
16507 else
16508   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16509 echo "$as_me: error: Type int64_t required but not found" >&2;}
16510    { (exit 1); exit 1; }; }
16511 fi
16512
16513 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16514 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16515 if test "${ac_cv_type_uint64_t+set}" = set; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 $ac_includes_default
16525 typedef uint64_t ac__type_new_;
16526 int
16527 main ()
16528 {
16529 if ((ac__type_new_ *) 0)
16530   return 0;
16531 if (sizeof (ac__type_new_))
16532   return 0;
16533   ;
16534   return 0;
16535 }
16536 _ACEOF
16537 rm -f conftest.$ac_objext
16538 if { (ac_try="$ac_compile"
16539 case "(($ac_try" in
16540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541   *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544   (eval "$ac_compile") 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552   { (case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_try") 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; } &&
16561          { ac_try='test -s conftest.$ac_objext'
16562   { (case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_try") 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   ac_cv_type_uint64_t=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576         ac_cv_type_uint64_t=no
16577 fi
16578
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 fi
16581 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16582 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16583 if test $ac_cv_type_uint64_t = yes; then
16584
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_UINT64_T 1
16587 _ACEOF
16588
16589
16590 else
16591   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16592 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16593 if test "${ac_cv_type_u_int64_t+set}" = set; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h.  */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h.  */
16602 $ac_includes_default
16603 typedef u_int64_t ac__type_new_;
16604 int
16605 main ()
16606 {
16607 if ((ac__type_new_ *) 0)
16608   return 0;
16609 if (sizeof (ac__type_new_))
16610   return 0;
16611   ;
16612   return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_compile") 2>conftest.er1
16623   ac_status=$?
16624   grep -v '^ *+' conftest.er1 >conftest.err
16625   rm -f conftest.er1
16626   cat conftest.err >&5
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); } &&
16629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630   { (case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_try") 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; } &&
16639          { ac_try='test -s conftest.$ac_objext'
16640   { (case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_try") 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   ac_cv_type_u_int64_t=yes
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654         ac_cv_type_u_int64_t=no
16655 fi
16656
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 fi
16659 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16660 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16661 if test $ac_cv_type_u_int64_t = yes; then
16662
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_U_INT64_T 1
16665 _ACEOF
16666
16667
16668 else
16669   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16670 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16671    { (exit 1); exit 1; }; }
16672 fi
16673
16674 fi
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16686 do
16687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16691   echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693   cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h.  */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h.  */
16699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16701 #define $ac_func innocuous_$ac_func
16702
16703 /* System header to define __stub macros and hopefully few prototypes,
16704     which can conflict with char $ac_func (); below.
16705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16706     <limits.h> exists even on freestanding compilers.  */
16707
16708 #ifdef __STDC__
16709 # include <limits.h>
16710 #else
16711 # include <assert.h>
16712 #endif
16713
16714 #undef $ac_func
16715
16716 /* Override any GCC internal prototype to avoid an error.
16717    Use char because int might match the return type of a GCC
16718    builtin and then its argument prototype would still apply.  */
16719 #ifdef __cplusplus
16720 extern "C"
16721 #endif
16722 char $ac_func ();
16723 /* The GNU C library defines this for functions which it implements
16724     to always fail with ENOSYS.  Some functions are actually named
16725     something starting with __ and the normal name is an alias.  */
16726 #if defined __stub_$ac_func || defined __stub___$ac_func
16727 choke me
16728 #endif
16729
16730 int
16731 main ()
16732 {
16733 return $ac_func ();
16734   ;
16735   return 0;
16736 }
16737 _ACEOF
16738 rm -f conftest.$ac_objext conftest$ac_exeext
16739 if { (ac_try="$ac_link"
16740 case "(($ac_try" in
16741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742   *) ac_try_echo=$ac_try;;
16743 esac
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745   (eval "$ac_link") 2>conftest.er1
16746   ac_status=$?
16747   grep -v '^ *+' conftest.er1 >conftest.err
16748   rm -f conftest.er1
16749   cat conftest.err >&5
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } &&
16752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753   { (case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_try") 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; } &&
16762          { ac_try='test -s conftest$ac_exeext'
16763   { (case "(($ac_try" in
16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765   *) ac_try_echo=$ac_try;;
16766 esac
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768   (eval "$ac_try") 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); }; }; then
16772   eval "$as_ac_var=yes"
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777         eval "$as_ac_var=no"
16778 fi
16779
16780 rm -f core conftest.err conftest.$ac_objext \
16781       conftest$ac_exeext conftest.$ac_ext
16782 fi
16783 ac_res=`eval echo '${'$as_ac_var'}'`
16784                { echo "$as_me:$LINENO: result: $ac_res" >&5
16785 echo "${ECHO_T}$ac_res" >&6; }
16786 if test `eval echo '${'$as_ac_var'}'` = yes; then
16787   cat >>confdefs.h <<_ACEOF
16788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16789 _ACEOF
16790
16791 fi
16792 done
16793
16794
16795
16796
16797
16798 for ac_func in powf fmodf strtof round
16799 do
16800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h.  */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h.  */
16812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16814 #define $ac_func innocuous_$ac_func
16815
16816 /* System header to define __stub macros and hopefully few prototypes,
16817     which can conflict with char $ac_func (); below.
16818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819     <limits.h> exists even on freestanding compilers.  */
16820
16821 #ifdef __STDC__
16822 # include <limits.h>
16823 #else
16824 # include <assert.h>
16825 #endif
16826
16827 #undef $ac_func
16828
16829 /* Override any GCC internal prototype to avoid an error.
16830    Use char because int might match the return type of a GCC
16831    builtin and then its argument prototype would still apply.  */
16832 #ifdef __cplusplus
16833 extern "C"
16834 #endif
16835 char $ac_func ();
16836 /* The GNU C library defines this for functions which it implements
16837     to always fail with ENOSYS.  Some functions are actually named
16838     something starting with __ and the normal name is an alias.  */
16839 #if defined __stub_$ac_func || defined __stub___$ac_func
16840 choke me
16841 #endif
16842
16843 int
16844 main ()
16845 {
16846 return $ac_func ();
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
16853 case "(($ac_try" in
16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855   *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858   (eval "$ac_link") 2>conftest.er1
16859   ac_status=$?
16860   grep -v '^ *+' conftest.er1 >conftest.err
16861   rm -f conftest.er1
16862   cat conftest.err >&5
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866   { (case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_try") 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; } &&
16875          { ac_try='test -s conftest$ac_exeext'
16876   { (case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_try") 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   eval "$as_ac_var=yes"
16886 else
16887   echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890         eval "$as_ac_var=no"
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext \
16894       conftest$ac_exeext conftest.$ac_ext
16895 fi
16896 ac_res=`eval echo '${'$as_ac_var'}'`
16897                { echo "$as_me:$LINENO: result: $ac_res" >&5
16898 echo "${ECHO_T}$ac_res" >&6; }
16899 if test `eval echo '${'$as_ac_var'}'` = yes; then
16900   cat >>confdefs.h <<_ACEOF
16901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16902 _ACEOF
16903
16904 fi
16905 done
16906
16907
16908
16909
16910
16911
16912 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16913 do
16914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920   cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h.  */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h.  */
16926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16928 #define $ac_func innocuous_$ac_func
16929
16930 /* System header to define __stub macros and hopefully few prototypes,
16931     which can conflict with char $ac_func (); below.
16932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16933     <limits.h> exists even on freestanding compilers.  */
16934
16935 #ifdef __STDC__
16936 # include <limits.h>
16937 #else
16938 # include <assert.h>
16939 #endif
16940
16941 #undef $ac_func
16942
16943 /* Override any GCC internal prototype to avoid an error.
16944    Use char because int might match the return type of a GCC
16945    builtin and then its argument prototype would still apply.  */
16946 #ifdef __cplusplus
16947 extern "C"
16948 #endif
16949 char $ac_func ();
16950 /* The GNU C library defines this for functions which it implements
16951     to always fail with ENOSYS.  Some functions are actually named
16952     something starting with __ and the normal name is an alias.  */
16953 #if defined __stub_$ac_func || defined __stub___$ac_func
16954 choke me
16955 #endif
16956
16957 int
16958 main ()
16959 {
16960 return $ac_func ();
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_link") 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } &&
16979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16980   { (case "(($ac_try" in
16981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982   *) ac_try_echo=$ac_try;;
16983 esac
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985   (eval "$ac_try") 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; } &&
16989          { ac_try='test -s conftest$ac_exeext'
16990   { (case "(($ac_try" in
16991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992   *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995   (eval "$ac_try") 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; }; then
16999   eval "$as_ac_var=yes"
17000 else
17001   echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004         eval "$as_ac_var=no"
17005 fi
17006
17007 rm -f core conftest.err conftest.$ac_objext \
17008       conftest$ac_exeext conftest.$ac_ext
17009 fi
17010 ac_res=`eval echo '${'$as_ac_var'}'`
17011                { echo "$as_me:$LINENO: result: $ac_res" >&5
17012 echo "${ECHO_T}$ac_res" >&6; }
17013 if test `eval echo '${'$as_ac_var'}'` = yes; then
17014   cat >>confdefs.h <<_ACEOF
17015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17016 _ACEOF
17017
17018 fi
17019 done
17020
17021
17022
17023
17024 for ac_func in isatty mkdtemp mkstemp
17025 do
17026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17030   echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032   cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h.  */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h.  */
17038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17040 #define $ac_func innocuous_$ac_func
17041
17042 /* System header to define __stub macros and hopefully few prototypes,
17043     which can conflict with char $ac_func (); below.
17044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17045     <limits.h> exists even on freestanding compilers.  */
17046
17047 #ifdef __STDC__
17048 # include <limits.h>
17049 #else
17050 # include <assert.h>
17051 #endif
17052
17053 #undef $ac_func
17054
17055 /* Override any GCC internal prototype to avoid an error.
17056    Use char because int might match the return type of a GCC
17057    builtin and then its argument prototype would still apply.  */
17058 #ifdef __cplusplus
17059 extern "C"
17060 #endif
17061 char $ac_func ();
17062 /* The GNU C library defines this for functions which it implements
17063     to always fail with ENOSYS.  Some functions are actually named
17064     something starting with __ and the normal name is an alias.  */
17065 #if defined __stub_$ac_func || defined __stub___$ac_func
17066 choke me
17067 #endif
17068
17069 int
17070 main ()
17071 {
17072 return $ac_func ();
17073   ;
17074   return 0;
17075 }
17076 _ACEOF
17077 rm -f conftest.$ac_objext conftest$ac_exeext
17078 if { (ac_try="$ac_link"
17079 case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084   (eval "$ac_link") 2>conftest.er1
17085   ac_status=$?
17086   grep -v '^ *+' conftest.er1 >conftest.err
17087   rm -f conftest.er1
17088   cat conftest.err >&5
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); } &&
17091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092   { (case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097   (eval "$ac_try") 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); }; } &&
17101          { ac_try='test -s conftest$ac_exeext'
17102   { (case "(($ac_try" in
17103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104   *) ac_try_echo=$ac_try;;
17105 esac
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107   (eval "$ac_try") 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; }; then
17111   eval "$as_ac_var=yes"
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116         eval "$as_ac_var=no"
17117 fi
17118
17119 rm -f core conftest.err conftest.$ac_objext \
17120       conftest$ac_exeext conftest.$ac_ext
17121 fi
17122 ac_res=`eval echo '${'$as_ac_var'}'`
17123                { echo "$as_me:$LINENO: result: $ac_res" >&5
17124 echo "${ECHO_T}$ac_res" >&6; }
17125 if test `eval echo '${'$as_ac_var'}'` = yes; then
17126   cat >>confdefs.h <<_ACEOF
17127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17128 _ACEOF
17129
17130 fi
17131 done
17132
17133
17134
17135
17136
17137
17138
17139 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17140 do
17141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17145   echo $ECHO_N "(cached) $ECHO_C" >&6
17146 else
17147   cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h.  */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h.  */
17153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17155 #define $ac_func innocuous_$ac_func
17156
17157 /* System header to define __stub macros and hopefully few prototypes,
17158     which can conflict with char $ac_func (); below.
17159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17160     <limits.h> exists even on freestanding compilers.  */
17161
17162 #ifdef __STDC__
17163 # include <limits.h>
17164 #else
17165 # include <assert.h>
17166 #endif
17167
17168 #undef $ac_func
17169
17170 /* Override any GCC internal prototype to avoid an error.
17171    Use char because int might match the return type of a GCC
17172    builtin and then its argument prototype would still apply.  */
17173 #ifdef __cplusplus
17174 extern "C"
17175 #endif
17176 char $ac_func ();
17177 /* The GNU C library defines this for functions which it implements
17178     to always fail with ENOSYS.  Some functions are actually named
17179     something starting with __ and the normal name is an alias.  */
17180 #if defined __stub_$ac_func || defined __stub___$ac_func
17181 choke me
17182 #endif
17183
17184 int
17185 main ()
17186 {
17187 return $ac_func ();
17188   ;
17189   return 0;
17190 }
17191 _ACEOF
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (ac_try="$ac_link"
17194 case "(($ac_try" in
17195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196   *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199   (eval "$ac_link") 2>conftest.er1
17200   ac_status=$?
17201   grep -v '^ *+' conftest.er1 >conftest.err
17202   rm -f conftest.er1
17203   cat conftest.err >&5
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } &&
17206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207   { (case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_try") 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); }; } &&
17216          { ac_try='test -s conftest$ac_exeext'
17217   { (case "(($ac_try" in
17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219   *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222   (eval "$ac_try") 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; }; then
17226   eval "$as_ac_var=yes"
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231         eval "$as_ac_var=no"
17232 fi
17233
17234 rm -f core conftest.err conftest.$ac_objext \
17235       conftest$ac_exeext conftest.$ac_ext
17236 fi
17237 ac_res=`eval echo '${'$as_ac_var'}'`
17238                { echo "$as_me:$LINENO: result: $ac_res" >&5
17239 echo "${ECHO_T}$ac_res" >&6; }
17240 if test `eval echo '${'$as_ac_var'}'` = yes; then
17241   cat >>confdefs.h <<_ACEOF
17242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17243 _ACEOF
17244
17245 fi
17246 done
17247
17248
17249
17250
17251 for ac_func in strerror strerror_r setenv
17252 do
17253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17257   echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259   cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h.  */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h.  */
17265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17267 #define $ac_func innocuous_$ac_func
17268
17269 /* System header to define __stub macros and hopefully few prototypes,
17270     which can conflict with char $ac_func (); below.
17271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272     <limits.h> exists even on freestanding compilers.  */
17273
17274 #ifdef __STDC__
17275 # include <limits.h>
17276 #else
17277 # include <assert.h>
17278 #endif
17279
17280 #undef $ac_func
17281
17282 /* Override any GCC internal prototype to avoid an error.
17283    Use char because int might match the return type of a GCC
17284    builtin and then its argument prototype would still apply.  */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char $ac_func ();
17289 /* The GNU C library defines this for functions which it implements
17290     to always fail with ENOSYS.  Some functions are actually named
17291     something starting with __ and the normal name is an alias.  */
17292 #if defined __stub_$ac_func || defined __stub___$ac_func
17293 choke me
17294 #endif
17295
17296 int
17297 main ()
17298 {
17299 return $ac_func ();
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308   *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311   (eval "$ac_link") 2>conftest.er1
17312   ac_status=$?
17313   grep -v '^ *+' conftest.er1 >conftest.err
17314   rm -f conftest.er1
17315   cat conftest.err >&5
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } &&
17318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319   { (case "(($ac_try" in
17320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321   *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324   (eval "$ac_try") 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); }; } &&
17328          { ac_try='test -s conftest$ac_exeext'
17329   { (case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334   (eval "$ac_try") 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; }; then
17338   eval "$as_ac_var=yes"
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343         eval "$as_ac_var=no"
17344 fi
17345
17346 rm -f core conftest.err conftest.$ac_objext \
17347       conftest$ac_exeext conftest.$ac_ext
17348 fi
17349 ac_res=`eval echo '${'$as_ac_var'}'`
17350                { echo "$as_me:$LINENO: result: $ac_res" >&5
17351 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_var'}'` = yes; then
17353   cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17355 _ACEOF
17356
17357 fi
17358 done
17359
17360
17361
17362
17363
17364 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17365 do
17366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17370   echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372   cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17380 #define $ac_func innocuous_$ac_func
17381
17382 /* System header to define __stub macros and hopefully few prototypes,
17383     which can conflict with char $ac_func (); below.
17384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385     <limits.h> exists even on freestanding compilers.  */
17386
17387 #ifdef __STDC__
17388 # include <limits.h>
17389 #else
17390 # include <assert.h>
17391 #endif
17392
17393 #undef $ac_func
17394
17395 /* Override any GCC internal prototype to avoid an error.
17396    Use char because int might match the return type of a GCC
17397    builtin and then its argument prototype would still apply.  */
17398 #ifdef __cplusplus
17399 extern "C"
17400 #endif
17401 char $ac_func ();
17402 /* The GNU C library defines this for functions which it implements
17403     to always fail with ENOSYS.  Some functions are actually named
17404     something starting with __ and the normal name is an alias.  */
17405 #if defined __stub_$ac_func || defined __stub___$ac_func
17406 choke me
17407 #endif
17408
17409 int
17410 main ()
17411 {
17412 return $ac_func ();
17413   ;
17414   return 0;
17415 }
17416 _ACEOF
17417 rm -f conftest.$ac_objext conftest$ac_exeext
17418 if { (ac_try="$ac_link"
17419 case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_link") 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432   { (case "(($ac_try" in
17433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434   *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437   (eval "$ac_try") 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; } &&
17441          { ac_try='test -s conftest$ac_exeext'
17442   { (case "(($ac_try" in
17443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444   *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447   (eval "$ac_try") 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }; }; then
17451   eval "$as_ac_var=yes"
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456         eval "$as_ac_var=no"
17457 fi
17458
17459 rm -f core conftest.err conftest.$ac_objext \
17460       conftest$ac_exeext conftest.$ac_ext
17461 fi
17462 ac_res=`eval echo '${'$as_ac_var'}'`
17463                { echo "$as_me:$LINENO: result: $ac_res" >&5
17464 echo "${ECHO_T}$ac_res" >&6; }
17465 if test `eval echo '${'$as_ac_var'}'` = yes; then
17466   cat >>confdefs.h <<_ACEOF
17467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17468 _ACEOF
17469
17470 fi
17471 done
17472
17473
17474
17475
17476
17477
17478 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17479 do
17480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17484   echo $ECHO_N "(cached) $ECHO_C" >&6
17485 else
17486   cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17494 #define $ac_func innocuous_$ac_func
17495
17496 /* System header to define __stub macros and hopefully few prototypes,
17497     which can conflict with char $ac_func (); below.
17498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499     <limits.h> exists even on freestanding compilers.  */
17500
17501 #ifdef __STDC__
17502 # include <limits.h>
17503 #else
17504 # include <assert.h>
17505 #endif
17506
17507 #undef $ac_func
17508
17509 /* Override any GCC internal prototype to avoid an error.
17510    Use char because int might match the return type of a GCC
17511    builtin and then its argument prototype would still apply.  */
17512 #ifdef __cplusplus
17513 extern "C"
17514 #endif
17515 char $ac_func ();
17516 /* The GNU C library defines this for functions which it implements
17517     to always fail with ENOSYS.  Some functions are actually named
17518     something starting with __ and the normal name is an alias.  */
17519 #if defined __stub_$ac_func || defined __stub___$ac_func
17520 choke me
17521 #endif
17522
17523 int
17524 main ()
17525 {
17526 return $ac_func ();
17527   ;
17528   return 0;
17529 }
17530 _ACEOF
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (ac_try="$ac_link"
17533 case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_link") 2>conftest.er1
17539   ac_status=$?
17540   grep -v '^ *+' conftest.er1 >conftest.err
17541   rm -f conftest.er1
17542   cat conftest.err >&5
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } &&
17545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17546   { (case "(($ac_try" in
17547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548   *) ac_try_echo=$ac_try;;
17549 esac
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551   (eval "$ac_try") 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); }; } &&
17555          { ac_try='test -s conftest$ac_exeext'
17556   { (case "(($ac_try" in
17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558   *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561   (eval "$ac_try") 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; }; then
17565   eval "$as_ac_var=yes"
17566 else
17567   echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570         eval "$as_ac_var=no"
17571 fi
17572
17573 rm -f core conftest.err conftest.$ac_objext \
17574       conftest$ac_exeext conftest.$ac_ext
17575 fi
17576 ac_res=`eval echo '${'$as_ac_var'}'`
17577                { echo "$as_me:$LINENO: result: $ac_res" >&5
17578 echo "${ECHO_T}$ac_res" >&6; }
17579 if test `eval echo '${'$as_ac_var'}'` = yes; then
17580   cat >>confdefs.h <<_ACEOF
17581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582 _ACEOF
17583
17584 fi
17585 done
17586
17587 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17588 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17589 if test "${llvm_cv_c_printf_a+set}" = set; then
17590   echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592   ac_ext=c
17593 ac_cpp='$CPP $CPPFLAGS'
17594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17597
17598  if test "$cross_compiling" = yes; then
17599   llvmac_cv_c_printf_a=no
17600 else
17601   cat >conftest.$ac_ext <<_ACEOF
17602
17603   /* confdefs.h.  */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h.  */
17608
17609 #include <stdio.h>
17610 #include <stdlib.h>
17611
17612 int
17613 main ()
17614 {
17615
17616 volatile double A, B;
17617 char Buffer[100];
17618 A = 1;
17619 A /= 10.0;
17620 sprintf(Buffer, "%a", A);
17621 B = atof(Buffer);
17622 if (A != B)
17623   return (1);
17624 if (A != 0x1.999999999999ap-4)
17625   return (1);
17626 return (0);
17627   ;
17628   return 0;
17629 }
17630 _ACEOF
17631 rm -f conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638   (eval "$ac_link") 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17642   { (case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_try") 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; }; then
17651   llvm_cv_c_printf_a=yes
17652 else
17653   echo "$as_me: program exited with status $ac_status" >&5
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 ( exit $ac_status )
17658 llvmac_cv_c_printf_a=no
17659 fi
17660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17661 fi
17662
17663
17664  ac_ext=c
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669
17670 fi
17671 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17672 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17673  if test "$llvm_cv_c_printf_a" = "yes"; then
17674
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_PRINTF_A 1
17677 _ACEOF
17678
17679  fi
17680
17681
17682 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17683 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17684 if test "${ac_cv_func_rand48+set}" = set; then
17685   echo $ECHO_N "(cached) $ECHO_C" >&6
17686 else
17687   ac_ext=cpp
17688 ac_cpp='$CXXCPP $CPPFLAGS'
17689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17692
17693    cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699 #include <stdlib.h>
17700 int
17701 main ()
17702 {
17703 srand48(0);lrand48();drand48();
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext
17709 if { (ac_try="$ac_compile"
17710 case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_compile") 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } &&
17722          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17723   { (case "(($ac_try" in
17724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725   *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728   (eval "$ac_try") 2>&5
17729   ac_status=$?
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); }; } &&
17732          { ac_try='test -s conftest.$ac_objext'
17733   { (case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_try") 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; }; then
17742   ac_cv_func_rand48=yes
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747         ac_cv_func_rand48=no
17748 fi
17749
17750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751   ac_ext=c
17752 ac_cpp='$CPP $CPPFLAGS'
17753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17756
17757 fi
17758 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17759 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17760
17761 if test "$ac_cv_func_rand48" = "yes" ; then
17762
17763 cat >>confdefs.h <<\_ACEOF
17764 #define HAVE_RAND48 1
17765 _ACEOF
17766
17767 fi
17768
17769
17770 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17771 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17772 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h.  */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h.  */
17781 $ac_includes_default
17782 int
17783 main ()
17784 {
17785 #ifndef strerror_s
17786   char *p = (char *) strerror_s;
17787   return !p;
17788 #endif
17789
17790   ;
17791   return 0;
17792 }
17793 _ACEOF
17794 rm -f conftest.$ac_objext
17795 if { (ac_try="$ac_compile"
17796 case "(($ac_try" in
17797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798   *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801   (eval "$ac_compile") 2>conftest.er1
17802   ac_status=$?
17803   grep -v '^ *+' conftest.er1 >conftest.err
17804   rm -f conftest.er1
17805   cat conftest.err >&5
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); } &&
17808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809   { (case "(($ac_try" in
17810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811   *) ac_try_echo=$ac_try;;
17812 esac
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814   (eval "$ac_try") 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; } &&
17818          { ac_try='test -s conftest.$ac_objext'
17819   { (case "(($ac_try" in
17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821   *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824   (eval "$ac_try") 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; }; then
17828   ac_cv_have_decl_strerror_s=yes
17829 else
17830   echo "$as_me: failed program was:" >&5
17831 sed 's/^/| /' conftest.$ac_ext >&5
17832
17833         ac_cv_have_decl_strerror_s=no
17834 fi
17835
17836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 fi
17838 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17839 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17840 if test $ac_cv_have_decl_strerror_s = yes; then
17841
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_DECL_STRERROR_S 1
17844 _ACEOF
17845
17846
17847 else
17848   cat >>confdefs.h <<_ACEOF
17849 #define HAVE_DECL_STRERROR_S 0
17850 _ACEOF
17851
17852
17853 fi
17854
17855
17856
17857 if test "$llvm_cv_os_type" = "MingW" ; then
17858   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17859 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17860 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17861   echo $ECHO_N "(cached) $ECHO_C" >&6
17862 else
17863   ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-lgcc  $LIBS"
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871
17872 /* Override any GCC internal prototype to avoid an error.
17873    Use char because int might match the return type of a GCC
17874    builtin and then its argument prototype would still apply.  */
17875 #ifdef __cplusplus
17876 extern "C"
17877 #endif
17878 char _alloca ();
17879 int
17880 main ()
17881 {
17882 return _alloca ();
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (ac_try="$ac_link"
17889 case "(($ac_try" in
17890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891   *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894   (eval "$ac_link") 2>conftest.er1
17895   ac_status=$?
17896   grep -v '^ *+' conftest.er1 >conftest.err
17897   rm -f conftest.er1
17898   cat conftest.err >&5
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); } &&
17901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17902   { (case "(($ac_try" in
17903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904   *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907   (eval "$ac_try") 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; } &&
17911          { ac_try='test -s conftest$ac_exeext'
17912   { (case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_try") 2>&5
17918   ac_status=$?
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); }; }; then
17921   ac_cv_lib_gcc__alloca=yes
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926         ac_cv_lib_gcc__alloca=no
17927 fi
17928
17929 rm -f core conftest.err conftest.$ac_objext \
17930       conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17932 fi
17933 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17934 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17935 if test $ac_cv_lib_gcc__alloca = yes; then
17936
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE__ALLOCA 1
17939 _ACEOF
17940
17941 fi
17942
17943   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17944 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17945 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948   ac_check_lib_save_LIBS=$LIBS
17949 LIBS="-lgcc  $LIBS"
17950 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h.  */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h.  */
17956
17957 /* Override any GCC internal prototype to avoid an error.
17958    Use char because int might match the return type of a GCC
17959    builtin and then its argument prototype would still apply.  */
17960 #ifdef __cplusplus
17961 extern "C"
17962 #endif
17963 char __alloca ();
17964 int
17965 main ()
17966 {
17967 return __alloca ();
17968   ;
17969   return 0;
17970 }
17971 _ACEOF
17972 rm -f conftest.$ac_objext conftest$ac_exeext
17973 if { (ac_try="$ac_link"
17974 case "(($ac_try" in
17975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976   *) ac_try_echo=$ac_try;;
17977 esac
17978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979   (eval "$ac_link") 2>conftest.er1
17980   ac_status=$?
17981   grep -v '^ *+' conftest.er1 >conftest.err
17982   rm -f conftest.er1
17983   cat conftest.err >&5
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); } &&
17986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987   { (case "(($ac_try" in
17988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989   *) ac_try_echo=$ac_try;;
17990 esac
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992   (eval "$ac_try") 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); }; } &&
17996          { ac_try='test -s conftest$ac_exeext'
17997   { (case "(($ac_try" in
17998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999   *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002   (eval "$ac_try") 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; }; then
18006   ac_cv_lib_gcc___alloca=yes
18007 else
18008   echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011         ac_cv_lib_gcc___alloca=no
18012 fi
18013
18014 rm -f core conftest.err conftest.$ac_objext \
18015       conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18017 fi
18018 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18019 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18020 if test $ac_cv_lib_gcc___alloca = yes; then
18021
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE___ALLOCA 1
18024 _ACEOF
18025
18026 fi
18027
18028   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18029 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18030 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033   ac_check_lib_save_LIBS=$LIBS
18034 LIBS="-lgcc  $LIBS"
18035 cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h.  */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h.  */
18041
18042 /* Override any GCC internal prototype to avoid an error.
18043    Use char because int might match the return type of a GCC
18044    builtin and then its argument prototype would still apply.  */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char __chkstk ();
18049 int
18050 main ()
18051 {
18052 return __chkstk ();
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061   *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064   (eval "$ac_link") 2>conftest.er1
18065   ac_status=$?
18066   grep -v '^ *+' conftest.er1 >conftest.err
18067   rm -f conftest.er1
18068   cat conftest.err >&5
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); } &&
18071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072   { (case "(($ac_try" in
18073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074   *) ac_try_echo=$ac_try;;
18075 esac
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077   (eval "$ac_try") 2>&5
18078   ac_status=$?
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); }; } &&
18081          { ac_try='test -s conftest$ac_exeext'
18082   { (case "(($ac_try" in
18083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084   *) ac_try_echo=$ac_try;;
18085 esac
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087   (eval "$ac_try") 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); }; }; then
18091   ac_cv_lib_gcc___chkstk=yes
18092 else
18093   echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096         ac_cv_lib_gcc___chkstk=no
18097 fi
18098
18099 rm -f core conftest.err conftest.$ac_objext \
18100       conftest$ac_exeext conftest.$ac_ext
18101 LIBS=$ac_check_lib_save_LIBS
18102 fi
18103 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18104 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18105 if test $ac_cv_lib_gcc___chkstk = yes; then
18106
18107 cat >>confdefs.h <<\_ACEOF
18108 #define HAVE___CHKSTK 1
18109 _ACEOF
18110
18111 fi
18112
18113   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18114 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18115 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18116   echo $ECHO_N "(cached) $ECHO_C" >&6
18117 else
18118   ac_check_lib_save_LIBS=$LIBS
18119 LIBS="-lgcc  $LIBS"
18120 cat >conftest.$ac_ext <<_ACEOF
18121 /* confdefs.h.  */
18122 _ACEOF
18123 cat confdefs.h >>conftest.$ac_ext
18124 cat >>conftest.$ac_ext <<_ACEOF
18125 /* end confdefs.h.  */
18126
18127 /* Override any GCC internal prototype to avoid an error.
18128    Use char because int might match the return type of a GCC
18129    builtin and then its argument prototype would still apply.  */
18130 #ifdef __cplusplus
18131 extern "C"
18132 #endif
18133 char ___chkstk ();
18134 int
18135 main ()
18136 {
18137 return ___chkstk ();
18138   ;
18139   return 0;
18140 }
18141 _ACEOF
18142 rm -f conftest.$ac_objext conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146   *) ac_try_echo=$ac_try;;
18147 esac
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149   (eval "$ac_link") 2>conftest.er1
18150   ac_status=$?
18151   grep -v '^ *+' conftest.er1 >conftest.err
18152   rm -f conftest.er1
18153   cat conftest.err >&5
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); } &&
18156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18157   { (case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_try") 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; } &&
18166          { ac_try='test -s conftest$ac_exeext'
18167   { (case "(($ac_try" in
18168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169   *) ac_try_echo=$ac_try;;
18170 esac
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172   (eval "$ac_try") 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); }; }; then
18176   ac_cv_lib_gcc____chkstk=yes
18177 else
18178   echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18180
18181         ac_cv_lib_gcc____chkstk=no
18182 fi
18183
18184 rm -f core conftest.err conftest.$ac_objext \
18185       conftest$ac_exeext conftest.$ac_ext
18186 LIBS=$ac_check_lib_save_LIBS
18187 fi
18188 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18189 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18190 if test $ac_cv_lib_gcc____chkstk = yes; then
18191
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE____CHKSTK 1
18194 _ACEOF
18195
18196 fi
18197
18198
18199   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18200 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18201 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18202   echo $ECHO_N "(cached) $ECHO_C" >&6
18203 else
18204   ac_check_lib_save_LIBS=$LIBS
18205 LIBS="-lgcc  $LIBS"
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h.  */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h.  */
18212
18213 /* Override any GCC internal prototype to avoid an error.
18214    Use char because int might match the return type of a GCC
18215    builtin and then its argument prototype would still apply.  */
18216 #ifdef __cplusplus
18217 extern "C"
18218 #endif
18219 char __ashldi3 ();
18220 int
18221 main ()
18222 {
18223 return __ashldi3 ();
18224   ;
18225   return 0;
18226 }
18227 _ACEOF
18228 rm -f conftest.$ac_objext conftest$ac_exeext
18229 if { (ac_try="$ac_link"
18230 case "(($ac_try" in
18231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232   *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235   (eval "$ac_link") 2>conftest.er1
18236   ac_status=$?
18237   grep -v '^ *+' conftest.er1 >conftest.err
18238   rm -f conftest.er1
18239   cat conftest.err >&5
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); } &&
18242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18243   { (case "(($ac_try" in
18244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245   *) ac_try_echo=$ac_try;;
18246 esac
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248   (eval "$ac_try") 2>&5
18249   ac_status=$?
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); }; } &&
18252          { ac_try='test -s conftest$ac_exeext'
18253   { (case "(($ac_try" in
18254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255   *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258   (eval "$ac_try") 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; }; then
18262   ac_cv_lib_gcc___ashldi3=yes
18263 else
18264   echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267         ac_cv_lib_gcc___ashldi3=no
18268 fi
18269
18270 rm -f core conftest.err conftest.$ac_objext \
18271       conftest$ac_exeext conftest.$ac_ext
18272 LIBS=$ac_check_lib_save_LIBS
18273 fi
18274 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18275 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18276 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18277
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE___ASHLDI3 1
18280 _ACEOF
18281
18282 fi
18283
18284   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18285 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18286 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18287   echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289   ac_check_lib_save_LIBS=$LIBS
18290 LIBS="-lgcc  $LIBS"
18291 cat >conftest.$ac_ext <<_ACEOF
18292 /* confdefs.h.  */
18293 _ACEOF
18294 cat confdefs.h >>conftest.$ac_ext
18295 cat >>conftest.$ac_ext <<_ACEOF
18296 /* end confdefs.h.  */
18297
18298 /* Override any GCC internal prototype to avoid an error.
18299    Use char because int might match the return type of a GCC
18300    builtin and then its argument prototype would still apply.  */
18301 #ifdef __cplusplus
18302 extern "C"
18303 #endif
18304 char __ashrdi3 ();
18305 int
18306 main ()
18307 {
18308 return __ashrdi3 ();
18309   ;
18310   return 0;
18311 }
18312 _ACEOF
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317   *) ac_try_echo=$ac_try;;
18318 esac
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320   (eval "$ac_link") 2>conftest.er1
18321   ac_status=$?
18322   grep -v '^ *+' conftest.er1 >conftest.err
18323   rm -f conftest.er1
18324   cat conftest.err >&5
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } &&
18327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18328   { (case "(($ac_try" in
18329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330   *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333   (eval "$ac_try") 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (case "(($ac_try" in
18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340   *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347   ac_cv_lib_gcc___ashrdi3=yes
18348 else
18349   echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18351
18352         ac_cv_lib_gcc___ashrdi3=no
18353 fi
18354
18355 rm -f core conftest.err conftest.$ac_objext \
18356       conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18358 fi
18359 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18360 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18361 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18362
18363 cat >>confdefs.h <<\_ACEOF
18364 #define HAVE___ASHRDI3 1
18365 _ACEOF
18366
18367 fi
18368
18369   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18370 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18371 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374   ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-lgcc  $LIBS"
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382
18383 /* Override any GCC internal prototype to avoid an error.
18384    Use char because int might match the return type of a GCC
18385    builtin and then its argument prototype would still apply.  */
18386 #ifdef __cplusplus
18387 extern "C"
18388 #endif
18389 char __divdi3 ();
18390 int
18391 main ()
18392 {
18393 return __divdi3 ();
18394   ;
18395   return 0;
18396 }
18397 _ACEOF
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (ac_try="$ac_link"
18400 case "(($ac_try" in
18401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402   *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405   (eval "$ac_link") 2>conftest.er1
18406   ac_status=$?
18407   grep -v '^ *+' conftest.er1 >conftest.err
18408   rm -f conftest.er1
18409   cat conftest.err >&5
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); } &&
18412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18413   { (case "(($ac_try" in
18414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415   *) ac_try_echo=$ac_try;;
18416 esac
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418   (eval "$ac_try") 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); }; } &&
18422          { ac_try='test -s conftest$ac_exeext'
18423   { (case "(($ac_try" in
18424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425   *) ac_try_echo=$ac_try;;
18426 esac
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428   (eval "$ac_try") 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); }; }; then
18432   ac_cv_lib_gcc___divdi3=yes
18433 else
18434   echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18436
18437         ac_cv_lib_gcc___divdi3=no
18438 fi
18439
18440 rm -f core conftest.err conftest.$ac_objext \
18441       conftest$ac_exeext conftest.$ac_ext
18442 LIBS=$ac_check_lib_save_LIBS
18443 fi
18444 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18445 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18446 if test $ac_cv_lib_gcc___divdi3 = yes; then
18447
18448 cat >>confdefs.h <<\_ACEOF
18449 #define HAVE___DIVDI3 1
18450 _ACEOF
18451
18452 fi
18453
18454   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18455 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18456 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18457   echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459   ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-lgcc  $LIBS"
18461 cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467
18468 /* Override any GCC internal prototype to avoid an error.
18469    Use char because int might match the return type of a GCC
18470    builtin and then its argument prototype would still apply.  */
18471 #ifdef __cplusplus
18472 extern "C"
18473 #endif
18474 char __fixdfdi ();
18475 int
18476 main ()
18477 {
18478 return __fixdfdi ();
18479   ;
18480   return 0;
18481 }
18482 _ACEOF
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487   *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490   (eval "$ac_link") 2>conftest.er1
18491   ac_status=$?
18492   grep -v '^ *+' conftest.er1 >conftest.err
18493   rm -f conftest.er1
18494   cat conftest.err >&5
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); } &&
18497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498   { (case "(($ac_try" in
18499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500   *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503   (eval "$ac_try") 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }; } &&
18507          { ac_try='test -s conftest$ac_exeext'
18508   { (case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513   (eval "$ac_try") 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; }; then
18517   ac_cv_lib_gcc___fixdfdi=yes
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522         ac_cv_lib_gcc___fixdfdi=no
18523 fi
18524
18525 rm -f core conftest.err conftest.$ac_objext \
18526       conftest$ac_exeext conftest.$ac_ext
18527 LIBS=$ac_check_lib_save_LIBS
18528 fi
18529 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18530 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18531 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18532
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE___FIXDFDI 1
18535 _ACEOF
18536
18537 fi
18538
18539   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18540 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18541 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   ac_check_lib_save_LIBS=$LIBS
18545 LIBS="-lgcc  $LIBS"
18546 cat >conftest.$ac_ext <<_ACEOF
18547 /* confdefs.h.  */
18548 _ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h.  */
18552
18553 /* Override any GCC internal prototype to avoid an error.
18554    Use char because int might match the return type of a GCC
18555    builtin and then its argument prototype would still apply.  */
18556 #ifdef __cplusplus
18557 extern "C"
18558 #endif
18559 char __fixsfdi ();
18560 int
18561 main ()
18562 {
18563 return __fixsfdi ();
18564   ;
18565   return 0;
18566 }
18567 _ACEOF
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575   (eval "$ac_link") 2>conftest.er1
18576   ac_status=$?
18577   grep -v '^ *+' conftest.er1 >conftest.err
18578   rm -f conftest.er1
18579   cat conftest.err >&5
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); } &&
18582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18583   { (case "(($ac_try" in
18584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585   *) ac_try_echo=$ac_try;;
18586 esac
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588   (eval "$ac_try") 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; } &&
18592          { ac_try='test -s conftest$ac_exeext'
18593   { (case "(($ac_try" in
18594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595   *) ac_try_echo=$ac_try;;
18596 esac
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598   (eval "$ac_try") 2>&5
18599   ac_status=$?
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); }; }; then
18602   ac_cv_lib_gcc___fixsfdi=yes
18603 else
18604   echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18606
18607         ac_cv_lib_gcc___fixsfdi=no
18608 fi
18609
18610 rm -f core conftest.err conftest.$ac_objext \
18611       conftest$ac_exeext conftest.$ac_ext
18612 LIBS=$ac_check_lib_save_LIBS
18613 fi
18614 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18615 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18616 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18617
18618 cat >>confdefs.h <<\_ACEOF
18619 #define HAVE___FIXSFDI 1
18620 _ACEOF
18621
18622 fi
18623
18624   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18625 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18626 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18627   echo $ECHO_N "(cached) $ECHO_C" >&6
18628 else
18629   ac_check_lib_save_LIBS=$LIBS
18630 LIBS="-lgcc  $LIBS"
18631 cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h.  */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h.  */
18637
18638 /* Override any GCC internal prototype to avoid an error.
18639    Use char because int might match the return type of a GCC
18640    builtin and then its argument prototype would still apply.  */
18641 #ifdef __cplusplus
18642 extern "C"
18643 #endif
18644 char __floatdidf ();
18645 int
18646 main ()
18647 {
18648 return __floatdidf ();
18649   ;
18650   return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest.$ac_objext conftest$ac_exeext
18654 if { (ac_try="$ac_link"
18655 case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660   (eval "$ac_link") 2>conftest.er1
18661   ac_status=$?
18662   grep -v '^ *+' conftest.er1 >conftest.err
18663   rm -f conftest.er1
18664   cat conftest.err >&5
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); } &&
18667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18668   { (case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_try") 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); }; } &&
18677          { ac_try='test -s conftest$ac_exeext'
18678   { (case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_try") 2>&5
18684   ac_status=$?
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); }; }; then
18687   ac_cv_lib_gcc___floatdidf=yes
18688 else
18689   echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18691
18692         ac_cv_lib_gcc___floatdidf=no
18693 fi
18694
18695 rm -f core conftest.err conftest.$ac_objext \
18696       conftest$ac_exeext conftest.$ac_ext
18697 LIBS=$ac_check_lib_save_LIBS
18698 fi
18699 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18700 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18701 if test $ac_cv_lib_gcc___floatdidf = yes; then
18702
18703 cat >>confdefs.h <<\_ACEOF
18704 #define HAVE___FLOATDIDF 1
18705 _ACEOF
18706
18707 fi
18708
18709   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18710 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18711 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18712   echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714   ac_check_lib_save_LIBS=$LIBS
18715 LIBS="-lgcc  $LIBS"
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722
18723 /* Override any GCC internal prototype to avoid an error.
18724    Use char because int might match the return type of a GCC
18725    builtin and then its argument prototype would still apply.  */
18726 #ifdef __cplusplus
18727 extern "C"
18728 #endif
18729 char __lshrdi3 ();
18730 int
18731 main ()
18732 {
18733 return __lshrdi3 ();
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_link") 2>conftest.er1
18746   ac_status=$?
18747   grep -v '^ *+' conftest.er1 >conftest.err
18748   rm -f conftest.er1
18749   cat conftest.err >&5
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); } &&
18752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18753   { (case "(($ac_try" in
18754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755   *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758   (eval "$ac_try") 2>&5
18759   ac_status=$?
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); }; } &&
18762          { ac_try='test -s conftest$ac_exeext'
18763   { (case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_try") 2>&5
18769   ac_status=$?
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); }; }; then
18772   ac_cv_lib_gcc___lshrdi3=yes
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777         ac_cv_lib_gcc___lshrdi3=no
18778 fi
18779
18780 rm -f core conftest.err conftest.$ac_objext \
18781       conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18783 fi
18784 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18785 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18786 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18787
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE___LSHRDI3 1
18790 _ACEOF
18791
18792 fi
18793
18794   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18795 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18796 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   ac_check_lib_save_LIBS=$LIBS
18800 LIBS="-lgcc  $LIBS"
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h.  */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h.  */
18807
18808 /* Override any GCC internal prototype to avoid an error.
18809    Use char because int might match the return type of a GCC
18810    builtin and then its argument prototype would still apply.  */
18811 #ifdef __cplusplus
18812 extern "C"
18813 #endif
18814 char __moddi3 ();
18815 int
18816 main ()
18817 {
18818 return __moddi3 ();
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_link") 2>conftest.er1
18831   ac_status=$?
18832   grep -v '^ *+' conftest.er1 >conftest.err
18833   rm -f conftest.er1
18834   cat conftest.err >&5
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); } &&
18837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18838   { (case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843   (eval "$ac_try") 2>&5
18844   ac_status=$?
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); }; } &&
18847          { ac_try='test -s conftest$ac_exeext'
18848   { (case "(($ac_try" in
18849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850   *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853   (eval "$ac_try") 2>&5
18854   ac_status=$?
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); }; }; then
18857   ac_cv_lib_gcc___moddi3=yes
18858 else
18859   echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862         ac_cv_lib_gcc___moddi3=no
18863 fi
18864
18865 rm -f core conftest.err conftest.$ac_objext \
18866       conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18868 fi
18869 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18870 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18871 if test $ac_cv_lib_gcc___moddi3 = yes; then
18872
18873 cat >>confdefs.h <<\_ACEOF
18874 #define HAVE___MODDI3 1
18875 _ACEOF
18876
18877 fi
18878
18879   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18880 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18881 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18882   echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884   ac_check_lib_save_LIBS=$LIBS
18885 LIBS="-lgcc  $LIBS"
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h.  */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h.  */
18892
18893 /* Override any GCC internal prototype to avoid an error.
18894    Use char because int might match the return type of a GCC
18895    builtin and then its argument prototype would still apply.  */
18896 #ifdef __cplusplus
18897 extern "C"
18898 #endif
18899 char __udivdi3 ();
18900 int
18901 main ()
18902 {
18903 return __udivdi3 ();
18904   ;
18905   return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (ac_try="$ac_link"
18910 case "(($ac_try" in
18911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912   *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915   (eval "$ac_link") 2>conftest.er1
18916   ac_status=$?
18917   grep -v '^ *+' conftest.er1 >conftest.err
18918   rm -f conftest.er1
18919   cat conftest.err >&5
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); } &&
18922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18923   { (case "(($ac_try" in
18924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925   *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928   (eval "$ac_try") 2>&5
18929   ac_status=$?
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); }; } &&
18932          { ac_try='test -s conftest$ac_exeext'
18933   { (case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938   (eval "$ac_try") 2>&5
18939   ac_status=$?
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); }; }; then
18942   ac_cv_lib_gcc___udivdi3=yes
18943 else
18944   echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18946
18947         ac_cv_lib_gcc___udivdi3=no
18948 fi
18949
18950 rm -f core conftest.err conftest.$ac_objext \
18951       conftest$ac_exeext conftest.$ac_ext
18952 LIBS=$ac_check_lib_save_LIBS
18953 fi
18954 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18955 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18956 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18957
18958 cat >>confdefs.h <<\_ACEOF
18959 #define HAVE___UDIVDI3 1
18960 _ACEOF
18961
18962 fi
18963
18964   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18965 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18966 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18967   echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969   ac_check_lib_save_LIBS=$LIBS
18970 LIBS="-lgcc  $LIBS"
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h.  */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h.  */
18977
18978 /* Override any GCC internal prototype to avoid an error.
18979    Use char because int might match the return type of a GCC
18980    builtin and then its argument prototype would still apply.  */
18981 #ifdef __cplusplus
18982 extern "C"
18983 #endif
18984 char __umoddi3 ();
18985 int
18986 main ()
18987 {
18988 return __umoddi3 ();
18989   ;
18990   return 0;
18991 }
18992 _ACEOF
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (ac_try="$ac_link"
18995 case "(($ac_try" in
18996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997   *) ac_try_echo=$ac_try;;
18998 esac
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000   (eval "$ac_link") 2>conftest.er1
19001   ac_status=$?
19002   grep -v '^ *+' conftest.er1 >conftest.err
19003   rm -f conftest.er1
19004   cat conftest.err >&5
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); } &&
19007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19008   { (case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_try") 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; } &&
19017          { ac_try='test -s conftest$ac_exeext'
19018   { (case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_try") 2>&5
19024   ac_status=$?
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); }; }; then
19027   ac_cv_lib_gcc___umoddi3=yes
19028 else
19029   echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19031
19032         ac_cv_lib_gcc___umoddi3=no
19033 fi
19034
19035 rm -f core conftest.err conftest.$ac_objext \
19036       conftest$ac_exeext conftest.$ac_ext
19037 LIBS=$ac_check_lib_save_LIBS
19038 fi
19039 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19040 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19041 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19042
19043 cat >>confdefs.h <<\_ACEOF
19044 #define HAVE___UMODDI3 1
19045 _ACEOF
19046
19047 fi
19048
19049
19050   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19051 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19052 if test "${ac_cv_lib_gcc___main+set}" = set; then
19053   echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055   ac_check_lib_save_LIBS=$LIBS
19056 LIBS="-lgcc  $LIBS"
19057 cat >conftest.$ac_ext <<_ACEOF
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063
19064 /* Override any GCC internal prototype to avoid an error.
19065    Use char because int might match the return type of a GCC
19066    builtin and then its argument prototype would still apply.  */
19067 #ifdef __cplusplus
19068 extern "C"
19069 #endif
19070 char __main ();
19071 int
19072 main ()
19073 {
19074 return __main ();
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (ac_try="$ac_link"
19081 case "(($ac_try" in
19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083   *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086   (eval "$ac_link") 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } &&
19093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19094   { (case "(($ac_try" in
19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096   *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099   (eval "$ac_try") 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); }; } &&
19103          { ac_try='test -s conftest$ac_exeext'
19104   { (case "(($ac_try" in
19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106   *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109   (eval "$ac_try") 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; }; then
19113   ac_cv_lib_gcc___main=yes
19114 else
19115   echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118         ac_cv_lib_gcc___main=no
19119 fi
19120
19121 rm -f core conftest.err conftest.$ac_objext \
19122       conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19124 fi
19125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19126 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19127 if test $ac_cv_lib_gcc___main = yes; then
19128
19129 cat >>confdefs.h <<\_ACEOF
19130 #define HAVE___MAIN 1
19131 _ACEOF
19132
19133 fi
19134
19135   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19136 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19137 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140   ac_check_lib_save_LIBS=$LIBS
19141 LIBS="-lgcc  $LIBS"
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148
19149 /* Override any GCC internal prototype to avoid an error.
19150    Use char because int might match the return type of a GCC
19151    builtin and then its argument prototype would still apply.  */
19152 #ifdef __cplusplus
19153 extern "C"
19154 #endif
19155 char __cmpdi2 ();
19156 int
19157 main ()
19158 {
19159 return __cmpdi2 ();
19160   ;
19161   return 0;
19162 }
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168   *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171   (eval "$ac_link") 2>conftest.er1
19172   ac_status=$?
19173   grep -v '^ *+' conftest.er1 >conftest.err
19174   rm -f conftest.er1
19175   cat conftest.err >&5
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); } &&
19178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19179   { (case "(($ac_try" in
19180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181   *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184   (eval "$ac_try") 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; } &&
19188          { ac_try='test -s conftest$ac_exeext'
19189   { (case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_try") 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; }; then
19198   ac_cv_lib_gcc___cmpdi2=yes
19199 else
19200   echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203         ac_cv_lib_gcc___cmpdi2=no
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext \
19207       conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19209 fi
19210 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19211 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19212 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19213
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE___CMPDI2 1
19216 _ACEOF
19217
19218 fi
19219
19220 fi
19221
19222 if test "$llvm_cv_os_type" = "MingW" ; then
19223   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19224 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19225   cat >conftest.$ac_ext <<_ACEOF
19226 #include <windows.h>
19227 #include <imagehlp.h>
19228 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19229 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19230 _ACEOF
19231 rm -f conftest.$ac_objext
19232 if { (ac_try="$ac_compile"
19233 case "(($ac_try" in
19234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235   *) ac_try_echo=$ac_try;;
19236 esac
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238   (eval "$ac_compile") 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246   { (case "(($ac_try" in
19247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248   *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251   (eval "$ac_try") 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; } &&
19255          { ac_try='test -s conftest.$ac_objext'
19256   { (case "(($ac_try" in
19257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258   *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261   (eval "$ac_try") 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); }; }; then
19265
19266   { echo "$as_me:$LINENO: result: yes" >&5
19267 echo "${ECHO_T}yes" >&6; }
19268   llvm_cv_win32_elmcb_pcstr="PCSTR"
19269
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274
19275   { echo "$as_me:$LINENO: result: no" >&5
19276 echo "${ECHO_T}no" >&6; }
19277   llvm_cv_win32_elmcb_pcstr="PSTR"
19278
19279 fi
19280
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282
19283 cat >>confdefs.h <<_ACEOF
19284 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19285 _ACEOF
19286
19287 fi
19288
19289
19290 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19291 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19292 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295   ac_ext=cpp
19296 ac_cpp='$CXXCPP $CPPFLAGS'
19297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19300
19301    cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307 #include <math.h>
19308 int
19309 main ()
19310 {
19311 float f; isnan(f);
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_compile") 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } &&
19330          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19331   { (case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_try") 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; } &&
19340          { ac_try='test -s conftest.$ac_objext'
19341   { (case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_try") 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; }; then
19350   ac_cv_func_isnan_in_math_h=yes
19351 else
19352   echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19354
19355         ac_cv_func_isnan_in_math_h=no
19356 fi
19357
19358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359   ac_ext=c
19360 ac_cpp='$CPP $CPPFLAGS'
19361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19364
19365 fi
19366 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19367 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19368
19369
19370 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19371
19372 cat >>confdefs.h <<\_ACEOF
19373 #define HAVE_ISNAN_IN_MATH_H 1
19374 _ACEOF
19375
19376 fi
19377
19378 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19379 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19380 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383   ac_ext=cpp
19384 ac_cpp='$CXXCPP $CPPFLAGS'
19385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19388
19389    cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h.  */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h.  */
19395 #include <cmath>
19396 int
19397 main ()
19398 {
19399 float f; isnan(f);
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411   (eval "$ac_compile") 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } &&
19418          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19419   { (case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_try") 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; } &&
19428          { ac_try='test -s conftest.$ac_objext'
19429   { (case "(($ac_try" in
19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431   *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434   (eval "$ac_try") 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_cv_func_isnan_in_cmath=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443         ac_cv_func_isnan_in_cmath=no
19444 fi
19445
19446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447   ac_ext=c
19448 ac_cpp='$CPP $CPPFLAGS'
19449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19452
19453 fi
19454 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19455 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19456
19457 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19458
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE_ISNAN_IN_CMATH 1
19461 _ACEOF
19462
19463 fi
19464
19465 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19466 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19467 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470   ac_ext=cpp
19471 ac_cpp='$CXXCPP $CPPFLAGS'
19472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19475
19476    cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482 #include <cmath>
19483 int
19484 main ()
19485 {
19486 float f; std::isnan(f);
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext
19492 if { (ac_try="$ac_compile"
19493 case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_compile") 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19506   { (case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_try") 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; } &&
19515          { ac_try='test -s conftest.$ac_objext'
19516   { (case "(($ac_try" in
19517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518   *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521   (eval "$ac_try") 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_cv_func_std_isnan_in_cmath=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530         ac_cv_func_std_isnan_in_cmath=no
19531 fi
19532
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534   ac_ext=c
19535 ac_cpp='$CPP $CPPFLAGS'
19536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19539
19540 fi
19541 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19542 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19543
19544 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19545
19546 cat >>confdefs.h <<\_ACEOF
19547 #define HAVE_STD_ISNAN_IN_CMATH 1
19548 _ACEOF
19549
19550 fi
19551
19552
19553 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19554 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19555 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19556   echo $ECHO_N "(cached) $ECHO_C" >&6
19557 else
19558   ac_ext=cpp
19559 ac_cpp='$CXXCPP $CPPFLAGS'
19560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19563
19564    cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h.  */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h.  */
19570 #include <math.h>
19571 int
19572 main ()
19573 {
19574 float f; isinf(f);
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext
19580 if { (ac_try="$ac_compile"
19581 case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_compile") 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } &&
19593          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19594   { (case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599   (eval "$ac_try") 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; } &&
19603          { ac_try='test -s conftest.$ac_objext'
19604   { (case "(($ac_try" in
19605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606   *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609   (eval "$ac_try") 2>&5
19610   ac_status=$?
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); }; }; then
19613   ac_cv_func_isinf_in_math_h=yes
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618         ac_cv_func_isinf_in_math_h=no
19619 fi
19620
19621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622   ac_ext=c
19623 ac_cpp='$CPP $CPPFLAGS'
19624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627
19628 fi
19629 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19630 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19631
19632 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19633
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_ISINF_IN_MATH_H 1
19636 _ACEOF
19637
19638 fi
19639
19640 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19641 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19642 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19643   echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645   ac_ext=cpp
19646 ac_cpp='$CXXCPP $CPPFLAGS'
19647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19650
19651    cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h.  */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h.  */
19657 #include <cmath>
19658 int
19659 main ()
19660 {
19661 float f; isinf(f);
19662   ;
19663   return 0;
19664 }
19665 _ACEOF
19666 rm -f conftest.$ac_objext
19667 if { (ac_try="$ac_compile"
19668 case "(($ac_try" in
19669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670   *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673   (eval "$ac_compile") 2>conftest.er1
19674   ac_status=$?
19675   grep -v '^ *+' conftest.er1 >conftest.err
19676   rm -f conftest.er1
19677   cat conftest.err >&5
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); } &&
19680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19681   { (case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_try") 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; } &&
19690          { ac_try='test -s conftest.$ac_objext'
19691   { (case "(($ac_try" in
19692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693   *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696   (eval "$ac_try") 2>&5
19697   ac_status=$?
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); }; }; then
19700   ac_cv_func_isinf_in_cmath=yes
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705         ac_cv_func_isinf_in_cmath=no
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709   ac_ext=c
19710 ac_cpp='$CPP $CPPFLAGS'
19711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19714
19715 fi
19716 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19717 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19718
19719 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19720
19721 cat >>confdefs.h <<\_ACEOF
19722 #define HAVE_ISINF_IN_CMATH 1
19723 _ACEOF
19724
19725 fi
19726
19727 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19728 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19729 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19730   echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732   ac_ext=cpp
19733 ac_cpp='$CXXCPP $CPPFLAGS'
19734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19737
19738    cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h.  */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h.  */
19744 #include <cmath>
19745 int
19746 main ()
19747 {
19748 float f; std::isinf(f)}
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 rm -f conftest.$ac_objext
19754 if { (ac_try="$ac_compile"
19755 case "(($ac_try" in
19756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757   *) ac_try_echo=$ac_try;;
19758 esac
19759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760   (eval "$ac_compile") 2>conftest.er1
19761   ac_status=$?
19762   grep -v '^ *+' conftest.er1 >conftest.err
19763   rm -f conftest.er1
19764   cat conftest.err >&5
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); } &&
19767          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19768   { (case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_try") 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; } &&
19777          { ac_try='test -s conftest.$ac_objext'
19778   { (case "(($ac_try" in
19779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780   *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783   (eval "$ac_try") 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); }; }; then
19787   ac_cv_func_std_isinf_in_cmath=yes
19788 else
19789   echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792         ac_cv_func_std_isinf_in_cmath=no
19793 fi
19794
19795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19796   ac_ext=c
19797 ac_cpp='$CPP $CPPFLAGS'
19798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801
19802 fi
19803 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19804 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19805
19806 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19807
19808 cat >>confdefs.h <<\_ACEOF
19809 #define HAVE_STD_ISINF_IN_CMATH 1
19810 _ACEOF
19811
19812 fi
19813
19814 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19815 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19816 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819   ac_ext=cpp
19820 ac_cpp='$CXXCPP $CPPFLAGS'
19821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19824
19825    cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831 #include <ieeefp.h>
19832 int
19833 main ()
19834 {
19835 float f; finite(f);
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_compile") 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } &&
19854          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19855   { (case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860   (eval "$ac_try") 2>&5
19861   ac_status=$?
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); }; } &&
19864          { ac_try='test -s conftest.$ac_objext'
19865   { (case "(($ac_try" in
19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867   *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870   (eval "$ac_try") 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   ac_cv_func_finite_in_ieeefp_h=yes
19875 else
19876   echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879         ac_cv_func_finite_in_ieeefp_h=no
19880 fi
19881
19882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19883   ac_ext=c
19884 ac_cpp='$CPP $CPPFLAGS'
19885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19888
19889 fi
19890 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19891 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19892
19893 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19894
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_FINITE_IN_IEEEFP_H 1
19897 _ACEOF
19898
19899 fi
19900
19901
19902
19903 if test "$llvm_cv_platform_type" = "Unix" ; then
19904
19905
19906 for ac_header in stdlib.h unistd.h
19907 do
19908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 fi
19915 ac_res=`eval echo '${'$as_ac_Header'}'`
19916                { echo "$as_me:$LINENO: result: $ac_res" >&5
19917 echo "${ECHO_T}$ac_res" >&6; }
19918 else
19919   # Is the header compilable?
19920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h.  */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h.  */
19928 $ac_includes_default
19929 #include <$ac_header>
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935   *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938   (eval "$ac_compile") 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } &&
19945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19946   { (case "(($ac_try" in
19947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948   *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951   (eval "$ac_try") 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; } &&
19955          { ac_try='test -s conftest.$ac_objext'
19956   { (case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_try") 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; }; then
19965   ac_header_compiler=yes
19966 else
19967   echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970         ac_header_compiler=no
19971 fi
19972
19973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19975 echo "${ECHO_T}$ac_header_compiler" >&6; }
19976
19977 # Is the header present?
19978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 #include <$ac_header>
19987 _ACEOF
19988 if { (ac_try="$ac_cpp conftest.$ac_ext"
19989 case "(($ac_try" in
19990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991   *) ac_try_echo=$ac_try;;
19992 esac
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19995   ac_status=$?
19996   grep -v '^ *+' conftest.er1 >conftest.err
19997   rm -f conftest.er1
19998   cat conftest.err >&5
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } >/dev/null; then
20001   if test -s conftest.err; then
20002     ac_cpp_err=$ac_c_preproc_warn_flag
20003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20004   else
20005     ac_cpp_err=
20006   fi
20007 else
20008   ac_cpp_err=yes
20009 fi
20010 if test -z "$ac_cpp_err"; then
20011   ac_header_preproc=yes
20012 else
20013   echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016   ac_header_preproc=no
20017 fi
20018
20019 rm -f conftest.err conftest.$ac_ext
20020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021 echo "${ECHO_T}$ac_header_preproc" >&6; }
20022
20023 # So?  What about this header?
20024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20025   yes:no: )
20026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030     ac_header_preproc=yes
20031     ;;
20032   no:yes:* )
20033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20045     ( cat <<\_ASBOX
20046 ## ----------------------------------- ##
20047 ## Report this to llvmbugs@cs.uiuc.edu ##
20048 ## ----------------------------------- ##
20049 _ASBOX
20050      ) | sed "s/^/$as_me: WARNING:     /" >&2
20051     ;;
20052 esac
20053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20056   echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058   eval "$as_ac_Header=\$ac_header_preproc"
20059 fi
20060 ac_res=`eval echo '${'$as_ac_Header'}'`
20061                { echo "$as_me:$LINENO: result: $ac_res" >&5
20062 echo "${ECHO_T}$ac_res" >&6; }
20063
20064 fi
20065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20066   cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20068 _ACEOF
20069
20070 fi
20071
20072 done
20073
20074
20075 for ac_func in getpagesize
20076 do
20077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20081   echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083   cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20091 #define $ac_func innocuous_$ac_func
20092
20093 /* System header to define __stub macros and hopefully few prototypes,
20094     which can conflict with char $ac_func (); below.
20095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20096     <limits.h> exists even on freestanding compilers.  */
20097
20098 #ifdef __STDC__
20099 # include <limits.h>
20100 #else
20101 # include <assert.h>
20102 #endif
20103
20104 #undef $ac_func
20105
20106 /* Override any GCC internal prototype to avoid an error.
20107    Use char because int might match the return type of a GCC
20108    builtin and then its argument prototype would still apply.  */
20109 #ifdef __cplusplus
20110 extern "C"
20111 #endif
20112 char $ac_func ();
20113 /* The GNU C library defines this for functions which it implements
20114     to always fail with ENOSYS.  Some functions are actually named
20115     something starting with __ and the normal name is an alias.  */
20116 #if defined __stub_$ac_func || defined __stub___$ac_func
20117 choke me
20118 #endif
20119
20120 int
20121 main ()
20122 {
20123 return $ac_func ();
20124   ;
20125   return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135   (eval "$ac_link") 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143   { (case "(($ac_try" in
20144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145   *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148   (eval "$ac_try") 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; } &&
20152          { ac_try='test -s conftest$ac_exeext'
20153   { (case "(($ac_try" in
20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155   *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158   (eval "$ac_try") 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   eval "$as_ac_var=yes"
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167         eval "$as_ac_var=no"
20168 fi
20169
20170 rm -f core conftest.err conftest.$ac_objext \
20171       conftest$ac_exeext conftest.$ac_ext
20172 fi
20173 ac_res=`eval echo '${'$as_ac_var'}'`
20174                { echo "$as_me:$LINENO: result: $ac_res" >&5
20175 echo "${ECHO_T}$ac_res" >&6; }
20176 if test `eval echo '${'$as_ac_var'}'` = yes; then
20177   cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20179 _ACEOF
20180
20181 fi
20182 done
20183
20184 { echo "$as_me:$LINENO: checking for working mmap" >&5
20185 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20186 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20187   echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189   if test "$cross_compiling" = yes; then
20190   ac_cv_func_mmap_fixed_mapped=no
20191 else
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 $ac_includes_default
20199 /* malloc might have been renamed as rpl_malloc. */
20200 #undef malloc
20201
20202 /* Thanks to Mike Haertel and Jim Avera for this test.
20203    Here is a matrix of mmap possibilities:
20204         mmap private not fixed
20205         mmap private fixed at somewhere currently unmapped
20206         mmap private fixed at somewhere already mapped
20207         mmap shared not fixed
20208         mmap shared fixed at somewhere currently unmapped
20209         mmap shared fixed at somewhere already mapped
20210    For private mappings, we should verify that changes cannot be read()
20211    back from the file, nor mmap's back from the file at a different
20212    address.  (There have been systems where private was not correctly
20213    implemented like the infamous i386 svr4.0, and systems where the
20214    VM page cache was not coherent with the file system buffer cache
20215    like early versions of FreeBSD and possibly contemporary NetBSD.)
20216    For shared mappings, we should conversely verify that changes get
20217    propagated back to all the places they're supposed to be.
20218
20219    Grep wants private fixed already mapped.
20220    The main things grep needs to know about mmap are:
20221    * does it exist and is it safe to write into the mmap'd area
20222    * how to use it (BSD variants)  */
20223
20224 #include <fcntl.h>
20225 #include <sys/mman.h>
20226
20227 #if !STDC_HEADERS && !HAVE_STDLIB_H
20228 char *malloc ();
20229 #endif
20230
20231 /* This mess was copied from the GNU getpagesize.h.  */
20232 #if !HAVE_GETPAGESIZE
20233 /* Assume that all systems that can run configure have sys/param.h.  */
20234 # if !HAVE_SYS_PARAM_H
20235 #  define HAVE_SYS_PARAM_H 1
20236 # endif
20237
20238 # ifdef _SC_PAGESIZE
20239 #  define getpagesize() sysconf(_SC_PAGESIZE)
20240 # else /* no _SC_PAGESIZE */
20241 #  if HAVE_SYS_PARAM_H
20242 #   include <sys/param.h>
20243 #   ifdef EXEC_PAGESIZE
20244 #    define getpagesize() EXEC_PAGESIZE
20245 #   else /* no EXEC_PAGESIZE */
20246 #    ifdef NBPG
20247 #     define getpagesize() NBPG * CLSIZE
20248 #     ifndef CLSIZE
20249 #      define CLSIZE 1
20250 #     endif /* no CLSIZE */
20251 #    else /* no NBPG */
20252 #     ifdef NBPC
20253 #      define getpagesize() NBPC
20254 #     else /* no NBPC */
20255 #      ifdef PAGESIZE
20256 #       define getpagesize() PAGESIZE
20257 #      endif /* PAGESIZE */
20258 #     endif /* no NBPC */
20259 #    endif /* no NBPG */
20260 #   endif /* no EXEC_PAGESIZE */
20261 #  else /* no HAVE_SYS_PARAM_H */
20262 #   define getpagesize() 8192   /* punt totally */
20263 #  endif /* no HAVE_SYS_PARAM_H */
20264 # endif /* no _SC_PAGESIZE */
20265
20266 #endif /* no HAVE_GETPAGESIZE */
20267
20268 int
20269 main ()
20270 {
20271   char *data, *data2, *data3;
20272   int i, pagesize;
20273   int fd;
20274
20275   pagesize = getpagesize ();
20276
20277   /* First, make a file with some known garbage in it. */
20278   data = (char *) malloc (pagesize);
20279   if (!data)
20280     return 1;
20281   for (i = 0; i < pagesize; ++i)
20282     *(data + i) = rand ();
20283   umask (0);
20284   fd = creat ("conftest.mmap", 0600);
20285   if (fd < 0)
20286     return 1;
20287   if (write (fd, data, pagesize) != pagesize)
20288     return 1;
20289   close (fd);
20290
20291   /* Next, try to mmap the file at a fixed address which already has
20292      something else allocated at it.  If we can, also make sure that
20293      we see the same garbage.  */
20294   fd = open ("conftest.mmap", O_RDWR);
20295   if (fd < 0)
20296     return 1;
20297   data2 = (char *) malloc (2 * pagesize);
20298   if (!data2)
20299     return 1;
20300   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20301   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20302                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20303     return 1;
20304   for (i = 0; i < pagesize; ++i)
20305     if (*(data + i) != *(data2 + i))
20306       return 1;
20307
20308   /* Finally, make sure that changes to the mapped area do not
20309      percolate back to the file as seen by read().  (This is a bug on
20310      some variants of i386 svr4.0.)  */
20311   for (i = 0; i < pagesize; ++i)
20312     *(data2 + i) = *(data2 + i) + 1;
20313   data3 = (char *) malloc (pagesize);
20314   if (!data3)
20315     return 1;
20316   if (read (fd, data3, pagesize) != pagesize)
20317     return 1;
20318   for (i = 0; i < pagesize; ++i)
20319     if (*(data + i) != *(data3 + i))
20320       return 1;
20321   close (fd);
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332   (eval "$ac_link") 2>&5
20333   ac_status=$?
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336   { (case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_try") 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   ac_cv_func_mmap_fixed_mapped=yes
20346 else
20347   echo "$as_me: program exited with status $ac_status" >&5
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 ( exit $ac_status )
20352 ac_cv_func_mmap_fixed_mapped=no
20353 fi
20354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20355 fi
20356
20357
20358 fi
20359 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20360 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20361 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20362
20363 cat >>confdefs.h <<\_ACEOF
20364 #define HAVE_MMAP 1
20365 _ACEOF
20366
20367 fi
20368 rm -f conftest.mmap
20369
20370   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20371 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20372 if test "${ac_cv_func_mmap_file+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375    ac_ext=c
20376 ac_cpp='$CPP $CPPFLAGS'
20377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20380
20381   if test "$cross_compiling" = yes; then
20382   ac_cv_func_mmap_file=no
20383 else
20384   cat >conftest.$ac_ext <<_ACEOF
20385
20386     /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391
20392 #include <sys/types.h>
20393 #include <sys/mman.h>
20394 #include <fcntl.h>
20395
20396 int
20397 main ()
20398 {
20399
20400   int fd;
20401   fd = creat ("foo",0777);
20402   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20403   unlink ("foo");
20404   return (fd != (int) MAP_FAILED);
20405   ;
20406   return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_link") 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20420   { (case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_try") 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_cv_func_mmap_file=yes
20430 else
20431   echo "$as_me: program exited with status $ac_status" >&5
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ( exit $ac_status )
20436 ac_cv_func_mmap_file=no
20437 fi
20438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20439 fi
20440
20441
20442   ac_ext=c
20443 ac_cpp='$CPP $CPPFLAGS'
20444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447
20448
20449 fi
20450 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20451 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20452 if test "$ac_cv_func_mmap_file" = yes; then
20453
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_MMAP_FILE
20456 _ACEOF
20457
20458    MMAP_FILE=yes
20459
20460 fi
20461
20462   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20463 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20464 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   if test "$llvm_cv_os_type" = "Interix" ; then
20468    ac_cv_need_dev_zero_for_mmap=yes
20469  else
20470    ac_cv_need_dev_zero_for_mmap=no
20471  fi
20472
20473 fi
20474 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20475 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20476 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define NEED_DEV_ZERO_FOR_MMAP 1
20480 _ACEOF
20481
20482 fi
20483
20484   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20485   then
20486     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20487 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20488   fi
20489   if test "$ac_cv_func_mmap_file" = "no"
20490   then
20491     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20492 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20493   fi
20494 fi
20495
20496 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20497 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20498 ac_ext=cpp
20499 ac_cpp='$CXXCPP $CPPFLAGS'
20500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20503
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 int main() {
20511         volatile unsigned long val = 1;
20512         __sync_synchronize();
20513         __sync_val_compare_and_swap(&val, 1, 0);
20514         __sync_add_and_fetch(&val, 1);
20515         __sync_sub_and_fetch(&val, 1);
20516         return 0;
20517       }
20518
20519 _ACEOF
20520 rm -f conftest.$ac_objext conftest$ac_exeext
20521 if { (ac_try="$ac_link"
20522 case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_link") 2>conftest.er1
20528   ac_status=$?
20529   grep -v '^ *+' conftest.er1 >conftest.err
20530   rm -f conftest.er1
20531   cat conftest.err >&5
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); } &&
20534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535   { (case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_try") 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; } &&
20544          { ac_try='test -s conftest$ac_exeext'
20545   { (case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_try") 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_ext=c
20555 ac_cpp='$CPP $CPPFLAGS'
20556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20559
20560   { echo "$as_me:$LINENO: result: yes" >&5
20561 echo "${ECHO_T}yes" >&6; }
20562
20563 cat >>confdefs.h <<\_ACEOF
20564 #define LLVM_HAS_ATOMICS 1
20565 _ACEOF
20566
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571         { echo "$as_me:$LINENO: result: no" >&5
20572 echo "${ECHO_T}no" >&6; }
20573
20574 cat >>confdefs.h <<\_ACEOF
20575 #define LLVM_HAS_ATOMICS 0
20576 _ACEOF
20577
20578   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20579 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext \
20583       conftest$ac_exeext conftest.$ac_ext
20584
20585
20586 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20587   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20588 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20589 if test "${llvm_cv_linux_mixed+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592    ac_ext=c
20593 ac_cpp='$CPP $CPPFLAGS'
20594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597
20598   cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h.  */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h.  */
20604 #ifndef __x86_64__
20605        error: Not x86-64 even if uname says so!
20606       #endif
20607
20608 int
20609 main ()
20610 {
20611
20612   ;
20613   return 0;
20614 }
20615 _ACEOF
20616 rm -f conftest.$ac_objext
20617 if { (ac_try="$ac_compile"
20618 case "(($ac_try" in
20619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620   *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623   (eval "$ac_compile") 2>conftest.er1
20624   ac_status=$?
20625   grep -v '^ *+' conftest.er1 >conftest.err
20626   rm -f conftest.er1
20627   cat conftest.err >&5
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); } &&
20630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20631   { (case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_try") 2>&5
20637   ac_status=$?
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); }; } &&
20640          { ac_try='test -s conftest.$ac_objext'
20641   { (case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_try") 2>&5
20647   ac_status=$?
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); }; }; then
20650   llvm_cv_linux_mixed=no
20651 else
20652   echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655         llvm_cv_linux_mixed=yes
20656 fi
20657
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659   ac_ext=c
20660 ac_cpp='$CPP $CPPFLAGS'
20661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664
20665
20666 fi
20667 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20668 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20669
20670   if test "$llvm_cv_linux_mixed" = "yes"; then
20671     llvm_cv_target_arch="x86"
20672     ARCH="x86"
20673   fi
20674 fi
20675
20676
20677 for ac_func in __dso_handle
20678 do
20679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20683   echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685   cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h.  */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h.  */
20691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20693 #define $ac_func innocuous_$ac_func
20694
20695 /* System header to define __stub macros and hopefully few prototypes,
20696     which can conflict with char $ac_func (); below.
20697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20698     <limits.h> exists even on freestanding compilers.  */
20699
20700 #ifdef __STDC__
20701 # include <limits.h>
20702 #else
20703 # include <assert.h>
20704 #endif
20705
20706 #undef $ac_func
20707
20708 /* Override any GCC internal prototype to avoid an error.
20709    Use char because int might match the return type of a GCC
20710    builtin and then its argument prototype would still apply.  */
20711 #ifdef __cplusplus
20712 extern "C"
20713 #endif
20714 char $ac_func ();
20715 /* The GNU C library defines this for functions which it implements
20716     to always fail with ENOSYS.  Some functions are actually named
20717     something starting with __ and the normal name is an alias.  */
20718 #if defined __stub_$ac_func || defined __stub___$ac_func
20719 choke me
20720 #endif
20721
20722 int
20723 main ()
20724 {
20725 return $ac_func ();
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (ac_try="$ac_link"
20732 case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_link") 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } &&
20744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745   { (case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_try") 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; } &&
20754          { ac_try='test -s conftest$ac_exeext'
20755   { (case "(($ac_try" in
20756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757   *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760   (eval "$ac_try") 2>&5
20761   ac_status=$?
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); }; }; then
20764   eval "$as_ac_var=yes"
20765 else
20766   echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769         eval "$as_ac_var=no"
20770 fi
20771
20772 rm -f core conftest.err conftest.$ac_objext \
20773       conftest$ac_exeext conftest.$ac_ext
20774 fi
20775 ac_res=`eval echo '${'$as_ac_var'}'`
20776                { echo "$as_me:$LINENO: result: $ac_res" >&5
20777 echo "${ECHO_T}$ac_res" >&6; }
20778 if test `eval echo '${'$as_ac_var'}'` = yes; then
20779   cat >>confdefs.h <<_ACEOF
20780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20781 _ACEOF
20782
20783 fi
20784 done
20785
20786
20787 SHLIBEXT=$libltdl_cv_shlibext
20788
20789
20790 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20791
20792
20793 # Translate the various configuration directories and other basic
20794 # information into substitutions that will end up in Makefile.config.in
20795 # that these configured values can be used by the makefiles
20796 if test "${prefix}" = "NONE" ; then
20797   prefix="/usr/local"
20798 fi
20799 eval LLVM_PREFIX="${prefix}";
20800 eval LLVM_BINDIR="${prefix}/bin";
20801 eval LLVM_LIBDIR="${prefix}/lib";
20802 eval LLVM_DATADIR="${prefix}/share/llvm";
20803 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20804 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20805 eval LLVM_INCLUDEDIR="${prefix}/include";
20806 eval LLVM_INFODIR="${prefix}/info";
20807 eval LLVM_MANDIR="${prefix}/man";
20808 LLVM_CONFIGTIME=`date`
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820 # Place the various directores into the config.h file as #defines so that we
20821 # can know about the installation paths within LLVM.
20822
20823 cat >>confdefs.h <<_ACEOF
20824 #define LLVM_PREFIX "$LLVM_PREFIX"
20825 _ACEOF
20826
20827
20828 cat >>confdefs.h <<_ACEOF
20829 #define LLVM_BINDIR "$LLVM_BINDIR"
20830 _ACEOF
20831
20832
20833 cat >>confdefs.h <<_ACEOF
20834 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20835 _ACEOF
20836
20837
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_DATADIR "$LLVM_DATADIR"
20840 _ACEOF
20841
20842
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20845 _ACEOF
20846
20847
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20850 _ACEOF
20851
20852
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20855 _ACEOF
20856
20857
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_INFODIR "$LLVM_INFODIR"
20860 _ACEOF
20861
20862
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_MANDIR "$LLVM_MANDIR"
20865 _ACEOF
20866
20867
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20870 _ACEOF
20871
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_HOSTTRIPLE "$host"
20875 _ACEOF
20876
20877
20878 # Determine which bindings to build.
20879 if test "$BINDINGS_TO_BUILD" = auto ; then
20880   BINDINGS_TO_BUILD=""
20881   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20882     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20883   fi
20884 fi
20885 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20886
20887
20888 # This isn't really configurey, but it avoids having to repeat the list in
20889 # other files.
20890 ALL_BINDINGS=ocaml
20891
20892
20893 # Do any work necessary to ensure that bindings have what they need.
20894 binding_prereqs_failed=0
20895 for a_binding in $BINDINGS_TO_BUILD ; do
20896   case "$a_binding" in
20897   ocaml)
20898     if test "x$OCAMLC" = x ; then
20899       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20900 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20901       binding_prereqs_failed=1
20902     fi
20903     if test "x$OCAMLDEP" = x ; then
20904       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20905 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20906       binding_prereqs_failed=1
20907     fi
20908     if test "x$OCAMLOPT" = x ; then
20909       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20910 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20911           fi
20912     if test "x$with_ocaml_libdir" != xauto ; then
20913       OCAML_LIBDIR=$with_ocaml_libdir
20914
20915     else
20916       ocaml_stdlib="`"$OCAMLC" -where`"
20917       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20918       then
20919         # ocaml stdlib is beneath our prefix; use stdlib
20920         OCAML_LIBDIR=$ocaml_stdlib
20921
20922       else
20923         # ocaml stdlib is outside our prefix; use libdir/ocaml
20924         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20925
20926       fi
20927     fi
20928     ;;
20929   esac
20930 done
20931 if test "$binding_prereqs_failed" = 1 ; then
20932   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20933 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20934    { (exit 1); exit 1; }; }
20935 fi
20936
20937 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20938 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20939 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20940   echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942    ac_ext=cpp
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948   oldcxxflags="$CXXFLAGS"
20949   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20950   cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956
20957 int
20958 main ()
20959 {
20960
20961   ;
20962   return 0;
20963 }
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969   *) ac_try_echo=$ac_try;;
20970 esac
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972   (eval "$ac_compile") 2>conftest.er1
20973   ac_status=$?
20974   grep -v '^ *+' conftest.er1 >conftest.err
20975   rm -f conftest.er1
20976   cat conftest.err >&5
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); } &&
20979          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20980   { (case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985   (eval "$ac_try") 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); }; } &&
20989          { ac_try='test -s conftest.$ac_objext'
20990   { (case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_try") 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; }; then
20999   llvm_cv_cxx_visibility_inlines_hidden=yes
21000 else
21001   echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004         llvm_cv_cxx_visibility_inlines_hidden=no
21005 fi
21006
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008   CXXFLAGS="$oldcxxflags"
21009   ac_ext=c
21010 ac_cpp='$CPP $CPPFLAGS'
21011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016 fi
21017 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21018 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21019 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21020   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21021
21022 else
21023   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21024
21025 fi
21026
21027
21028 if test "$llvm_cv_link_use_r" = "yes" ; then
21029   RPATH="-Wl,-R"
21030 else
21031   RPATH="-Wl,-rpath"
21032 fi
21033
21034
21035 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21036   RDYNAMIC="-Wl,-export-dynamic"
21037 else
21038   RDYNAMIC=""
21039 fi
21040
21041
21042
21043 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21044
21045
21046
21047
21048
21049
21050 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21051
21052 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21053
21054 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21055
21056 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21057
21058 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21059
21060
21061 ac_config_files="$ac_config_files Makefile.config"
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 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21076
21077 ac_config_commands="$ac_config_commands setup"
21078
21079 ac_config_commands="$ac_config_commands Makefile"
21080
21081
21082 ac_config_commands="$ac_config_commands Makefile.common"
21083
21084
21085 ac_config_commands="$ac_config_commands examples/Makefile"
21086
21087
21088 ac_config_commands="$ac_config_commands lib/Makefile"
21089
21090
21091 ac_config_commands="$ac_config_commands runtime/Makefile"
21092
21093
21094 ac_config_commands="$ac_config_commands test/Makefile"
21095
21096
21097 ac_config_commands="$ac_config_commands test/Makefile.tests"
21098
21099
21100 ac_config_commands="$ac_config_commands unittests/Makefile"
21101
21102
21103 ac_config_commands="$ac_config_commands tools/Makefile"
21104
21105
21106 ac_config_commands="$ac_config_commands utils/Makefile"
21107
21108
21109 ac_config_commands="$ac_config_commands projects/Makefile"
21110
21111
21112 ac_config_commands="$ac_config_commands bindings/Makefile"
21113
21114
21115 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21116
21117
21118
21119 cat >confcache <<\_ACEOF
21120 # This file is a shell script that caches the results of configure
21121 # tests run on this system so they can be shared between configure
21122 # scripts and configure runs, see configure's option --config-cache.
21123 # It is not useful on other systems.  If it contains results you don't
21124 # want to keep, you may remove or edit it.
21125 #
21126 # config.status only pays attention to the cache file if you give it
21127 # the --recheck option to rerun configure.
21128 #
21129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21131 # following values.
21132
21133 _ACEOF
21134
21135 # The following way of writing the cache mishandles newlines in values,
21136 # but we know of no workaround that is simple, portable, and efficient.
21137 # So, we kill variables containing newlines.
21138 # Ultrix sh set writes to stderr and can't be redirected directly,
21139 # and sets the high bit in the cache file unless we assign to the vars.
21140 (
21141   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21142     eval ac_val=\$$ac_var
21143     case $ac_val in #(
21144     *${as_nl}*)
21145       case $ac_var in #(
21146       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21147 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21148       esac
21149       case $ac_var in #(
21150       _ | IFS | as_nl) ;; #(
21151       *) $as_unset $ac_var ;;
21152       esac ;;
21153     esac
21154   done
21155
21156   (set) 2>&1 |
21157     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21158     *${as_nl}ac_space=\ *)
21159       # `set' does not quote correctly, so add quotes (double-quote
21160       # substitution turns \\\\ into \\, and sed turns \\ into \).
21161       sed -n \
21162         "s/'/'\\\\''/g;
21163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21164       ;; #(
21165     *)
21166       # `set' quotes correctly as required by POSIX, so do not add quotes.
21167       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21168       ;;
21169     esac |
21170     sort
21171 ) |
21172   sed '
21173      /^ac_cv_env_/b end
21174      t clear
21175      :clear
21176      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21177      t end
21178      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21179      :end' >>confcache
21180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21181   if test -w "$cache_file"; then
21182     test "x$cache_file" != "x/dev/null" &&
21183       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21184 echo "$as_me: updating cache $cache_file" >&6;}
21185     cat confcache >$cache_file
21186   else
21187     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21188 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21189   fi
21190 fi
21191 rm -f confcache
21192
21193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21194 # Let make expand exec_prefix.
21195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21196
21197 DEFS=-DHAVE_CONFIG_H
21198
21199 ac_libobjs=
21200 ac_ltlibobjs=
21201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21202   # 1. Remove the extension, and $U if already installed.
21203   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21204   ac_i=`echo "$ac_i" | sed "$ac_script"`
21205   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21206   #    will be set to the directory where LIBOBJS objects are built.
21207   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21208   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21209 done
21210 LIBOBJS=$ac_libobjs
21211
21212 LTLIBOBJS=$ac_ltlibobjs
21213
21214
21215 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21216   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21217 Usually this means the macro was only invoked conditionally." >&5
21218 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&2;}
21220    { (exit 1); exit 1; }; }
21221 fi
21222 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21223   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21224 Usually this means the macro was only invoked conditionally." >&5
21225 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&2;}
21227    { (exit 1); exit 1; }; }
21228 fi
21229
21230 : ${CONFIG_STATUS=./config.status}
21231 ac_clean_files_save=$ac_clean_files
21232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21235 cat >$CONFIG_STATUS <<_ACEOF
21236 #! $SHELL
21237 # Generated by $as_me.
21238 # Run this file to recreate the current configuration.
21239 # Compiler output produced by configure, useful for debugging
21240 # configure, is in config.log if it exists.
21241
21242 debug=false
21243 ac_cs_recheck=false
21244 ac_cs_silent=false
21245 SHELL=\${CONFIG_SHELL-$SHELL}
21246 _ACEOF
21247
21248 cat >>$CONFIG_STATUS <<\_ACEOF
21249 ## --------------------- ##
21250 ## M4sh Initialization.  ##
21251 ## --------------------- ##
21252
21253 # Be Bourne compatible
21254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21255   emulate sh
21256   NULLCMD=:
21257   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21258   # is contrary to our usage.  Disable this feature.
21259   alias -g '${1+"$@"}'='"$@"'
21260   setopt NO_GLOB_SUBST
21261 else
21262   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21263 fi
21264 BIN_SH=xpg4; export BIN_SH # for Tru64
21265 DUALCASE=1; export DUALCASE # for MKS sh
21266
21267
21268 # PATH needs CR
21269 # Avoid depending upon Character Ranges.
21270 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21271 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21272 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21273 as_cr_digits='0123456789'
21274 as_cr_alnum=$as_cr_Letters$as_cr_digits
21275
21276 # The user is always right.
21277 if test "${PATH_SEPARATOR+set}" != set; then
21278   echo "#! /bin/sh" >conf$$.sh
21279   echo  "exit 0"   >>conf$$.sh
21280   chmod +x conf$$.sh
21281   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21282     PATH_SEPARATOR=';'
21283   else
21284     PATH_SEPARATOR=:
21285   fi
21286   rm -f conf$$.sh
21287 fi
21288
21289 # Support unset when possible.
21290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21291   as_unset=unset
21292 else
21293   as_unset=false
21294 fi
21295
21296
21297 # IFS
21298 # We need space, tab and new line, in precisely that order.  Quoting is
21299 # there to prevent editors from complaining about space-tab.
21300 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21301 # splitting by setting IFS to empty value.)
21302 as_nl='
21303 '
21304 IFS=" ""        $as_nl"
21305
21306 # Find who we are.  Look in the path if we contain no directory separator.
21307 case $0 in
21308   *[\\/]* ) as_myself=$0 ;;
21309   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21310 for as_dir in $PATH
21311 do
21312   IFS=$as_save_IFS
21313   test -z "$as_dir" && as_dir=.
21314   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21315 done
21316 IFS=$as_save_IFS
21317
21318      ;;
21319 esac
21320 # We did not find ourselves, most probably we were run as `sh COMMAND'
21321 # in which case we are not to be found in the path.
21322 if test "x$as_myself" = x; then
21323   as_myself=$0
21324 fi
21325 if test ! -f "$as_myself"; then
21326   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21327   { (exit 1); exit 1; }
21328 fi
21329
21330 # Work around bugs in pre-3.0 UWIN ksh.
21331 for as_var in ENV MAIL MAILPATH
21332 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21333 done
21334 PS1='$ '
21335 PS2='> '
21336 PS4='+ '
21337
21338 # NLS nuisances.
21339 for as_var in \
21340   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21341   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21342   LC_TELEPHONE LC_TIME
21343 do
21344   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21345     eval $as_var=C; export $as_var
21346   else
21347     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21348   fi
21349 done
21350
21351 # Required to use basename.
21352 if expr a : '\(a\)' >/dev/null 2>&1 &&
21353    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21354   as_expr=expr
21355 else
21356   as_expr=false
21357 fi
21358
21359 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21360   as_basename=basename
21361 else
21362   as_basename=false
21363 fi
21364
21365
21366 # Name of the executable.
21367 as_me=`$as_basename -- "$0" ||
21368 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21369          X"$0" : 'X\(//\)$' \| \
21370          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21371 echo X/"$0" |
21372     sed '/^.*\/\([^/][^/]*\)\/*$/{
21373             s//\1/
21374             q
21375           }
21376           /^X\/\(\/\/\)$/{
21377             s//\1/
21378             q
21379           }
21380           /^X\/\(\/\).*/{
21381             s//\1/
21382             q
21383           }
21384           s/.*/./; q'`
21385
21386 # CDPATH.
21387 $as_unset CDPATH
21388
21389
21390
21391   as_lineno_1=$LINENO
21392   as_lineno_2=$LINENO
21393   test "x$as_lineno_1" != "x$as_lineno_2" &&
21394   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21395
21396   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21397   # uniformly replaced by the line number.  The first 'sed' inserts a
21398   # line-number line after each line using $LINENO; the second 'sed'
21399   # does the real work.  The second script uses 'N' to pair each
21400   # line-number line with the line containing $LINENO, and appends
21401   # trailing '-' during substitution so that $LINENO is not a special
21402   # case at line end.
21403   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21404   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21405   # E. McMahon (1931-1989) for sed's syntax.  :-)
21406   sed -n '
21407     p
21408     /[$]LINENO/=
21409   ' <$as_myself |
21410     sed '
21411       s/[$]LINENO.*/&-/
21412       t lineno
21413       b
21414       :lineno
21415       N
21416       :loop
21417       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21418       t loop
21419       s/-\n.*//
21420     ' >$as_me.lineno &&
21421   chmod +x "$as_me.lineno" ||
21422     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21423    { (exit 1); exit 1; }; }
21424
21425   # Don't try to exec as it changes $[0], causing all sort of problems
21426   # (the dirname of $[0] is not the place where we might find the
21427   # original and so on.  Autoconf is especially sensitive to this).
21428   . "./$as_me.lineno"
21429   # Exit status is that of the last command.
21430   exit
21431 }
21432
21433
21434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21435   as_dirname=dirname
21436 else
21437   as_dirname=false
21438 fi
21439
21440 ECHO_C= ECHO_N= ECHO_T=
21441 case `echo -n x` in
21442 -n*)
21443   case `echo 'x\c'` in
21444   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21445   *)   ECHO_C='\c';;
21446   esac;;
21447 *)
21448   ECHO_N='-n';;
21449 esac
21450
21451 if expr a : '\(a\)' >/dev/null 2>&1 &&
21452    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21453   as_expr=expr
21454 else
21455   as_expr=false
21456 fi
21457
21458 rm -f conf$$ conf$$.exe conf$$.file
21459 if test -d conf$$.dir; then
21460   rm -f conf$$.dir/conf$$.file
21461 else
21462   rm -f conf$$.dir
21463   mkdir conf$$.dir
21464 fi
21465 echo >conf$$.file
21466 if ln -s conf$$.file conf$$ 2>/dev/null; then
21467   as_ln_s='ln -s'
21468   # ... but there are two gotchas:
21469   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21470   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21471   # In both cases, we have to default to `cp -p'.
21472   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21473     as_ln_s='cp -p'
21474 elif ln conf$$.file conf$$ 2>/dev/null; then
21475   as_ln_s=ln
21476 else
21477   as_ln_s='cp -p'
21478 fi
21479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21480 rmdir conf$$.dir 2>/dev/null
21481
21482 if mkdir -p . 2>/dev/null; then
21483   as_mkdir_p=:
21484 else
21485   test -d ./-p && rmdir ./-p
21486   as_mkdir_p=false
21487 fi
21488
21489 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21490 # systems may use methods other than mode bits to determine executability.
21491 cat >conf$$.file <<_ASEOF
21492 #! /bin/sh
21493 exit 0
21494 _ASEOF
21495 chmod +x conf$$.file
21496 if test -x conf$$.file >/dev/null 2>&1; then
21497   as_executable_p="test -x"
21498 else
21499   as_executable_p=:
21500 fi
21501 rm -f conf$$.file
21502
21503 # Sed expression to map a string onto a valid CPP name.
21504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21505
21506 # Sed expression to map a string onto a valid variable name.
21507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21508
21509
21510 exec 6>&1
21511
21512 # Save the log message, to keep $[0] and so on meaningful, and to
21513 # report actual input values of CONFIG_FILES etc. instead of their
21514 # values after options handling.
21515 ac_log="
21516 This file was extended by llvm $as_me 3.1svn, which was
21517 generated by GNU Autoconf 2.60.  Invocation command line was
21518
21519   CONFIG_FILES    = $CONFIG_FILES
21520   CONFIG_HEADERS  = $CONFIG_HEADERS
21521   CONFIG_LINKS    = $CONFIG_LINKS
21522   CONFIG_COMMANDS = $CONFIG_COMMANDS
21523   $ $0 $@
21524
21525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21526 "
21527
21528 _ACEOF
21529
21530 cat >>$CONFIG_STATUS <<_ACEOF
21531 # Files that config.status was made for.
21532 config_files="$ac_config_files"
21533 config_headers="$ac_config_headers"
21534 config_commands="$ac_config_commands"
21535
21536 _ACEOF
21537
21538 cat >>$CONFIG_STATUS <<\_ACEOF
21539 ac_cs_usage="\
21540 \`$as_me' instantiates files from templates according to the
21541 current configuration.
21542
21543 Usage: $0 [OPTIONS] [FILE]...
21544
21545   -h, --help       print this help, then exit
21546   -V, --version    print version number, then exit
21547   -q, --quiet      do not print progress messages
21548   -d, --debug      don't remove temporary files
21549       --recheck    update $as_me by reconfiguring in the same conditions
21550   --file=FILE[:TEMPLATE]
21551                    instantiate the configuration file FILE
21552   --header=FILE[:TEMPLATE]
21553                    instantiate the configuration header FILE
21554
21555 Configuration files:
21556 $config_files
21557
21558 Configuration headers:
21559 $config_headers
21560
21561 Configuration commands:
21562 $config_commands
21563
21564 Report bugs to <bug-autoconf@gnu.org>."
21565
21566 _ACEOF
21567 cat >>$CONFIG_STATUS <<_ACEOF
21568 ac_cs_version="\\
21569 llvm config.status 3.1svn
21570 configured by $0, generated by GNU Autoconf 2.60,
21571   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21572
21573 Copyright (C) 2006 Free Software Foundation, Inc.
21574 This config.status script is free software; the Free Software Foundation
21575 gives unlimited permission to copy, distribute and modify it."
21576
21577 ac_pwd='$ac_pwd'
21578 srcdir='$srcdir'
21579 INSTALL='$INSTALL'
21580 _ACEOF
21581
21582 cat >>$CONFIG_STATUS <<\_ACEOF
21583 # If no file are specified by the user, then we need to provide default
21584 # value.  By we need to know if files were specified by the user.
21585 ac_need_defaults=:
21586 while test $# != 0
21587 do
21588   case $1 in
21589   --*=*)
21590     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21591     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21592     ac_shift=:
21593     ;;
21594   *)
21595     ac_option=$1
21596     ac_optarg=$2
21597     ac_shift=shift
21598     ;;
21599   esac
21600
21601   case $ac_option in
21602   # Handling of the options.
21603   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21604     ac_cs_recheck=: ;;
21605   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21606     echo "$ac_cs_version"; exit ;;
21607   --debug | --debu | --deb | --de | --d | -d )
21608     debug=: ;;
21609   --file | --fil | --fi | --f )
21610     $ac_shift
21611     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21612     ac_need_defaults=false;;
21613   --header | --heade | --head | --hea )
21614     $ac_shift
21615     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21616     ac_need_defaults=false;;
21617   --he | --h)
21618     # Conflict between --help and --header
21619     { echo "$as_me: error: ambiguous option: $1
21620 Try \`$0 --help' for more information." >&2
21621    { (exit 1); exit 1; }; };;
21622   --help | --hel | -h )
21623     echo "$ac_cs_usage"; exit ;;
21624   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21625   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21626     ac_cs_silent=: ;;
21627
21628   # This is an error.
21629   -*) { echo "$as_me: error: unrecognized option: $1
21630 Try \`$0 --help' for more information." >&2
21631    { (exit 1); exit 1; }; } ;;
21632
21633   *) ac_config_targets="$ac_config_targets $1"
21634      ac_need_defaults=false ;;
21635
21636   esac
21637   shift
21638 done
21639
21640 ac_configure_extra_args=
21641
21642 if $ac_cs_silent; then
21643   exec 6>/dev/null
21644   ac_configure_extra_args="$ac_configure_extra_args --silent"
21645 fi
21646
21647 _ACEOF
21648 cat >>$CONFIG_STATUS <<_ACEOF
21649 if \$ac_cs_recheck; then
21650   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21651   CONFIG_SHELL=$SHELL
21652   export CONFIG_SHELL
21653   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21654 fi
21655
21656 _ACEOF
21657 cat >>$CONFIG_STATUS <<\_ACEOF
21658 exec 5>>config.log
21659 {
21660   echo
21661   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21662 ## Running $as_me. ##
21663 _ASBOX
21664   echo "$ac_log"
21665 } >&5
21666
21667 _ACEOF
21668 cat >>$CONFIG_STATUS <<_ACEOF
21669 #
21670 # INIT-COMMANDS
21671 #
21672 llvm_src="${srcdir}"
21673
21674 _ACEOF
21675
21676 cat >>$CONFIG_STATUS <<\_ACEOF
21677
21678 # Handling of arguments.
21679 for ac_config_target in $ac_config_targets
21680 do
21681   case $ac_config_target in
21682     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21683     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21684     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21685     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21686     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21687     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21688     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21689     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21690     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21691     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21692     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21693     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21694     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21695     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21696     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21697     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21698     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21699     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21700     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21701     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21702     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21703     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21704     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21705     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21706     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21707     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21708
21709   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21710 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21711    { (exit 1); exit 1; }; };;
21712   esac
21713 done
21714
21715
21716 # If the user did not use the arguments to specify the items to instantiate,
21717 # then the envvar interface is used.  Set only those that are not.
21718 # We use the long form for the default assignment because of an extremely
21719 # bizarre bug on SunOS 4.1.3.
21720 if $ac_need_defaults; then
21721   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21722   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21723   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21724 fi
21725
21726 # Have a temporary directory for convenience.  Make it in the build tree
21727 # simply because there is no reason against having it here, and in addition,
21728 # creating and moving files from /tmp can sometimes cause problems.
21729 # Hook for its removal unless debugging.
21730 # Note that there is a small window in which the directory will not be cleaned:
21731 # after its creation but before its name has been assigned to `$tmp'.
21732 $debug ||
21733 {
21734   tmp=
21735   trap 'exit_status=$?
21736   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21737 ' 0
21738   trap '{ (exit 1); exit 1; }' 1 2 13 15
21739 }
21740 # Create a (secure) tmp directory for tmp files.
21741
21742 {
21743   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21744   test -n "$tmp" && test -d "$tmp"
21745 }  ||
21746 {
21747   tmp=./conf$$-$RANDOM
21748   (umask 077 && mkdir "$tmp")
21749 } ||
21750 {
21751    echo "$me: cannot create a temporary directory in ." >&2
21752    { (exit 1); exit 1; }
21753 }
21754
21755 #
21756 # Set up the sed scripts for CONFIG_FILES section.
21757 #
21758
21759 # No need to generate the scripts if there are no CONFIG_FILES.
21760 # This happens for instance when ./config.status config.h
21761 if test -n "$CONFIG_FILES"; then
21762
21763 _ACEOF
21764
21765
21766
21767 ac_delim='%!_!# '
21768 for ac_last_try in false false false false false :; do
21769   cat >conf$$subs.sed <<_ACEOF
21770 SHELL!$SHELL$ac_delim
21771 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21772 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21773 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21774 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21775 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21776 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21777 exec_prefix!$exec_prefix$ac_delim
21778 prefix!$prefix$ac_delim
21779 program_transform_name!$program_transform_name$ac_delim
21780 bindir!$bindir$ac_delim
21781 sbindir!$sbindir$ac_delim
21782 libexecdir!$libexecdir$ac_delim
21783 datarootdir!$datarootdir$ac_delim
21784 datadir!$datadir$ac_delim
21785 sysconfdir!$sysconfdir$ac_delim
21786 sharedstatedir!$sharedstatedir$ac_delim
21787 localstatedir!$localstatedir$ac_delim
21788 includedir!$includedir$ac_delim
21789 oldincludedir!$oldincludedir$ac_delim
21790 docdir!$docdir$ac_delim
21791 infodir!$infodir$ac_delim
21792 htmldir!$htmldir$ac_delim
21793 dvidir!$dvidir$ac_delim
21794 pdfdir!$pdfdir$ac_delim
21795 psdir!$psdir$ac_delim
21796 libdir!$libdir$ac_delim
21797 localedir!$localedir$ac_delim
21798 mandir!$mandir$ac_delim
21799 DEFS!$DEFS$ac_delim
21800 ECHO_C!$ECHO_C$ac_delim
21801 ECHO_N!$ECHO_N$ac_delim
21802 ECHO_T!$ECHO_T$ac_delim
21803 LIBS!$LIBS$ac_delim
21804 build_alias!$build_alias$ac_delim
21805 host_alias!$host_alias$ac_delim
21806 target_alias!$target_alias$ac_delim
21807 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21808 CC!$CC$ac_delim
21809 CFLAGS!$CFLAGS$ac_delim
21810 LDFLAGS!$LDFLAGS$ac_delim
21811 CPPFLAGS!$CPPFLAGS$ac_delim
21812 ac_ct_CC!$ac_ct_CC$ac_delim
21813 EXEEXT!$EXEEXT$ac_delim
21814 OBJEXT!$OBJEXT$ac_delim
21815 CXX!$CXX$ac_delim
21816 CXXFLAGS!$CXXFLAGS$ac_delim
21817 ac_ct_CXX!$ac_ct_CXX$ac_delim
21818 CPP!$CPP$ac_delim
21819 subdirs!$subdirs$ac_delim
21820 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21821 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21822 build!$build$ac_delim
21823 build_cpu!$build_cpu$ac_delim
21824 build_vendor!$build_vendor$ac_delim
21825 build_os!$build_os$ac_delim
21826 host!$host$ac_delim
21827 host_cpu!$host_cpu$ac_delim
21828 host_vendor!$host_vendor$ac_delim
21829 host_os!$host_os$ac_delim
21830 target!$target$ac_delim
21831 target_cpu!$target_cpu$ac_delim
21832 target_vendor!$target_vendor$ac_delim
21833 target_os!$target_os$ac_delim
21834 OS!$OS$ac_delim
21835 HOST_OS!$HOST_OS$ac_delim
21836 TARGET_OS!$TARGET_OS$ac_delim
21837 LINKALL!$LINKALL$ac_delim
21838 NOLINKALL!$NOLINKALL$ac_delim
21839 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21840 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21841 ARCH!$ARCH$ac_delim
21842 ENDIAN!$ENDIAN$ac_delim
21843 GREP!$GREP$ac_delim
21844 EGREP!$EGREP$ac_delim
21845 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21846 BUILD_CC!$BUILD_CC$ac_delim
21847 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21848 BUILD_CXX!$BUILD_CXX$ac_delim
21849 CVSBUILD!$CVSBUILD$ac_delim
21850 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21851 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21852 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21853 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21854 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21855 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21856 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21857 JIT!$JIT$ac_delim
21858 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21859 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21860 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21861 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21862 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21863 ENABLE_PIC!$ENABLE_PIC$ac_delim
21864 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21865 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21866 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21867 _ACEOF
21868
21869   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21870     break
21871   elif $ac_last_try; then
21872     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21873 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21874    { (exit 1); exit 1; }; }
21875   else
21876     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21877   fi
21878 done
21879
21880 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21881 if test -n "$ac_eof"; then
21882   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21883   ac_eof=`expr $ac_eof + 1`
21884 fi
21885
21886 cat >>$CONFIG_STATUS <<_ACEOF
21887 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21889 _ACEOF
21890 sed '
21891 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21892 s/^/s,@/; s/!/@,|#_!!_#|/
21893 :n
21894 t n
21895 s/'"$ac_delim"'$/,g/; t
21896 s/$/\\/; p
21897 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21898 ' >>$CONFIG_STATUS <conf$$subs.sed
21899 rm -f conf$$subs.sed
21900 cat >>$CONFIG_STATUS <<_ACEOF
21901 CEOF$ac_eof
21902 _ACEOF
21903
21904
21905 ac_delim='%!_!# '
21906 for ac_last_try in false false false false false :; do
21907   cat >conf$$subs.sed <<_ACEOF
21908 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21909 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21910 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21911 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21912 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21913 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21914 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21915 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21916 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21917 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21918 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21919 NM!$NM$ac_delim
21920 ifGNUmake!$ifGNUmake$ac_delim
21921 LN_S!$LN_S$ac_delim
21922 CMP!$CMP$ac_delim
21923 CP!$CP$ac_delim
21924 DATE!$DATE$ac_delim
21925 FIND!$FIND$ac_delim
21926 MKDIR!$MKDIR$ac_delim
21927 MV!$MV$ac_delim
21928 RANLIB!$RANLIB$ac_delim
21929 AR!$AR$ac_delim
21930 RM!$RM$ac_delim
21931 SED!$SED$ac_delim
21932 TAR!$TAR$ac_delim
21933 BINPWD!$BINPWD$ac_delim
21934 GRAPHVIZ!$GRAPHVIZ$ac_delim
21935 DOT!$DOT$ac_delim
21936 FDP!$FDP$ac_delim
21937 NEATO!$NEATO$ac_delim
21938 TWOPI!$TWOPI$ac_delim
21939 CIRCO!$CIRCO$ac_delim
21940 GV!$GV$ac_delim
21941 DOTTY!$DOTTY$ac_delim
21942 XDOT_PY!$XDOT_PY$ac_delim
21943 PERL!$PERL$ac_delim
21944 HAVE_PERL!$HAVE_PERL$ac_delim
21945 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21946 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21947 INSTALL_DATA!$INSTALL_DATA$ac_delim
21948 BZIP2!$BZIP2$ac_delim
21949 CAT!$CAT$ac_delim
21950 DOXYGEN!$DOXYGEN$ac_delim
21951 GROFF!$GROFF$ac_delim
21952 GZIPBIN!$GZIPBIN$ac_delim
21953 POD2HTML!$POD2HTML$ac_delim
21954 POD2MAN!$POD2MAN$ac_delim
21955 PDFROFF!$PDFROFF$ac_delim
21956 RUNTEST!$RUNTEST$ac_delim
21957 TCLSH!$TCLSH$ac_delim
21958 ZIP!$ZIP$ac_delim
21959 OCAMLC!$OCAMLC$ac_delim
21960 OCAMLOPT!$OCAMLOPT$ac_delim
21961 OCAMLDEP!$OCAMLDEP$ac_delim
21962 OCAMLDOC!$OCAMLDOC$ac_delim
21963 GAS!$GAS$ac_delim
21964 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21965 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21966 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21967 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21968 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21969 LIBADD_DL!$LIBADD_DL$ac_delim
21970 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21971 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21972 USE_UDIS86!$USE_UDIS86$ac_delim
21973 USE_OPROFILE!$USE_OPROFILE$ac_delim
21974 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21975 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21976 MMAP_FILE!$MMAP_FILE$ac_delim
21977 SHLIBEXT!$SHLIBEXT$ac_delim
21978 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21979 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21980 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21981 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21982 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21983 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21984 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21985 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21986 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21987 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21988 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21989 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21990 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21991 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21992 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21993 RPATH!$RPATH$ac_delim
21994 RDYNAMIC!$RDYNAMIC$ac_delim
21995 LIBOBJS!$LIBOBJS$ac_delim
21996 LTLIBOBJS!$LTLIBOBJS$ac_delim
21997 _ACEOF
21998
21999   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22000     break
22001   elif $ac_last_try; then
22002     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22003 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22004    { (exit 1); exit 1; }; }
22005   else
22006     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22007   fi
22008 done
22009
22010 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22011 if test -n "$ac_eof"; then
22012   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22013   ac_eof=`expr $ac_eof + 1`
22014 fi
22015
22016 cat >>$CONFIG_STATUS <<_ACEOF
22017 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22019 _ACEOF
22020 sed '
22021 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22022 s/^/s,@/; s/!/@,|#_!!_#|/
22023 :n
22024 t n
22025 s/'"$ac_delim"'$/,g/; t
22026 s/$/\\/; p
22027 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22028 ' >>$CONFIG_STATUS <conf$$subs.sed
22029 rm -f conf$$subs.sed
22030 cat >>$CONFIG_STATUS <<_ACEOF
22031 :end
22032 s/|#_!!_#|//g
22033 CEOF$ac_eof
22034 _ACEOF
22035
22036
22037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22039 # trailing colons and then remove the whole line if VPATH becomes empty
22040 # (actually we leave an empty line to preserve line numbers).
22041 if test "x$srcdir" = x.; then
22042   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22043 s/:*\$(srcdir):*/:/
22044 s/:*\${srcdir}:*/:/
22045 s/:*@srcdir@:*/:/
22046 s/^\([^=]*=[     ]*\):*/\1/
22047 s/:*$//
22048 s/^[^=]*=[       ]*$//
22049 }'
22050 fi
22051
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22053 fi # test -n "$CONFIG_FILES"
22054
22055
22056 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22057 do
22058   case $ac_tag in
22059   :[FHLC]) ac_mode=$ac_tag; continue;;
22060   esac
22061   case $ac_mode$ac_tag in
22062   :[FHL]*:*);;
22063   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22064 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22065    { (exit 1); exit 1; }; };;
22066   :[FH]-) ac_tag=-:-;;
22067   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22068   esac
22069   ac_save_IFS=$IFS
22070   IFS=:
22071   set x $ac_tag
22072   IFS=$ac_save_IFS
22073   shift
22074   ac_file=$1
22075   shift
22076
22077   case $ac_mode in
22078   :L) ac_source=$1;;
22079   :[FH])
22080     ac_file_inputs=
22081     for ac_f
22082     do
22083       case $ac_f in
22084       -) ac_f="$tmp/stdin";;
22085       *) # Look for the file first in the build tree, then in the source tree
22086          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22087          # because $ac_f cannot contain `:'.
22088          test -f "$ac_f" ||
22089            case $ac_f in
22090            [\\/$]*) false;;
22091            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22092            esac ||
22093            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22094 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22095    { (exit 1); exit 1; }; };;
22096       esac
22097       ac_file_inputs="$ac_file_inputs $ac_f"
22098     done
22099
22100     # Let's still pretend it is `configure' which instantiates (i.e., don't
22101     # use $as_me), people would be surprised to read:
22102     #    /* config.h.  Generated by config.status.  */
22103     configure_input="Generated from "`IFS=:
22104           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22105     if test x"$ac_file" != x-; then
22106       configure_input="$ac_file.  $configure_input"
22107       { echo "$as_me:$LINENO: creating $ac_file" >&5
22108 echo "$as_me: creating $ac_file" >&6;}
22109     fi
22110
22111     case $ac_tag in
22112     *:-:* | *:-) cat >"$tmp/stdin";;
22113     esac
22114     ;;
22115   esac
22116
22117   ac_dir=`$as_dirname -- "$ac_file" ||
22118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22119          X"$ac_file" : 'X\(//\)[^/]' \| \
22120          X"$ac_file" : 'X\(//\)$' \| \
22121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22122 echo X"$ac_file" |
22123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22124             s//\1/
22125             q
22126           }
22127           /^X\(\/\/\)[^/].*/{
22128             s//\1/
22129             q
22130           }
22131           /^X\(\/\/\)$/{
22132             s//\1/
22133             q
22134           }
22135           /^X\(\/\).*/{
22136             s//\1/
22137             q
22138           }
22139           s/.*/./; q'`
22140   { as_dir="$ac_dir"
22141   case $as_dir in #(
22142   -*) as_dir=./$as_dir;;
22143   esac
22144   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22145     as_dirs=
22146     while :; do
22147       case $as_dir in #(
22148       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22149       *) as_qdir=$as_dir;;
22150       esac
22151       as_dirs="'$as_qdir' $as_dirs"
22152       as_dir=`$as_dirname -- "$as_dir" ||
22153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154          X"$as_dir" : 'X\(//\)[^/]' \| \
22155          X"$as_dir" : 'X\(//\)$' \| \
22156          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22157 echo X"$as_dir" |
22158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159             s//\1/
22160             q
22161           }
22162           /^X\(\/\/\)[^/].*/{
22163             s//\1/
22164             q
22165           }
22166           /^X\(\/\/\)$/{
22167             s//\1/
22168             q
22169           }
22170           /^X\(\/\).*/{
22171             s//\1/
22172             q
22173           }
22174           s/.*/./; q'`
22175       test -d "$as_dir" && break
22176     done
22177     test -z "$as_dirs" || eval "mkdir $as_dirs"
22178   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22179 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22180    { (exit 1); exit 1; }; }; }
22181   ac_builddir=.
22182
22183 case "$ac_dir" in
22184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22185 *)
22186   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22187   # A ".." for each directory in $ac_dir_suffix.
22188   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22189   case $ac_top_builddir_sub in
22190   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22192   esac ;;
22193 esac
22194 ac_abs_top_builddir=$ac_pwd
22195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22196 # for backward compatibility:
22197 ac_top_builddir=$ac_top_build_prefix
22198
22199 case $srcdir in
22200   .)  # We are building in place.
22201     ac_srcdir=.
22202     ac_top_srcdir=$ac_top_builddir_sub
22203     ac_abs_top_srcdir=$ac_pwd ;;
22204   [\\/]* | ?:[\\/]* )  # Absolute name.
22205     ac_srcdir=$srcdir$ac_dir_suffix;
22206     ac_top_srcdir=$srcdir
22207     ac_abs_top_srcdir=$srcdir ;;
22208   *) # Relative name.
22209     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22210     ac_top_srcdir=$ac_top_build_prefix$srcdir
22211     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22212 esac
22213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22214
22215
22216   case $ac_mode in
22217   :F)
22218   #
22219   # CONFIG_FILE
22220   #
22221
22222   case $INSTALL in
22223   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22224   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22225   esac
22226 _ACEOF
22227
22228 cat >>$CONFIG_STATUS <<\_ACEOF
22229 # If the template does not know about datarootdir, expand it.
22230 # FIXME: This hack should be removed a few years after 2.60.
22231 ac_datarootdir_hack=; ac_datarootdir_seen=
22232
22233 case `sed -n '/datarootdir/ {
22234   p
22235   q
22236 }
22237 /@datadir@/p
22238 /@docdir@/p
22239 /@infodir@/p
22240 /@localedir@/p
22241 /@mandir@/p
22242 ' $ac_file_inputs` in
22243 *datarootdir*) ac_datarootdir_seen=yes;;
22244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22245   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22246 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22247 _ACEOF
22248 cat >>$CONFIG_STATUS <<_ACEOF
22249   ac_datarootdir_hack='
22250   s&@datadir@&$datadir&g
22251   s&@docdir@&$docdir&g
22252   s&@infodir@&$infodir&g
22253   s&@localedir@&$localedir&g
22254   s&@mandir@&$mandir&g
22255     s&\\\${datarootdir}&$datarootdir&g' ;;
22256 esac
22257 _ACEOF
22258
22259 # Neutralize VPATH when `$srcdir' = `.'.
22260 # Shell code in configure.ac might set extrasub.
22261 # FIXME: do we really want to maintain this feature?
22262 cat >>$CONFIG_STATUS <<_ACEOF
22263   sed "$ac_vpsub
22264 $extrasub
22265 _ACEOF
22266 cat >>$CONFIG_STATUS <<\_ACEOF
22267 :t
22268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22269 s&@configure_input@&$configure_input&;t t
22270 s&@top_builddir@&$ac_top_builddir_sub&;t t
22271 s&@srcdir@&$ac_srcdir&;t t
22272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22273 s&@top_srcdir@&$ac_top_srcdir&;t t
22274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22275 s&@builddir@&$ac_builddir&;t t
22276 s&@abs_builddir@&$ac_abs_builddir&;t t
22277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22278 s&@INSTALL@&$ac_INSTALL&;t t
22279 $ac_datarootdir_hack
22280 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22281
22282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22283   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22284   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22285   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22286 which seems to be undefined.  Please make sure it is defined." >&5
22287 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22288 which seems to be undefined.  Please make sure it is defined." >&2;}
22289
22290   rm -f "$tmp/stdin"
22291   case $ac_file in
22292   -) cat "$tmp/out"; rm -f "$tmp/out";;
22293   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22294   esac
22295  ;;
22296   :H)
22297   #
22298   # CONFIG_HEADER
22299   #
22300 _ACEOF
22301
22302 # Transform confdefs.h into a sed script `conftest.defines', that
22303 # substitutes the proper values into config.h.in to produce config.h.
22304 rm -f conftest.defines conftest.tail
22305 # First, append a space to every undef/define line, to ease matching.
22306 echo 's/$/ /' >conftest.defines
22307 # Then, protect against being on the right side of a sed subst, or in
22308 # an unquoted here document, in config.status.  If some macros were
22309 # called several times there might be several #defines for the same
22310 # symbol, which is useless.  But do not sort them, since the last
22311 # AC_DEFINE must be honored.
22312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22313 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22314 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22315 # PARAMS is the parameter list in the macro definition--in most cases, it's
22316 # just an empty string.
22317 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22318 ac_dB='\\)[      (].*,\\1define\\2'
22319 ac_dC=' '
22320 ac_dD=' ,'
22321
22322 uniq confdefs.h |
22323   sed -n '
22324         t rset
22325         :rset
22326         s/^[     ]*#[    ]*define[       ][      ]*//
22327         t ok
22328         d
22329         :ok
22330         s/[\\&,]/\\&/g
22331         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22332         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22333   ' >>conftest.defines
22334
22335 # Remove the space that was appended to ease matching.
22336 # Then replace #undef with comments.  This is necessary, for
22337 # example, in the case of _POSIX_SOURCE, which is predefined and required
22338 # on some systems where configure will not decide to define it.
22339 # (The regexp can be short, since the line contains either #define or #undef.)
22340 echo 's/ $//
22341 s,^[     #]*u.*,/* & */,' >>conftest.defines
22342
22343 # Break up conftest.defines:
22344 ac_max_sed_lines=50
22345
22346 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22347 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22348 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22349 # et cetera.
22350 ac_in='$ac_file_inputs'
22351 ac_out='"$tmp/out1"'
22352 ac_nxt='"$tmp/out2"'
22353
22354 while :
22355 do
22356   # Write a here document:
22357     cat >>$CONFIG_STATUS <<_ACEOF
22358     # First, check the format of the line:
22359     cat >"\$tmp/defines.sed" <<\\CEOF
22360 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22361 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22362 b
22363 :def
22364 _ACEOF
22365   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22366   echo 'CEOF
22367     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22368   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22369   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22370   grep . conftest.tail >/dev/null || break
22371   rm -f conftest.defines
22372   mv conftest.tail conftest.defines
22373 done
22374 rm -f conftest.defines conftest.tail
22375
22376 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22377 cat >>$CONFIG_STATUS <<\_ACEOF
22378   if test x"$ac_file" != x-; then
22379     echo "/* $configure_input  */" >"$tmp/config.h"
22380     cat "$ac_result" >>"$tmp/config.h"
22381     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22382       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22383 echo "$as_me: $ac_file is unchanged" >&6;}
22384     else
22385       rm -f $ac_file
22386       mv "$tmp/config.h" $ac_file
22387     fi
22388   else
22389     echo "/* $configure_input  */"
22390     cat "$ac_result"
22391   fi
22392   rm -f "$tmp/out12"
22393  ;;
22394
22395   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22396 echo "$as_me: executing $ac_file commands" >&6;}
22397  ;;
22398   esac
22399
22400
22401   case $ac_file$ac_mode in
22402     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22403    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22404     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22405    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22406     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22407    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22408     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22409    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22410     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22411    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22412     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22413    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22414     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22415    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22416     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22417    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22418     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22419    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22420     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22421    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22422     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22423    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22424     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22425    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22426     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22427    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22428
22429   esac
22430 done # for ac_tag
22431
22432
22433 { (exit 0); exit 0; }
22434 _ACEOF
22435 chmod +x $CONFIG_STATUS
22436 ac_clean_files=$ac_clean_files_save
22437
22438
22439 # configure is writing to config.log, and then calls config.status.
22440 # config.status does its own redirection, appending to config.log.
22441 # Unfortunately, on DOS this fails, as config.log is still kept open
22442 # by configure, so config.status won't be able to write to it; its
22443 # output is simply discarded.  So we exec the FD to /dev/null,
22444 # effectively closing config.log, so it can be properly (re)opened and
22445 # appended to by config.status.  When coming back to configure, we
22446 # need to make the FD available again.
22447 if test "$no_create" != yes; then
22448   ac_cs_success=:
22449   ac_config_status_args=
22450   test "$silent" = yes &&
22451     ac_config_status_args="$ac_config_status_args --quiet"
22452   exec 5>/dev/null
22453   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22454   exec 5>>config.log
22455   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22456   # would make configure fail if this is the last instruction.
22457   $ac_cs_success || { (exit 1); exit 1; }
22458 fi
22459
22460 #
22461 # CONFIG_SUBDIRS section.
22462 #
22463 if test "$no_recursion" != yes; then
22464
22465   # Remove --cache-file and --srcdir arguments so they do not pile up.
22466   ac_sub_configure_args=
22467   ac_prev=
22468   eval "set x $ac_configure_args"
22469   shift
22470   for ac_arg
22471   do
22472     if test -n "$ac_prev"; then
22473       ac_prev=
22474       continue
22475     fi
22476     case $ac_arg in
22477     -cache-file | --cache-file | --cache-fil | --cache-fi \
22478     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22479       ac_prev=cache_file ;;
22480     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22481     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22482     | --c=*)
22483       ;;
22484     --config-cache | -C)
22485       ;;
22486     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22487       ac_prev=srcdir ;;
22488     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22489       ;;
22490     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22491       ac_prev=prefix ;;
22492     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22493       ;;
22494     *)
22495       case $ac_arg in
22496       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22497       esac
22498       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22499     esac
22500   done
22501
22502   # Always prepend --prefix to ensure using the same prefix
22503   # in subdir configurations.
22504   ac_arg="--prefix=$prefix"
22505   case $ac_arg in
22506   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22507   esac
22508   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22509
22510   ac_popdir=`pwd`
22511   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22512
22513     # Do not complain, so a configure script can configure whichever
22514     # parts of a large source tree are present.
22515     test -d "$srcdir/$ac_dir" || continue
22516
22517     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22518     echo "$as_me:$LINENO: $ac_msg" >&5
22519     echo "$ac_msg" >&6
22520     { as_dir="$ac_dir"
22521   case $as_dir in #(
22522   -*) as_dir=./$as_dir;;
22523   esac
22524   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22525     as_dirs=
22526     while :; do
22527       case $as_dir in #(
22528       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529       *) as_qdir=$as_dir;;
22530       esac
22531       as_dirs="'$as_qdir' $as_dirs"
22532       as_dir=`$as_dirname -- "$as_dir" ||
22533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534          X"$as_dir" : 'X\(//\)[^/]' \| \
22535          X"$as_dir" : 'X\(//\)$' \| \
22536          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22537 echo X"$as_dir" |
22538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22539             s//\1/
22540             q
22541           }
22542           /^X\(\/\/\)[^/].*/{
22543             s//\1/
22544             q
22545           }
22546           /^X\(\/\/\)$/{
22547             s//\1/
22548             q
22549           }
22550           /^X\(\/\).*/{
22551             s//\1/
22552             q
22553           }
22554           s/.*/./; q'`
22555       test -d "$as_dir" && break
22556     done
22557     test -z "$as_dirs" || eval "mkdir $as_dirs"
22558   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560    { (exit 1); exit 1; }; }; }
22561     ac_builddir=.
22562
22563 case "$ac_dir" in
22564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22565 *)
22566   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22567   # A ".." for each directory in $ac_dir_suffix.
22568   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22569   case $ac_top_builddir_sub in
22570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22572   esac ;;
22573 esac
22574 ac_abs_top_builddir=$ac_pwd
22575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22576 # for backward compatibility:
22577 ac_top_builddir=$ac_top_build_prefix
22578
22579 case $srcdir in
22580   .)  # We are building in place.
22581     ac_srcdir=.
22582     ac_top_srcdir=$ac_top_builddir_sub
22583     ac_abs_top_srcdir=$ac_pwd ;;
22584   [\\/]* | ?:[\\/]* )  # Absolute name.
22585     ac_srcdir=$srcdir$ac_dir_suffix;
22586     ac_top_srcdir=$srcdir
22587     ac_abs_top_srcdir=$srcdir ;;
22588   *) # Relative name.
22589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22590     ac_top_srcdir=$ac_top_build_prefix$srcdir
22591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22592 esac
22593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22594
22595
22596     cd "$ac_dir"
22597
22598     # Check for guested configure; otherwise get Cygnus style configure.
22599     if test -f "$ac_srcdir/configure.gnu"; then
22600       ac_sub_configure=$ac_srcdir/configure.gnu
22601     elif test -f "$ac_srcdir/configure"; then
22602       ac_sub_configure=$ac_srcdir/configure
22603     elif test -f "$ac_srcdir/configure.in"; then
22604       # This should be Cygnus configure.
22605       ac_sub_configure=$ac_aux_dir/configure
22606     else
22607       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22608 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22609       ac_sub_configure=
22610     fi
22611
22612     # The recursion is here.
22613     if test -n "$ac_sub_configure"; then
22614       # Make the cache file name correct relative to the subdirectory.
22615       case $cache_file in
22616       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22617       *) # Relative name.
22618         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22619       esac
22620
22621       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22622 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22623       # The eval makes quoting arguments work.
22624       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22625            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22626         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22627 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22628    { (exit 1); exit 1; }; }
22629     fi
22630
22631     cd "$ac_popdir"
22632   done
22633 fi
22634