Improve the implementation of .incbin directive by replacing a loop by using
[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_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 CPP'
805 ac_subdirs_all='projects/llvm-gcc
806 projects/test-suite
807 projects/llvm-test
808 projects/poolalloc
809 projects/llvm-poolalloc
810 projects/sample
811 projects/privbracket
812 projects/llvm-stacker
813 projects/llvm-reopt
814 projects/llvm-java
815 projects/llvm-tv
816 projects/safecode
817 projects/llvm-kernel
818 tools/polly'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925    { (exit 1); exit 1; }; }
926     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927     eval enable_$ac_feature=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944    { (exit 1); exit 1; }; }
945     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946     eval enable_$ac_feature=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140       { echo "$as_me: error: invalid package name: $ac_package" >&2
1141    { (exit 1); exit 1; }; }
1142     ac_package=`echo $ac_package| sed 's/-/_/g'`
1143     eval with_$ac_package=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package | sed 's/-/_/g'`
1152     eval with_$ac_package=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174    { (exit 1); exit 1; }; }
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182    { (exit 1); exit 1; }; }
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   { echo "$as_me: error: missing argument to $ac_option" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202
1203 # Be sure to have absolute directory names.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215    { (exit 1); exit 1; }; }
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used." >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   { echo "$as_me: error: Working directory cannot be determined" >&2
1246    { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   { echo "$as_me: error: pwd does not report name of working directory" >&2
1249    { (exit 1); exit 1; }; }
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$0" : 'X\(//\)[^/]' \| \
1259          X"$0" : 'X\(//\)$' \| \
1260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294    { (exit 1); exit 1; }; }
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR           user executables [EPREFIX/bin]
1355   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR       program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR           object code libraries [EPREFIX/lib]
1361   --includedir=DIR       C header files [PREFIX/include]
1362   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR          info documentation [DATAROOTDIR/info]
1366   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR           man documentation [DATAROOTDIR/man]
1368   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1369   --htmldir=DIR          html documentation [DOCDIR]
1370   --dvidir=DIR           dvi documentation [DOCDIR]
1371   --pdfdir=DIR           pdf documentation [DOCDIR]
1372   --psdir=DIR            ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of llvm 3.1svn:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-polly          Use polly if available (default is YES)
1394   --enable-libcpp         Use libc++ if available (default is NO)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, arm, mips, spu, xcore,
1422                           hexagon, msp430, ptx, cbe, and cpp (default=all)
1423   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1424                           %a (default is YES)
1425   --enable-bindings       Build specific language bindings:
1426                           all,auto,none,{binding-name} (default=auto)
1427   --enable-libffi         Check for the presence of libffi (default is NO)
1428   --enable-ltdl-install   install libltdl
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-optimize-option  Select the compiler options to use for optimized
1434                           builds
1435   --with-extra-options    Specify additional options to compile LLVM with
1436   --with-extra-ld-options Specify additional options to link LLVM with
1437   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1438                           is stdlib)
1439   --with-clang-srcdir     Directory to the out-of-tree Clang source
1440   --with-clang-resource-dir
1441                           Relative directory from the Clang binary for
1442                           resource files
1443   --with-c-include-dirs   Colon separated list of directories clang will
1444                           search for headers
1445   --with-cxx-include-root Directory with the libstdc++ headers.
1446   --with-cxx-include-arch Architecture of the libstdc++ headers.
1447   --with-cxx-include-32bit-dir
1448                           32 bit multilib dir.
1449   --with-cxx-include-64bit-dir
1450                           64 bit multilib directory.
1451   --with-binutils-include Specify path to binutils/include/ containing
1452                           plugin-api.h file for gold plugin.
1453   --with-bug-report-url   Specify the URL where bug reports should be
1454                           submitted (default=http://llvm.org/bugs/)
1455   --with-internal-prefix  Installation directory for internal files
1456   --with-tclinclude       directory where tcl headers are
1457   --with-udis86=<path>    Use udis86 external x86 disassembler library
1458   --with-oprofile=<prefix>
1459                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470   CPP         C preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" || continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 llvm configure 3.1svn
1537 generated by GNU Autoconf 2.60
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543
1544 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by llvm $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       echo "$as_me: caught signal $ac_signal"
1746     echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790   set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794   set x "$ac_default_prefix/share/config.site" \
1795         "$ac_default_prefix/etc/config.site"
1796 fi
1797 shift
1798 for ac_site_file
1799 do
1800   if test -r "$ac_site_file"; then
1801     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803     sed 's/^/| /' "$ac_site_file" >&5
1804     . "$ac_site_file"
1805   fi
1806 done
1807
1808 if test -r "$cache_file"; then
1809   # Some versions of bash will fail to source /dev/null (special
1810   # files actually), so we avoid doing that.
1811   if test -f "$cache_file"; then
1812     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814     case $cache_file in
1815       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816       *)                      . "./$cache_file";;
1817     esac
1818   fi
1819 else
1820   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822   >$cache_file
1823 fi
1824
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830   eval ac_new_set=\$ac_env_${ac_var}_set
1831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832   eval ac_new_val=\$ac_env_${ac_var}_value
1833   case $ac_old_set,$ac_new_set in
1834     set,)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,set)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,);;
1843     *)
1844       if test "x$ac_old_val" != "x$ac_new_val"; then
1845         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848 echo "$as_me:   former value:  $ac_old_val" >&2;}
1849         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850 echo "$as_me:   current value: $ac_new_val" >&2;}
1851         ac_cache_corrupted=:
1852       fi;;
1853   esac
1854   # Pass precious variables to config.status.
1855   if test "$ac_new_set" = set; then
1856     case $ac_new_val in
1857     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     *) ac_arg=$ac_var=$ac_new_val ;;
1859     esac
1860     case " $ac_configure_args " in
1861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863     esac
1864   fi
1865 done
1866 if $ac_cache_corrupted; then
1867   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 if test ${srcdir} != "." ; then
1947   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950    { (exit 1); exit 1; }; }
1951   fi
1952 fi
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960   for ac_prog in clang llvm-gcc gcc
1961   do
1962     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$CC"; then
1970   ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985 IFS=$as_save_IFS
1986
1987 fi
1988 fi
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991   { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1993 else
1994   { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1996 fi
1997
1998
1999     test -n "$CC" && break
2000   done
2001 fi
2002 if test -z "$CC"; then
2003   ac_ct_CC=$CC
2004   for ac_prog in clang llvm-gcc gcc
2005 do
2006   # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$ac_ct_CC"; then
2014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023     ac_cv_prog_ac_ct_CC="$ac_prog"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2030
2031 fi
2032 fi
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2037 else
2038   { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2040 fi
2041
2042
2043   test -n "$ac_ct_CC" && break
2044 done
2045
2046   if test "x$ac_ct_CC" = x; then
2047     CC=""
2048   else
2049     case $cross_compiling:$ac_tool_warned in
2050 yes:)
2051 { echo "$as_me:$LINENO: 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." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet.  If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2058 esac
2059     CC=$ac_ct_CC
2060   fi
2061 fi
2062
2063
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079   (eval "$ac_compiler --version >&5") 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089   (eval "$ac_compiler -v >&5") 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler -V >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110
2111 int
2112 main ()
2113 {
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2123 # of exeext.
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127 #
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort.  b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132 #
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions.  Remove them first so a
2135 # subsequent execution test works.
2136 ac_rmfiles=
2137 for ac_file in $ac_files
2138 do
2139   case $ac_file in
2140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142   esac
2143 done
2144 rm -f $ac_rmfiles
2145
2146 if { (ac_try="$ac_link_default"
2147 case "(($ac_try" in
2148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149   *) ac_try_echo=$ac_try;;
2150 esac
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152   (eval "$ac_link_default") 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; then
2156   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2160 # Autoconf.
2161 for ac_file in $ac_files
2162 do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2166         ;;
2167     [ab].out )
2168         # We found the default executable, but exeext='' is most
2169         # certainly right.
2170         break;;
2171     *.* )
2172         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2173         then :; else
2174            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175         fi
2176         # We set ac_cv_exeext here because the later test for it is not
2177         # safe: cross compilers may not add the suffix if given an `-o'
2178         # argument, so we may need to know it at that point already.
2179         # Even if this section looks crufty: it has the advantage of
2180         # actually working.
2181         break;;
2182     * )
2183         break;;
2184   esac
2185 done
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196    { (exit 77); exit 77; }; }
2197 fi
2198
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2202
2203 # Check that the compiler produces executables we can run.  If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210   if { ac_try='./$ac_file'
2211   { (case "(($ac_try" in
2212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213   *) ac_try_echo=$ac_try;;
2214 esac
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216   (eval "$ac_try") 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220     cross_compiling=no
2221   else
2222     if test "$cross_compiling" = maybe; then
2223         cross_compiling=yes
2224     else
2225         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231    { (exit 1); exit 1; }; }
2232     fi
2233   fi
2234 fi
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2250 case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_link") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; then
2259   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2262 # `rm'.
2263 for ac_file in conftest.exe conftest conftest.*; do
2264   test -f "$ac_file" || continue
2265   case $ac_file in
2266     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268           break;;
2269     * ) break;;
2270   esac
2271 done
2272 else
2273   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277    { (exit 1); exit 1; }; }
2278 fi
2279
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2283
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2286 ac_exeext=$EXEEXT
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314   (eval "$ac_compile") 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; then
2318   for ac_file in conftest.o conftest.obj conftest.*; do
2319   test -f "$ac_file" || continue;
2320   case $ac_file in
2321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323        break;;
2324   esac
2325 done
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338 fi
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2342 ac_objext=$OBJEXT
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h.  */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h.  */
2354
2355 int
2356 main ()
2357 {
2358 #ifndef __GNUC__
2359        choke me
2360 #endif
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compile") 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381   { (case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_try") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
2391   { (case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396   (eval "$ac_try") 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; }; then
2400   ac_compiler_gnu=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405         ac_compiler_gnu=no
2406 fi
2407
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411 fi
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   ac_save_c_werror_flag=$ac_c_werror_flag
2423    ac_c_werror_flag=yes
2424    ac_cv_prog_cc_g=no
2425    CFLAGS="-g"
2426    cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 int
2434 main ()
2435 {
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2443 case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448   (eval "$ac_compile") 2>conftest.er1
2449   ac_status=$?
2450   grep -v '^ *+' conftest.er1 >conftest.err
2451   rm -f conftest.er1
2452   cat conftest.err >&5
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); } &&
2455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456   { (case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_try") 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; } &&
2465          { ac_try='test -s conftest.$ac_objext'
2466   { (case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471   (eval "$ac_try") 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   ac_cv_prog_cc_g=yes
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480         CFLAGS=""
2481       cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_compile") 2>conftest.er1
2504   ac_status=$?
2505   grep -v '^ *+' conftest.er1 >conftest.err
2506   rm -f conftest.er1
2507   cat conftest.err >&5
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); } &&
2510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511   { (case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_try") 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; } &&
2520          { ac_try='test -s conftest.$ac_objext'
2521   { (case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526   (eval "$ac_try") 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; }; then
2530   :
2531 else
2532   echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534
2535         ac_c_werror_flag=$ac_save_c_werror_flag
2536          CFLAGS="-g"
2537          cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 int
2545 main ()
2546 {
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2554 case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_compile") 2>conftest.er1
2560   ac_status=$?
2561   grep -v '^ *+' conftest.er1 >conftest.err
2562   rm -f conftest.er1
2563   cat conftest.err >&5
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } &&
2566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567   { (case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_try") 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_try") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_cv_prog_cc_g=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
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 fi
2599
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601    ac_c_werror_flag=$ac_save_c_werror_flag
2602 fi
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606   CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608   if test "$GCC" = yes; then
2609     CFLAGS="-g -O2"
2610   else
2611     CFLAGS="-g"
2612   fi
2613 else
2614   if test "$GCC" = yes; then
2615     CFLAGS="-O2"
2616   else
2617     CFLAGS=
2618   fi
2619 fi
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   ac_cv_prog_cc_c89=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633 #include <stdarg.h>
2634 #include <stdio.h>
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2641      char **p;
2642      int i;
2643 {
2644   return p[i];
2645 }
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2647 {
2648   char *s;
2649   va_list v;
2650   va_start (v,p);
2651   s = g (p, va_arg (v,int));
2652   va_end (v);
2653   return s;
2654 }
2655
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2657    function prototypes and stuff, but not '\xHH' hex character constants.
2658    These don't provoke an error unfortunately, instead are silently treated
2659    as 'x'.  The following induces an error, until -std is added to get
2660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2661    array size at least.  It's necessary to write '\x00'==0 to get something
2662    that's true only with -std.  */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666    inside strings and character constants.  */
2667 #define FOO(x) 'x'
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674 int argc;
2675 char **argv;
2676 int
2677 main ()
2678 {
2679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2686 do
2687   CC="$ac_save_CC $ac_arg"
2688   rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compile") 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703   { (case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_try") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_try") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_cv_prog_cc_c89=$ac_arg
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
2728 fi
2729
2730 rm -f core conftest.err conftest.$ac_objext
2731   test "x$ac_cv_prog_cc_c89" != "xno" && break
2732 done
2733 rm -f conftest.$ac_ext
2734 CC=$ac_save_CC
2735
2736 fi
2737 # AC_CACHE_VAL
2738 case "x$ac_cv_prog_cc_c89" in
2739   x)
2740     { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2742   xno)
2743     { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2745   *)
2746     CC="$CC $ac_cv_prog_cc_c89"
2747     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2749 esac
2750
2751
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
2758 ac_ext=cpp
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764   if test -n "$CCC"; then
2765     CXX=$CCC
2766   else
2767     if test -n "$ac_tool_prefix"; then
2768   for ac_prog in clang++ llvm-g++ g++
2769   do
2770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CXX"; then
2778   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CXX=$ac_cv_prog_CXX
2798 if test -n "$CXX"; then
2799   { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2801 else
2802   { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2804 fi
2805
2806
2807     test -n "$CXX" && break
2808   done
2809 fi
2810 if test -z "$CXX"; then
2811   ac_ct_CXX=$CXX
2812   for ac_prog in clang++ llvm-g++ g++
2813 do
2814   # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -n "$ac_ct_CXX"; then
2822   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_ac_ct_CXX="$ac_prog"
2832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845 else
2846   { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2849
2850
2851   test -n "$ac_ct_CXX" && break
2852 done
2853
2854   if test "x$ac_ct_CXX" = x; then
2855     CXX="g++"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { echo "$as_me:$LINENO: 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." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet.  If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867     CXX=$ac_ct_CXX
2868   fi
2869 fi
2870
2871   fi
2872 fi
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2877 case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882   (eval "$ac_compiler --version >&5") 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compiler -v >&5") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler -V >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918
2919 int
2920 main ()
2921 {
2922 #ifndef __GNUC__
2923        choke me
2924 #endif
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compile") 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } &&
2944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945   { (case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_try") 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_try") 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; }; then
2964   ac_compiler_gnu=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         ac_compiler_gnu=no
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975 fi
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987    ac_cxx_werror_flag=yes
2988    ac_cv_prog_cxx_g=no
2989    CXXFLAGS="-g"
2990    cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   ac_cv_prog_cxx_g=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         CXXFLAGS=""
3045       cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051
3052 int
3053 main ()
3054 {
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compile") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } &&
3074          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075   { (case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_try") 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest.$ac_objext'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   :
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100          CXXFLAGS="-g"
3101          cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } &&
3130          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   ac_cv_prog_cxx_g=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
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 fi
3163
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166 fi
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170   CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172   if test "$GXX" = yes; then
3173     CXXFLAGS="-g -O2"
3174   else
3175     CXXFLAGS="-g"
3176   fi
3177 else
3178   if test "$GXX" = yes; then
3179     CXXFLAGS="-O2"
3180   else
3181     CXXFLAGS=
3182   fi
3183 fi
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3199   CPP=
3200 fi
3201 if test -z "$CPP"; then
3202   if test "${ac_cv_prog_CPP+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205       # Double quotes because CPP needs to be expanded
3206     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207     do
3208       ac_preproc_ok=false
3209 for ac_c_preproc_warn_flag in '' yes
3210 do
3211   # Use a header file that comes with gcc, so configuring glibc
3212   # with a fresh cross-compiler works.
3213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214   # <limits.h> exists even on freestanding compilers.
3215   # On the NeXT, cc -E runs the code through the compiler's parser,
3216   # not just through cpp. "Syntax error" is here to catch this case.
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #ifdef __STDC__
3224 # include <limits.h>
3225 #else
3226 # include <assert.h>
3227 #endif
3228                      Syntax error
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } >/dev/null; then
3243   if test -s conftest.err; then
3244     ac_cpp_err=$ac_c_preproc_warn_flag
3245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246   else
3247     ac_cpp_err=
3248   fi
3249 else
3250   ac_cpp_err=yes
3251 fi
3252 if test -z "$ac_cpp_err"; then
3253   :
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258   # Broken: fails on valid input.
3259 continue
3260 fi
3261
3262 rm -f conftest.err conftest.$ac_ext
3263
3264   # OK, works on sane cases.  Now check whether nonexistent headers
3265   # can be detected and how.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <ac_nonexistent.h>
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290   else
3291     ac_cpp_err=
3292   fi
3293 else
3294   ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297   # Broken: success on invalid input.
3298 continue
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Passes both tests.
3304 ac_preproc_ok=:
3305 break
3306 fi
3307
3308 rm -f conftest.err conftest.$ac_ext
3309
3310 done
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3314   break
3315 fi
3316
3317     done
3318     ac_cv_prog_CPP=$CPP
3319
3320 fi
3321   CPP=$ac_cv_prog_CPP
3322 else
3323   ac_cv_prog_CPP=$CPP
3324 fi
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3327 ac_preproc_ok=false
3328 for ac_c_preproc_warn_flag in '' yes
3329 do
3330   # Use a header file that comes with gcc, so configuring glibc
3331   # with a fresh cross-compiler works.
3332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333   # <limits.h> exists even on freestanding compilers.
3334   # On the NeXT, cc -E runs the code through the compiler's parser,
3335   # not just through cpp. "Syntax error" is here to catch this case.
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #ifdef __STDC__
3343 # include <limits.h>
3344 #else
3345 # include <assert.h>
3346 #endif
3347                      Syntax error
3348 _ACEOF
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } >/dev/null; then
3362   if test -s conftest.err; then
3363     ac_cpp_err=$ac_c_preproc_warn_flag
3364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Broken: fails on valid input.
3378 continue
3379 fi
3380
3381 rm -f conftest.err conftest.$ac_ext
3382
3383   # OK, works on sane cases.  Now check whether nonexistent headers
3384   # can be detected and how.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #include <ac_nonexistent.h>
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409   else
3410     ac_cpp_err=
3411   fi
3412 else
3413   ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416   # Broken: success on invalid input.
3417 continue
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422   # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3433   :
3434 else
3435   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449
3450
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452   subdirs="$subdirs projects/llvm-gcc"
3453
3454 fi
3455
3456 if test -d ${srcdir}/projects/test-suite ; then
3457   subdirs="$subdirs projects/test-suite"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462   subdirs="$subdirs projects/llvm-test"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467   subdirs="$subdirs projects/poolalloc"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472   subdirs="$subdirs projects/llvm-poolalloc"
3473
3474 fi
3475
3476 for i in `ls ${srcdir}/projects`
3477 do
3478   if test -d ${srcdir}/projects/${i} ; then
3479     case ${i} in
3480       sample)       subdirs="$subdirs projects/sample"
3481     ;;
3482       privbracket)  subdirs="$subdirs projects/privbracket"
3483  ;;
3484       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485  ;;
3486       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3487 ;;
3488       llvm-java)    subdirs="$subdirs projects/llvm-java"
3489  ;;
3490       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3491    ;;
3492       safecode)     subdirs="$subdirs projects/safecode"
3493  ;;
3494       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3495  ;;
3496       compiler-rt)       ;;
3497       llvm-gcc)       ;;
3498       test-suite)     ;;
3499       llvm-test)      ;;
3500       poolalloc)      ;;
3501       llvm-poolalloc) ;;
3502       *)
3503         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505         ;;
3506     esac
3507   fi
3508 done
3509
3510 # Check whether --enable-polly was given.
3511 if test "${enable_polly+set}" = set; then
3512   enableval=$enable_polly;
3513 else
3514   enableval=default
3515 fi
3516
3517 case "$enableval" in
3518   yes) ENABLE_POLLY=1
3519  ;;
3520   no)  ENABLE_POLLY=0
3521  ;;
3522   default) ENABLE_POLLY=1
3523  ;;
3524   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526    { (exit 1); exit 1; }; } ;;
3527 esac
3528
3529
3530 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531   LLVM_HAS_POLLY=1
3532
3533   subdirs="$subdirs tools/polly"
3534
3535 fi
3536
3537
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542    { (exit 1); exit 1; }; }
3543
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555    { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559    { (exit 1); exit 1; }; }
3560
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3565 *-*-*) ;;
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568    { (exit 1); exit 1; }; };;
3569 esac
3570 build=$ac_cv_build
3571 ac_save_IFS=$IFS; IFS='-'
3572 set x $ac_cv_build
3573 shift
3574 build_cpu=$1
3575 build_vendor=$2
3576 shift; shift
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3579 build_os=$*
3580 IFS=$ac_save_IFS
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   if test "x$host_alias" = x; then
3590   ac_cv_host=$ac_cv_build
3591 else
3592   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598 fi
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3601 case $ac_cv_host in
3602 *-*-*) ;;
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605    { (exit 1); exit 1; }; };;
3606 esac
3607 host=$ac_cv_host
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_host
3610 shift
3611 host_cpu=$1
3612 host_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 host_os=$*
3617 IFS=$ac_save_IFS
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 { echo "$as_me:$LINENO: checking target system type" >&5
3622 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_target+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   if test "x$target_alias" = x; then
3627   ac_cv_target=$ac_cv_host
3628 else
3629   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632    { (exit 1); exit 1; }; }
3633 fi
3634
3635 fi
3636 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637 echo "${ECHO_T}$ac_cv_target" >&6; }
3638 case $ac_cv_target in
3639 *-*-*) ;;
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641 echo "$as_me: error: invalid value of canonical target" >&2;}
3642    { (exit 1); exit 1; }; };;
3643 esac
3644 target=$ac_cv_target
3645 ac_save_IFS=$IFS; IFS='-'
3646 set x $ac_cv_target
3647 shift
3648 target_cpu=$1
3649 target_vendor=$2
3650 shift; shift
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3653 target_os=$*
3654 IFS=$ac_save_IFS
3655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658 # The aliases save the names the user supplied, while $host etc.
3659 # will get canonicalized.
3660 test -n "$target_alias" &&
3661   test "$program_prefix$program_suffix$program_transform_name" = \
3662     NONENONEs,x,x, &&
3663   program_prefix=${target_alias}-
3664
3665 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667 if test "${llvm_cv_os_type+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   case $host in
3671   *-*-aix*)
3672     llvm_cv_link_all_option="-Wl,--whole-archive"
3673     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674     llvm_cv_os_type="AIX"
3675     llvm_cv_platform_type="Unix" ;;
3676   *-*-irix*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="IRIX"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-cygwin*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="Cygwin"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-darwin*)
3687     llvm_cv_link_all_option="-Wl,-all_load"
3688     llvm_cv_no_link_all_option="-Wl,-noall_load"
3689     llvm_cv_os_type="Darwin"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-minix*)
3692     llvm_cv_link_all_option="-Wl,-all_load"
3693     llvm_cv_no_link_all_option="-Wl,-noall_load"
3694     llvm_cv_os_type="Minix"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-freebsd*)
3697     llvm_cv_link_all_option="-Wl,--whole-archive"
3698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699     llvm_cv_os_type="FreeBSD"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-openbsd*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="OpenBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-netbsd*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="NetBSD"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-dragonfly*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="DragonFly"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-hpux*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="HP-UX"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-interix*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="Interix"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-linux*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="Linux"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-solaris*)
3732     llvm_cv_link_all_option="-Wl,-z,allextract"
3733     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3734     llvm_cv_os_type="SunOS"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-auroraux*)
3737     llvm_cv_link_all_option="-Wl,-z,allextract"
3738     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3739     llvm_cv_os_type="AuroraUX"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-win32*)
3742     llvm_cv_link_all_option="-Wl,--whole-archive"
3743     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744     llvm_cv_os_type="Win32"
3745     llvm_cv_platform_type="Win32" ;;
3746   *-*-mingw*)
3747     llvm_cv_link_all_option="-Wl,--whole-archive"
3748     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749     llvm_cv_os_type="MingW"
3750     llvm_cv_platform_type="Win32" ;;
3751   *-*-haiku*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="Haiku"
3755     llvm_cv_platform_type="Unix" ;;
3756   *-unknown-eabi*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="Freestanding"
3760     llvm_cv_platform_type="Unix" ;;
3761   *-unknown-elf*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="Freestanding"
3765     llvm_cv_platform_type="Unix" ;;
3766   *)
3767     llvm_cv_link_all_option=""
3768     llvm_cv_no_link_all_option=""
3769     llvm_cv_os_type="Unknown"
3770     llvm_cv_platform_type="Unknown" ;;
3771 esac
3772 fi
3773 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3774 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3775
3776 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3777 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3778 if test "${llvm_cv_target_os_type+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   case $target in
3782   *-*-aix*)
3783     llvm_cv_target_os_type="AIX" ;;
3784   *-*-irix*)
3785     llvm_cv_target_os_type="IRIX" ;;
3786   *-*-cygwin*)
3787     llvm_cv_target_os_type="Cygwin" ;;
3788   *-*-darwin*)
3789     llvm_cv_target_os_type="Darwin" ;;
3790   *-*-minix*)
3791     llvm_cv_target_os_type="Minix" ;;
3792   *-*-freebsd*)
3793     llvm_cv_target_os_type="FreeBSD" ;;
3794   *-*-openbsd*)
3795     llvm_cv_target_os_type="OpenBSD" ;;
3796   *-*-netbsd*)
3797     llvm_cv_target_os_type="NetBSD" ;;
3798   *-*-dragonfly*)
3799     llvm_cv_target_os_type="DragonFly" ;;
3800   *-*-hpux*)
3801     llvm_cv_target_os_type="HP-UX" ;;
3802   *-*-interix*)
3803     llvm_cv_target_os_type="Interix" ;;
3804   *-*-linux*)
3805     llvm_cv_target_os_type="Linux" ;;
3806   *-*-solaris*)
3807     llvm_cv_target_os_type="SunOS" ;;
3808   *-*-auroraux*)
3809     llvm_cv_target_os_type="AuroraUX" ;;
3810   *-*-win32*)
3811     llvm_cv_target_os_type="Win32" ;;
3812   *-*-mingw*)
3813     llvm_cv_target_os_type="MingW" ;;
3814   *-*-haiku*)
3815     llvm_cv_target_os_type="Haiku" ;;
3816   *-*-rtems*)
3817     llvm_cv_target_os_type="RTEMS" ;;
3818   *-*-nacl*)
3819     llvm_cv_target_os_type="NativeClient" ;;
3820   *-unknown-eabi*)
3821     llvm_cv_target_os_type="Freestanding" ;;
3822   *)
3823     llvm_cv_target_os_type="Unknown" ;;
3824 esac
3825 fi
3826 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3827 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3828
3829 if test "$llvm_cv_os_type" = "Unknown" ; then
3830   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3831 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3832    { (exit 1); exit 1; }; }
3833 fi
3834
3835 OS=$llvm_cv_os_type
3836
3837 HOST_OS=$llvm_cv_os_type
3838
3839 TARGET_OS=$llvm_cv_target_os_type
3840
3841
3842 LINKALL=$llvm_cv_link_all_option
3843
3844 NOLINKALL=$llvm_cv_no_link_all_option
3845
3846
3847 case $llvm_cv_platform_type in
3848   Unix)
3849
3850 cat >>confdefs.h <<\_ACEOF
3851 #define LLVM_ON_UNIX 1
3852 _ACEOF
3853
3854     LLVM_ON_UNIX=1
3855
3856     LLVM_ON_WIN32=0
3857
3858     ;;
3859   Win32)
3860
3861 cat >>confdefs.h <<\_ACEOF
3862 #define LLVM_ON_WIN32 1
3863 _ACEOF
3864
3865     LLVM_ON_UNIX=0
3866
3867     LLVM_ON_WIN32=1
3868
3869     ;;
3870 esac
3871
3872 { echo "$as_me:$LINENO: checking target architecture" >&5
3873 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3874 if test "${llvm_cv_target_arch+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   case $target in
3878   i?86-*)                 llvm_cv_target_arch="x86" ;;
3879   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3880   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3881   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3882   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3883   mips-*)                 llvm_cv_target_arch="Mips" ;;
3884   xcore-*)                llvm_cv_target_arch="XCore" ;;
3885   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3886   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3887   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3888   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3889   *)                      llvm_cv_target_arch="Unknown" ;;
3890 esac
3891 fi
3892 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3893 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3894
3895 if test "$llvm_cv_target_arch" = "Unknown" ; then
3896   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3897 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3898 fi
3899
3900 # Determine the LLVM native architecture for the target
3901 case "$llvm_cv_target_arch" in
3902     x86)     LLVM_NATIVE_ARCH="X86" ;;
3903     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3904     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3905 esac
3906
3907 ARCH=$llvm_cv_target_arch
3908
3909
3910
3911
3912 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3913 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   # Extract the first word of "grep ggrep" to use in msg output
3918 if test -z "$GREP"; then
3919 set dummy grep ggrep; ac_prog_name=$2
3920 if test "${ac_cv_path_GREP+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   ac_path_GREP_found=false
3924 # Loop through the user's path and test for each of PROGNAME-LIST
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_prog in grep ggrep; do
3931   for ac_exec_ext in '' $ac_executable_extensions; do
3932     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3933     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3934     # Check for GNU ac_path_GREP and select it if it is found.
3935   # Check for GNU $ac_path_GREP
3936 case `"$ac_path_GREP" --version 2>&1` in
3937 *GNU*)
3938   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3939 *)
3940   ac_count=0
3941   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3942   while :
3943   do
3944     cat "conftest.in" "conftest.in" >"conftest.tmp"
3945     mv "conftest.tmp" "conftest.in"
3946     cp "conftest.in" "conftest.nl"
3947     echo 'GREP' >> "conftest.nl"
3948     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3949     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3950     ac_count=`expr $ac_count + 1`
3951     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3952       # Best one so far, save it but keep looking for a better one
3953       ac_cv_path_GREP="$ac_path_GREP"
3954       ac_path_GREP_max=$ac_count
3955     fi
3956     # 10*(2^10) chars as input seems more than enough
3957     test $ac_count -gt 10 && break
3958   done
3959   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960 esac
3961
3962
3963     $ac_path_GREP_found && break 3
3964   done
3965 done
3966
3967 done
3968 IFS=$as_save_IFS
3969
3970
3971 fi
3972
3973 GREP="$ac_cv_path_GREP"
3974 if test -z "$GREP"; then
3975   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3976 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3977    { (exit 1); exit 1; }; }
3978 fi
3979
3980 else
3981   ac_cv_path_GREP=$GREP
3982 fi
3983
3984
3985 fi
3986 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3987 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3988  GREP="$ac_cv_path_GREP"
3989
3990
3991 { echo "$as_me:$LINENO: checking for egrep" >&5
3992 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_EGREP+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997    then ac_cv_path_EGREP="$GREP -E"
3998    else
3999      # Extract the first word of "egrep" to use in msg output
4000 if test -z "$EGREP"; then
4001 set dummy egrep; ac_prog_name=$2
4002 if test "${ac_cv_path_EGREP+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   ac_path_EGREP_found=false
4006 # Loop through the user's path and test for each of PROGNAME-LIST
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012   for ac_prog in egrep; do
4013   for ac_exec_ext in '' $ac_executable_extensions; do
4014     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4016     # Check for GNU ac_path_EGREP and select it if it is found.
4017   # Check for GNU $ac_path_EGREP
4018 case `"$ac_path_EGREP" --version 2>&1` in
4019 *GNU*)
4020   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021 *)
4022   ac_count=0
4023   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4024   while :
4025   do
4026     cat "conftest.in" "conftest.in" >"conftest.tmp"
4027     mv "conftest.tmp" "conftest.in"
4028     cp "conftest.in" "conftest.nl"
4029     echo 'EGREP' >> "conftest.nl"
4030     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032     ac_count=`expr $ac_count + 1`
4033     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034       # Best one so far, save it but keep looking for a better one
4035       ac_cv_path_EGREP="$ac_path_EGREP"
4036       ac_path_EGREP_max=$ac_count
4037     fi
4038     # 10*(2^10) chars as input seems more than enough
4039     test $ac_count -gt 10 && break
4040   done
4041   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042 esac
4043
4044
4045     $ac_path_EGREP_found && break 3
4046   done
4047 done
4048
4049 done
4050 IFS=$as_save_IFS
4051
4052
4053 fi
4054
4055 EGREP="$ac_cv_path_EGREP"
4056 if test -z "$EGREP"; then
4057   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4058 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4059    { (exit 1); exit 1; }; }
4060 fi
4061
4062 else
4063   ac_cv_path_EGREP=$EGREP
4064 fi
4065
4066
4067    fi
4068 fi
4069 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4070 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4071  EGREP="$ac_cv_path_EGREP"
4072
4073
4074 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4075 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4076 if test "${ac_cv_header_stdc+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h.  */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h.  */
4085 #include <stdlib.h>
4086 #include <stdarg.h>
4087 #include <string.h>
4088 #include <float.h>
4089
4090 int
4091 main ()
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (ac_try="$ac_compile"
4100 case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105   (eval "$ac_compile") 2>conftest.er1
4106   ac_status=$?
4107   grep -v '^ *+' conftest.er1 >conftest.err
4108   rm -f conftest.er1
4109   cat conftest.err >&5
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } &&
4112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4113   { (case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_try") 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; } &&
4122          { ac_try='test -s conftest.$ac_objext'
4123   { (case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128   (eval "$ac_try") 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; }; then
4132   ac_cv_header_stdc=yes
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137         ac_cv_header_stdc=no
4138 fi
4139
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141
4142 if test $ac_cv_header_stdc = yes; then
4143   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4144   cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150 #include <string.h>
4151
4152 _ACEOF
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154   $EGREP "memchr" >/dev/null 2>&1; then
4155   :
4156 else
4157   ac_cv_header_stdc=no
4158 fi
4159 rm -f conftest*
4160
4161 fi
4162
4163 if test $ac_cv_header_stdc = yes; then
4164   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4165   cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 #include <stdlib.h>
4172
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175   $EGREP "free" >/dev/null 2>&1; then
4176   :
4177 else
4178   ac_cv_header_stdc=no
4179 fi
4180 rm -f conftest*
4181
4182 fi
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186   if test "$cross_compiling" = yes; then
4187   :
4188 else
4189   cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 #include <ctype.h>
4196 #include <stdlib.h>
4197 #if ((' ' & 0x0FF) == 0x020)
4198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200 #else
4201 # define ISLOWER(c) \
4202                    (('a' <= (c) && (c) <= 'i') \
4203                      || ('j' <= (c) && (c) <= 'r') \
4204                      || ('s' <= (c) && (c) <= 'z'))
4205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206 #endif
4207
4208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 int
4210 main ()
4211 {
4212   int i;
4213   for (i = 0; i < 256; i++)
4214     if (XOR (islower (i), ISLOWER (i))
4215         || toupper (i) != TOUPPER (i))
4216       return 2;
4217   return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest$ac_exeext
4221 if { (ac_try="$ac_link"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_link") 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4231   { (case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236   (eval "$ac_try") 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   :
4241 else
4242   echo "$as_me: program exited with status $ac_status" >&5
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 ( exit $ac_status )
4247 ac_cv_header_stdc=no
4248 fi
4249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4250 fi
4251
4252
4253 fi
4254 fi
4255 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4256 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4257 if test $ac_cv_header_stdc = yes; then
4258
4259 cat >>confdefs.h <<\_ACEOF
4260 #define STDC_HEADERS 1
4261 _ACEOF
4262
4263 fi
4264
4265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4276                   inttypes.h stdint.h unistd.h
4277 do
4278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290 $ac_includes_default
4291
4292 #include <$ac_header>
4293 _ACEOF
4294 rm -f conftest.$ac_objext
4295 if { (ac_try="$ac_compile"
4296 case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301   (eval "$ac_compile") 2>conftest.er1
4302   ac_status=$?
4303   grep -v '^ *+' conftest.er1 >conftest.err
4304   rm -f conftest.er1
4305   cat conftest.err >&5
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); } &&
4308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4309   { (case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_try") 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; } &&
4318          { ac_try='test -s conftest.$ac_objext'
4319   { (case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324   (eval "$ac_try") 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); }; }; then
4328   eval "$as_ac_Header=yes"
4329 else
4330   echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333         eval "$as_ac_Header=no"
4334 fi
4335
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 fi
4338 ac_res=`eval echo '${'$as_ac_Header'}'`
4339                { echo "$as_me:$LINENO: result: $ac_res" >&5
4340 echo "${ECHO_T}$ac_res" >&6; }
4341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342   cat >>confdefs.h <<_ACEOF
4343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344 _ACEOF
4345
4346 fi
4347
4348 done
4349
4350
4351 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4352 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4353 if test "${ac_cv_c_bigendian+set}" = set; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356   # See if sys/param.h defines the BYTE_ORDER macro.
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 #include <sys/types.h>
4364 #include <sys/param.h>
4365
4366 int
4367 main ()
4368 {
4369 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4370  bogus endian macros
4371 #endif
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4379 case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384   (eval "$ac_compile") 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } &&
4391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392   { (case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397   (eval "$ac_try") 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; } &&
4401          { ac_try='test -s conftest.$ac_objext'
4402   { (case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407   (eval "$ac_try") 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; }; then
4411   # It does; now see whether it defined to BIG_ENDIAN or not.
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h.  */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h.  */
4418 #include <sys/types.h>
4419 #include <sys/param.h>
4420
4421 int
4422 main ()
4423 {
4424 #if BYTE_ORDER != BIG_ENDIAN
4425  not big endian
4426 #endif
4427
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest.$ac_objext
4433 if { (ac_try="$ac_compile"
4434 case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439   (eval "$ac_compile") 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } &&
4446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4447   { (case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452   (eval "$ac_try") 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; } &&
4456          { ac_try='test -s conftest.$ac_objext'
4457   { (case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_try") 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; }; then
4466   ac_cv_c_bigendian=yes
4467 else
4468   echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471         ac_cv_c_bigendian=no
4472 fi
4473
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 else
4476   echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479         # It does not; compile a test program.
4480 if test "$cross_compiling" = yes; then
4481   # try to guess the endianness by grepping values into an object file
4482   ac_cv_c_bigendian=unknown
4483   cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h.  */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h.  */
4489 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4490 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4491 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4492 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4493 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4494 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4495 int
4496 main ()
4497 {
4498  _ascii (); _ebcdic ();
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (ac_try="$ac_compile"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510   (eval "$ac_compile") 2>conftest.er1
4511   ac_status=$?
4512   grep -v '^ *+' conftest.er1 >conftest.err
4513   rm -f conftest.er1
4514   cat conftest.err >&5
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); } &&
4517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4518   { (case "(($ac_try" in
4519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520   *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523   (eval "$ac_try") 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; } &&
4527          { ac_try='test -s conftest.$ac_objext'
4528   { (case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533   (eval "$ac_try") 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4538   ac_cv_c_bigendian=yes
4539 fi
4540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4541   if test "$ac_cv_c_bigendian" = unknown; then
4542     ac_cv_c_bigendian=no
4543   else
4544     # finding both strings is unlikely to happen, but who knows?
4545     ac_cv_c_bigendian=unknown
4546   fi
4547 fi
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552
4553 fi
4554
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 else
4557   cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563 $ac_includes_default
4564 int
4565 main ()
4566 {
4567
4568   /* Are we little or big endian?  From Harbison&Steele.  */
4569   union
4570   {
4571     long int l;
4572     char c[sizeof (long int)];
4573   } u;
4574   u.l = 1;
4575   return u.c[sizeof (long int) - 1] == 1;
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest$ac_exeext
4582 if { (ac_try="$ac_link"
4583 case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588   (eval "$ac_link") 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4592   { (case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_try") 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; }; then
4601   ac_cv_c_bigendian=no
4602 else
4603   echo "$as_me: program exited with status $ac_status" >&5
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 ( exit $ac_status )
4608 ac_cv_c_bigendian=yes
4609 fi
4610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4611 fi
4612
4613
4614 fi
4615
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 fi
4618 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4619 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4620 case $ac_cv_c_bigendian in
4621   yes)
4622     ENDIAN=big
4623  ;;
4624   no)
4625     ENDIAN=little
4626  ;;
4627   *)
4628     { { echo "$as_me:$LINENO: error: unknown endianness
4629 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4630 echo "$as_me: error: unknown endianness
4631 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4632    { (exit 1); exit 1; }; } ;;
4633 esac
4634
4635
4636 if test "$cross_compiling" = yes; then
4637   LLVM_CROSS_COMPILING=1
4638
4639
4640 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4641 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4642 if test "${ac_cv_build_exeext+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4646   ac_cv_build_exeext=.exe
4647 else
4648   ac_build_prefix=${build_alias}-
4649
4650   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4651 set dummy ${ac_build_prefix}gcc; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$BUILD_CC"; then
4658   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 BUILD_CC=$ac_cv_prog_BUILD_CC
4678 if test -n "$BUILD_CC"; then
4679   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680 echo "${ECHO_T}$BUILD_CC" >&6; }
4681 else
4682   { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684 fi
4685
4686
4687   if test -z "$BUILD_CC"; then
4688      # Extract the first word of "gcc", so it can be a program name with args.
4689 set dummy gcc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -n "$BUILD_CC"; then
4696   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705     ac_cv_prog_BUILD_CC="gcc"
4706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 BUILD_CC=$ac_cv_prog_BUILD_CC
4716 if test -n "$BUILD_CC"; then
4717   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4718 echo "${ECHO_T}$BUILD_CC" >&6; }
4719 else
4720   { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723
4724
4725      if test -z "$BUILD_CC"; then
4726        # Extract the first word of "cc", so it can be a program name with args.
4727 set dummy cc; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   if test -n "$BUILD_CC"; then
4734   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4735 else
4736   ac_prog_rejected=no
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742   for ac_exec_ext in '' $ac_executable_extensions; do
4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4744     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4745        ac_prog_rejected=yes
4746        continue
4747      fi
4748     ac_cv_prog_BUILD_CC="cc"
4749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756 if test $ac_prog_rejected = yes; then
4757   # We found a bogon in the path, so make sure we never use it.
4758   set dummy $ac_cv_prog_BUILD_CC
4759   shift
4760   if test $# != 0; then
4761     # We chose a different compiler from the bogus one.
4762     # However, it has the same basename, so the bogon will be chosen
4763     # first if we set BUILD_CC to just the basename; use the full file name.
4764     shift
4765     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4766   fi
4767 fi
4768 fi
4769 fi
4770 BUILD_CC=$ac_cv_prog_BUILD_CC
4771 if test -n "$BUILD_CC"; then
4772   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4773 echo "${ECHO_T}$BUILD_CC" >&6; }
4774 else
4775   { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 fi
4778
4779
4780      fi
4781   fi
4782   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4783 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4784    { (exit 1); exit 1; }; }
4785   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4786   rm -f conftest*
4787   echo 'int main () { return 0; }' > conftest.$ac_ext
4788   ac_cv_build_exeext=
4789   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4790   (eval $ac_build_link) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; then
4794     for file in conftest.*; do
4795       case $file in
4796       *.c | *.o | *.obj | *.dSYM) ;;
4797       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4798       esac
4799     done
4800   else
4801     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4802 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4803    { (exit 1); exit 1; }; }
4804   fi
4805   rm -f conftest*
4806   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4807 fi
4808 fi
4809
4810 BUILD_EXEEXT=""
4811 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4812 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4813 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4814 ac_build_exeext=$BUILD_EXEEXT
4815
4816   ac_build_prefix=${build_alias}-
4817   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4818 set dummy ${ac_build_prefix}g++; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   if test -n "$BUILD_CXX"; then
4825   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832   for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845 if test -n "$BUILD_CXX"; then
4846   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847 echo "${ECHO_T}$BUILD_CXX" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854   if test -z "$BUILD_CXX"; then
4855      # Extract the first word of "g++", so it can be a program name with args.
4856 set dummy g++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -n "$BUILD_CXX"; then
4863   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872     ac_cv_prog_BUILD_CXX="g++"
4873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874     break 2
4875   fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4883 if test -n "$BUILD_CXX"; then
4884   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4885 echo "${ECHO_T}$BUILD_CXX" >&6; }
4886 else
4887   { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4889 fi
4890
4891
4892      if test -z "$BUILD_CXX"; then
4893        # Extract the first word of "c++", so it can be a program name with args.
4894 set dummy c++; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$BUILD_CXX"; then
4901   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4902 else
4903   ac_prog_rejected=no
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909   for ac_exec_ext in '' $ac_executable_extensions; do
4910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4911     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4912        ac_prog_rejected=yes
4913        continue
4914      fi
4915     ac_cv_prog_BUILD_CXX="c++"
4916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 if test $ac_prog_rejected = yes; then
4924   # We found a bogon in the path, so make sure we never use it.
4925   set dummy $ac_cv_prog_BUILD_CXX
4926   shift
4927   if test $# != 0; then
4928     # We chose a different compiler from the bogus one.
4929     # However, it has the same basename, so the bogon will be chosen
4930     # first if we set BUILD_CXX to just the basename; use the full file name.
4931     shift
4932     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4933   fi
4934 fi
4935 fi
4936 fi
4937 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4938 if test -n "$BUILD_CXX"; then
4939   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4940 echo "${ECHO_T}$BUILD_CXX" >&6; }
4941 else
4942   { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4944 fi
4945
4946
4947      fi
4948   fi
4949 else
4950   LLVM_CROSS_COMPILING=0
4951
4952 fi
4953
4954 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4955   cvsbuild="yes"
4956   optimize="no"
4957   CVSBUILD=CVSBUILD=1
4958
4959 else
4960   cvsbuild="no"
4961   optimize="yes"
4962 fi
4963
4964
4965 # Check whether --enable-libcpp was given.
4966 if test "${enable_libcpp+set}" = set; then
4967   enableval=$enable_libcpp;
4968 else
4969   enableval=default
4970 fi
4971
4972 case "$enableval" in
4973   yes) ENABLE_LIBCPP=1
4974  ;;
4975   no)  ENABLE_LIBCPP=0
4976  ;;
4977   default) ENABLE_LIBCPP=0
4978 ;;
4979   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4980 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4981    { (exit 1); exit 1; }; } ;;
4982 esac
4983
4984 # Check whether --enable-optimized was given.
4985 if test "${enable_optimized+set}" = set; then
4986   enableval=$enable_optimized;
4987 else
4988   enableval=$optimize
4989 fi
4990
4991 if test ${enableval} = "no" ; then
4992   ENABLE_OPTIMIZED=
4993
4994 else
4995   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4996
4997 fi
4998
4999 # Check whether --enable-profiling was given.
5000 if test "${enable_profiling+set}" = set; then
5001   enableval=$enable_profiling;
5002 else
5003   enableval="no"
5004 fi
5005
5006 if test ${enableval} = "no" ; then
5007   ENABLE_PROFILING=
5008
5009 else
5010   ENABLE_PROFILING=ENABLE_PROFILING=1
5011
5012 fi
5013
5014 # Check whether --enable-assertions was given.
5015 if test "${enable_assertions+set}" = set; then
5016   enableval=$enable_assertions;
5017 else
5018   enableval="yes"
5019 fi
5020
5021 if test ${enableval} = "yes" ; then
5022   DISABLE_ASSERTIONS=
5023
5024 else
5025   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5026
5027 fi
5028
5029 # Check whether --enable-expensive-checks was given.
5030 if test "${enable_expensive_checks+set}" = set; then
5031   enableval=$enable_expensive_checks;
5032 else
5033   enableval="no"
5034 fi
5035
5036 if test ${enableval} = "yes" ; then
5037   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5038
5039   EXPENSIVE_CHECKS=yes
5040
5041 else
5042   ENABLE_EXPENSIVE_CHECKS=
5043
5044   EXPENSIVE_CHECKS=no
5045
5046 fi
5047
5048 # Check whether --enable-debug-runtime was given.
5049 if test "${enable_debug_runtime+set}" = set; then
5050   enableval=$enable_debug_runtime;
5051 else
5052   enableval=no
5053 fi
5054
5055 if test ${enableval} = "no" ; then
5056   DEBUG_RUNTIME=
5057
5058 else
5059   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5060
5061 fi
5062
5063 # Check whether --enable-debug-symbols was given.
5064 if test "${enable_debug_symbols+set}" = set; then
5065   enableval=$enable_debug_symbols;
5066 else
5067   enableval=no
5068 fi
5069
5070 if test ${enableval} = "no" ; then
5071   DEBUG_SYMBOLS=
5072
5073 else
5074   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5075
5076 fi
5077
5078 # Check whether --enable-jit was given.
5079 if test "${enable_jit+set}" = set; then
5080   enableval=$enable_jit;
5081 else
5082   enableval=default
5083 fi
5084
5085 if test ${enableval} = "no"
5086 then
5087   JIT=
5088
5089 else
5090   case "$llvm_cv_target_arch" in
5091     x86)         TARGET_HAS_JIT=1
5092  ;;
5093     Sparc)       TARGET_HAS_JIT=0
5094  ;;
5095     PowerPC)     TARGET_HAS_JIT=1
5096  ;;
5097     x86_64)      TARGET_HAS_JIT=1
5098  ;;
5099     ARM)         TARGET_HAS_JIT=1
5100  ;;
5101     Mips)        TARGET_HAS_JIT=1
5102  ;;
5103     XCore)       TARGET_HAS_JIT=0
5104  ;;
5105     MSP430)      TARGET_HAS_JIT=0
5106  ;;
5107     Hexagon)     TARGET_HAS_JIT=0
5108  ;;
5109     MBlaze)      TARGET_HAS_JIT=0
5110  ;;
5111     PTX)         TARGET_HAS_JIT=0
5112  ;;
5113     *)           TARGET_HAS_JIT=0
5114  ;;
5115   esac
5116 fi
5117
5118 # Check whether --enable-docs was given.
5119 if test "${enable_docs+set}" = set; then
5120   enableval=$enable_docs;
5121 else
5122   enableval=default
5123 fi
5124
5125 case "$enableval" in
5126   yes) ENABLE_DOCS=1
5127  ;;
5128   no)  ENABLE_DOCS=0
5129  ;;
5130   default) ENABLE_DOCS=1
5131  ;;
5132   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5134    { (exit 1); exit 1; }; } ;;
5135 esac
5136
5137 # Check whether --enable-doxygen was given.
5138 if test "${enable_doxygen+set}" = set; then
5139   enableval=$enable_doxygen;
5140 else
5141   enableval=default
5142 fi
5143
5144 case "$enableval" in
5145   yes) ENABLE_DOXYGEN=1
5146  ;;
5147   no)  ENABLE_DOXYGEN=0
5148  ;;
5149   default) ENABLE_DOXYGEN=0
5150  ;;
5151   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5153    { (exit 1); exit 1; }; } ;;
5154 esac
5155
5156 # Check whether --enable-threads was given.
5157 if test "${enable_threads+set}" = set; then
5158   enableval=$enable_threads;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) LLVM_ENABLE_THREADS=1
5165  ;;
5166   no)  LLVM_ENABLE_THREADS=0
5167  ;;
5168   default) LLVM_ENABLE_THREADS=1
5169  ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 cat >>confdefs.h <<_ACEOF
5176 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5177 _ACEOF
5178
5179
5180 # Check whether --enable-pthreads was given.
5181 if test "${enable_pthreads+set}" = set; then
5182   enableval=$enable_pthreads;
5183 else
5184   enableval=default
5185 fi
5186
5187 case "$enableval" in
5188   yes) ENABLE_PTHREADS=1
5189  ;;
5190   no)  ENABLE_PTHREADS=0
5191  ;;
5192   default) ENABLE_PTHREADS=1
5193  ;;
5194   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5196    { (exit 1); exit 1; }; } ;;
5197 esac
5198
5199 # Check whether --enable-pic was given.
5200 if test "${enable_pic+set}" = set; then
5201   enableval=$enable_pic;
5202 else
5203   enableval=default
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_PIC=1
5208  ;;
5209   no)  ENABLE_PIC=0
5210  ;;
5211   default) ENABLE_PIC=1
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 cat >>confdefs.h <<_ACEOF
5219 #define ENABLE_PIC $ENABLE_PIC
5220 _ACEOF
5221
5222
5223 # Check whether --enable-shared was given.
5224 if test "${enable_shared+set}" = set; then
5225   enableval=$enable_shared;
5226 else
5227   enableval=default
5228 fi
5229
5230 case "$enableval" in
5231   yes) ENABLE_SHARED=1
5232  ;;
5233   no)  ENABLE_SHARED=0
5234  ;;
5235   default) ENABLE_SHARED=0
5236  ;;
5237   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5239    { (exit 1); exit 1; }; } ;;
5240 esac
5241
5242 # Check whether --enable-embed-stdcxx was given.
5243 if test "${enable_embed_stdcxx+set}" = set; then
5244   enableval=$enable_embed_stdcxx;
5245 else
5246   enableval=default
5247 fi
5248
5249 case "$enableval" in
5250   yes) ENABLE_EMBED_STDCXX=1
5251  ;;
5252   no)  ENABLE_EMBED_STDCXX=0
5253  ;;
5254   default) ENABLE_EMBED_STDCXX=0
5255  ;;
5256   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5258    { (exit 1); exit 1; }; } ;;
5259 esac
5260
5261 # Check whether --enable-timestamps was given.
5262 if test "${enable_timestamps+set}" = set; then
5263   enableval=$enable_timestamps;
5264 else
5265   enableval=default
5266 fi
5267
5268 case "$enableval" in
5269   yes) ENABLE_TIMESTAMPS=1
5270  ;;
5271   no)  ENABLE_TIMESTAMPS=0
5272  ;;
5273   default) ENABLE_TIMESTAMPS=1
5274  ;;
5275   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5277    { (exit 1); exit 1; }; } ;;
5278 esac
5279
5280 cat >>confdefs.h <<_ACEOF
5281 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5282 _ACEOF
5283
5284
5285 TARGETS_TO_BUILD=""
5286 # Check whether --enable-targets was given.
5287 if test "${enable_targets+set}" = set; then
5288   enableval=$enable_targets;
5289 else
5290   enableval=all
5291 fi
5292
5293 if test "$enableval" = host-only ; then
5294   enableval=host
5295 fi
5296 case "$enableval" in
5297   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5298   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5299       case "$a_target" in
5300         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5301         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5302         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5303         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5304         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5305         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5306         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5307         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5308         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5309         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5310         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5311         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5312         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5313         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5314         host) case "$llvm_cv_target_arch" in
5315             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5316             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5318             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5319             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5320             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5321             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5322             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5323             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5325             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5326             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5327             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5328 echo "$as_me: error: Can not set target to build" >&2;}
5329    { (exit 1); exit 1; }; } ;;
5330           esac ;;
5331         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5332 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5333    { (exit 1); exit 1; }; } ;;
5334       esac
5335   done
5336   ;;
5337 esac
5338 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5339
5340
5341 # Determine whether we are building LLVM support for the native architecture.
5342 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5343 for a_target in $TARGETS_TO_BUILD; do
5344   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5345
5346 cat >>confdefs.h <<_ACEOF
5347 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5348 _ACEOF
5349
5350     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5351     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5352     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5353     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5354     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5356     fi
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5360 _ACEOF
5361
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5365 _ACEOF
5366
5367
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5370 _ACEOF
5371
5372
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5375 _ACEOF
5376
5377     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5381 _ACEOF
5382
5383     fi
5384   fi
5385 done
5386
5387 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5388 # target feature def files.
5389 LLVM_ENUM_TARGETS=""
5390 LLVM_ENUM_ASM_PRINTERS=""
5391 LLVM_ENUM_ASM_PARSERS=""
5392 LLVM_ENUM_DISASSEMBLERS=""
5393 for target_to_build in $TARGETS_TO_BUILD; do
5394   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5395   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5396     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5397   fi
5398   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5399     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5400   fi
5401   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5402     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5403   fi
5404 done
5405
5406
5407
5408
5409
5410 # Check whether --enable-cbe-printf-a was given.
5411 if test "${enable_cbe_printf_a+set}" = set; then
5412   enableval=$enable_cbe_printf_a;
5413 else
5414   enableval=default
5415 fi
5416
5417 case "$enableval" in
5418   yes) ENABLE_CBE_PRINTF_A=1
5419  ;;
5420   no)  ENABLE_CBE_PRINTF_A=0
5421  ;;
5422   default)  ENABLE_CBE_PRINTF_A=1
5423  ;;
5424   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5425 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5426    { (exit 1); exit 1; }; } ;;
5427 esac
5428
5429 cat >>confdefs.h <<_ACEOF
5430 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5431 _ACEOF
5432
5433
5434
5435 # Check whether --with-optimize-option was given.
5436 if test "${with_optimize_option+set}" = set; then
5437   withval=$with_optimize_option;
5438 else
5439   withval=default
5440 fi
5441
5442 { echo "$as_me:$LINENO: checking optimization flags" >&5
5443 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5444 case "$withval" in
5445   default)
5446     case "$llvm_cv_os_type" in
5447     FreeBSD) optimize_option=-O2 ;;
5448     MingW) optimize_option=-O2 ;;
5449     *)     optimize_option=-O3 ;;
5450     esac ;;
5451   *) optimize_option="$withval" ;;
5452 esac
5453 OPTIMIZE_OPTION=$optimize_option
5454
5455 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5456 echo "${ECHO_T}$optimize_option" >&6; }
5457
5458
5459 # Check whether --with-extra-options was given.
5460 if test "${with_extra_options+set}" = set; then
5461   withval=$with_extra_options;
5462 else
5463   withval=default
5464 fi
5465
5466 case "$withval" in
5467   default) EXTRA_OPTIONS= ;;
5468   *) EXTRA_OPTIONS=$withval ;;
5469 esac
5470 EXTRA_OPTIONS=$EXTRA_OPTIONS
5471
5472
5473
5474 # Check whether --with-extra-ld-options was given.
5475 if test "${with_extra_ld_options+set}" = set; then
5476   withval=$with_extra_ld_options;
5477 else
5478   withval=default
5479 fi
5480
5481 case "$withval" in
5482   default) EXTRA_LD_OPTIONS= ;;
5483   *) EXTRA_LD_OPTIONS=$withval ;;
5484 esac
5485 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5486
5487
5488 # Check whether --enable-bindings was given.
5489 if test "${enable_bindings+set}" = set; then
5490   enableval=$enable_bindings;
5491 else
5492   enableval=default
5493 fi
5494
5495 BINDINGS_TO_BUILD=""
5496 case "$enableval" in
5497   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5498   all ) BINDINGS_TO_BUILD="ocaml" ;;
5499   none | no) BINDINGS_TO_BUILD="" ;;
5500   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5501       case "$a_binding" in
5502         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5503         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5504 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5505    { (exit 1); exit 1; }; } ;;
5506       esac
5507   done
5508   ;;
5509 esac
5510
5511
5512 # Check whether --with-ocaml-libdir was given.
5513 if test "${with_ocaml_libdir+set}" = set; then
5514   withval=$with_ocaml_libdir;
5515 else
5516   withval=auto
5517 fi
5518
5519 case "$withval" in
5520   auto) with_ocaml_libdir="$withval" ;;
5521   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5522   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5523 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5524    { (exit 1); exit 1; }; } ;;
5525 esac
5526
5527
5528 # Check whether --with-clang-srcdir was given.
5529 if test "${with_clang_srcdir+set}" = set; then
5530   withval=$with_clang_srcdir;
5531 else
5532   withval="-"
5533 fi
5534
5535 case "$withval" in
5536   -) clang_src_root="" ;;
5537   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5538   *) clang_src_root="$ac_pwd/$withval" ;;
5539 esac
5540 CLANG_SRC_ROOT=$clang_src_root
5541
5542
5543
5544 # Check whether --with-clang-resource-dir was given.
5545 if test "${with_clang_resource_dir+set}" = set; then
5546   withval=$with_clang_resource_dir;
5547 else
5548   withval=""
5549 fi
5550
5551
5552 cat >>confdefs.h <<_ACEOF
5553 #define CLANG_RESOURCE_DIR "$withval"
5554 _ACEOF
5555
5556
5557
5558 # Check whether --with-c-include-dirs was given.
5559 if test "${with_c_include_dirs+set}" = set; then
5560   withval=$with_c_include_dirs;
5561 else
5562   withval=""
5563 fi
5564
5565
5566 cat >>confdefs.h <<_ACEOF
5567 #define C_INCLUDE_DIRS "$withval"
5568 _ACEOF
5569
5570
5571
5572 # Check whether --with-cxx-include-root was given.
5573 if test "${with_cxx_include_root+set}" = set; then
5574   withval=$with_cxx_include_root;
5575 else
5576   withval=""
5577 fi
5578
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define CXX_INCLUDE_ROOT "$withval"
5582 _ACEOF
5583
5584
5585
5586 # Check whether --with-cxx-include-arch was given.
5587 if test "${with_cxx_include_arch+set}" = set; then
5588   withval=$with_cxx_include_arch;
5589 else
5590   withval=""
5591 fi
5592
5593
5594 cat >>confdefs.h <<_ACEOF
5595 #define CXX_INCLUDE_ARCH "$withval"
5596 _ACEOF
5597
5598
5599
5600 # Check whether --with-cxx-include-32bit-dir was given.
5601 if test "${with_cxx_include_32bit_dir+set}" = set; then
5602   withval=$with_cxx_include_32bit_dir;
5603 else
5604   withval=""
5605 fi
5606
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define CXX_INCLUDE_32BIT_DIR "$withval"
5610 _ACEOF
5611
5612
5613
5614 # Check whether --with-cxx-include-64bit-dir was given.
5615 if test "${with_cxx_include_64bit_dir+set}" = set; then
5616   withval=$with_cxx_include_64bit_dir;
5617 else
5618   withval=""
5619 fi
5620
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define CXX_INCLUDE_64BIT_DIR "$withval"
5624 _ACEOF
5625
5626
5627
5628 # Check whether --with-binutils-include was given.
5629 if test "${with_binutils_include+set}" = set; then
5630   withval=$with_binutils_include;
5631 else
5632   withval=default
5633 fi
5634
5635 case "$withval" in
5636   default) WITH_BINUTILS_INCDIR=default ;;
5637   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5638   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5639 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5640    { (exit 1); exit 1; }; } ;;
5641 esac
5642 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5643   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5644
5645   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5646      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5647      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5648 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5649    { (exit 1); exit 1; }; };
5650   fi
5651 fi
5652
5653
5654 # Check whether --with-bug-report-url was given.
5655 if test "${with_bug_report_url+set}" = set; then
5656   withval=$with_bug_report_url;
5657 else
5658   withval="http://llvm.org/bugs/"
5659 fi
5660
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define BUG_REPORT_URL "$withval"
5664 _ACEOF
5665
5666
5667 # Check whether --enable-libffi was given.
5668 if test "${enable_libffi+set}" = set; then
5669   enableval=$enable_libffi; case "$enableval" in
5670     yes) llvm_cv_enable_libffi="yes" ;;
5671     no)  llvm_cv_enable_libffi="no"  ;;
5672     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5673 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5674    { (exit 1); exit 1; }; } ;;
5675   esac
5676 else
5677   llvm_cv_enable_libffi=no
5678 fi
5679
5680
5681
5682 # Check whether --with-internal-prefix was given.
5683 if test "${with_internal_prefix+set}" = set; then
5684   withval=$with_internal_prefix;
5685 else
5686   withval=""
5687 fi
5688
5689 INTERNAL_PREFIX=$withval
5690
5691
5692
5693 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5694 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5695 if test "${lt_cv_path_NM+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   if test -n "$NM"; then
5699   # Let the user override the test.
5700   lt_cv_path_NM="$NM"
5701 else
5702   lt_nm_to_check="${ac_tool_prefix}nm"
5703   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5704     lt_nm_to_check="$lt_nm_to_check nm"
5705   fi
5706   for lt_tmp_nm in $lt_nm_to_check; do
5707     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5708     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5709       IFS="$lt_save_ifs"
5710       test -z "$ac_dir" && ac_dir=.
5711       tmp_nm="$ac_dir/$lt_tmp_nm"
5712       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5713         # Check to see if the nm accepts a BSD-compat flag.
5714         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5715         #   nm: unknown option "B" ignored
5716         # Tru64's nm complains that /dev/null is an invalid object file
5717         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5718         */dev/null* | *'Invalid file or object type'*)
5719           lt_cv_path_NM="$tmp_nm -B"
5720           break
5721           ;;
5722         *)
5723           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5724           */dev/null*)
5725             lt_cv_path_NM="$tmp_nm -p"
5726             break
5727             ;;
5728           *)
5729             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5730             continue # so that we can try to find one that supports BSD flags
5731             ;;
5732           esac
5733           ;;
5734         esac
5735       fi
5736     done
5737     IFS="$lt_save_ifs"
5738   done
5739   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5740 fi
5741 fi
5742 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5743 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5744 NM="$lt_cv_path_NM"
5745
5746
5747
5748 { echo "$as_me:$LINENO: checking for GNU make" >&5
5749 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5750 if test "${llvm_cv_gnu_make_command+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   llvm_cv_gnu_make_command=''
5754  for a in "$MAKE" make gmake gnumake ; do
5755   if test -z "$a" ; then continue ; fi ;
5756   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5757   then
5758    llvm_cv_gnu_make_command=$a ;
5759    break;
5760   fi
5761  done
5762 fi
5763 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5764 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5765  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5766    ifGNUmake='' ;
5767  else
5768    ifGNUmake='#' ;
5769    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5770 echo "${ECHO_T}\"Not found\"" >&6; };
5771  fi
5772
5773
5774 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5775 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5776 LN_S=$as_ln_s
5777 if test "$LN_S" = "ln -s"; then
5778   { echo "$as_me:$LINENO: result: yes" >&5
5779 echo "${ECHO_T}yes" >&6; }
5780 else
5781   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5782 echo "${ECHO_T}no, using $LN_S" >&6; }
5783 fi
5784
5785 # Extract the first word of "cmp", so it can be a program name with args.
5786 set dummy cmp; ac_word=$2
5787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_CMP+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   case $CMP in
5793   [\\/]* | ?:[\\/]*)
5794   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5795   ;;
5796   *)
5797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802   for ac_exec_ext in '' $ac_executable_extensions; do
5803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5813   ;;
5814 esac
5815 fi
5816 CMP=$ac_cv_path_CMP
5817 if test -n "$CMP"; then
5818   { echo "$as_me:$LINENO: result: $CMP" >&5
5819 echo "${ECHO_T}$CMP" >&6; }
5820 else
5821   { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5823 fi
5824
5825
5826 # Extract the first word of "cp", so it can be a program name with args.
5827 set dummy cp; ac_word=$2
5828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830 if test "${ac_cv_path_CP+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   case $CP in
5834   [\\/]* | ?:[\\/]*)
5835   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5836   ;;
5837   *)
5838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   test -z "$as_dir" && as_dir=.
5843   for ac_exec_ext in '' $ac_executable_extensions; do
5844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5845     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847     break 2
5848   fi
5849 done
5850 done
5851 IFS=$as_save_IFS
5852
5853   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5854   ;;
5855 esac
5856 fi
5857 CP=$ac_cv_path_CP
5858 if test -n "$CP"; then
5859   { echo "$as_me:$LINENO: result: $CP" >&5
5860 echo "${ECHO_T}$CP" >&6; }
5861 else
5862   { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5864 fi
5865
5866
5867 # Extract the first word of "date", so it can be a program name with args.
5868 set dummy date; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_DATE+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   case $DATE in
5875   [\\/]* | ?:[\\/]*)
5876   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5877   ;;
5878   *)
5879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884   for ac_exec_ext in '' $ac_executable_extensions; do
5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5886     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891 done
5892 IFS=$as_save_IFS
5893
5894   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5895   ;;
5896 esac
5897 fi
5898 DATE=$ac_cv_path_DATE
5899 if test -n "$DATE"; then
5900   { echo "$as_me:$LINENO: result: $DATE" >&5
5901 echo "${ECHO_T}$DATE" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908 # Extract the first word of "find", so it can be a program name with args.
5909 set dummy find; ac_word=$2
5910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5912 if test "${ac_cv_path_FIND+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915   case $FIND in
5916   [\\/]* | ?:[\\/]*)
5917   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5918   ;;
5919   *)
5920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5936   ;;
5937 esac
5938 fi
5939 FIND=$ac_cv_path_FIND
5940 if test -n "$FIND"; then
5941   { echo "$as_me:$LINENO: result: $FIND" >&5
5942 echo "${ECHO_T}$FIND" >&6; }
5943 else
5944   { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5946 fi
5947
5948
5949 # Extract the first word of "grep", so it can be a program name with args.
5950 set dummy grep; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_path_GREP+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   case $GREP in
5957   [\\/]* | ?:[\\/]*)
5958   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5959   ;;
5960   *)
5961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966   for ac_exec_ext in '' $ac_executable_extensions; do
5967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5968     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973 done
5974 IFS=$as_save_IFS
5975
5976   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5977   ;;
5978 esac
5979 fi
5980 GREP=$ac_cv_path_GREP
5981 if test -n "$GREP"; then
5982   { echo "$as_me:$LINENO: result: $GREP" >&5
5983 echo "${ECHO_T}$GREP" >&6; }
5984 else
5985   { echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6; }
5987 fi
5988
5989
5990 # Extract the first word of "mkdir", so it can be a program name with args.
5991 set dummy mkdir; ac_word=$2
5992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5994 if test "${ac_cv_path_MKDIR+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   case $MKDIR in
5998   [\\/]* | ?:[\\/]*)
5999   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6000   ;;
6001   *)
6002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007   for ac_exec_ext in '' $ac_executable_extensions; do
6008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6009     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6018   ;;
6019 esac
6020 fi
6021 MKDIR=$ac_cv_path_MKDIR
6022 if test -n "$MKDIR"; then
6023   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6024 echo "${ECHO_T}$MKDIR" >&6; }
6025 else
6026   { echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6; }
6028 fi
6029
6030
6031 # Extract the first word of "mv", so it can be a program name with args.
6032 set dummy mv; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_path_MV+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   case $MV in
6039   [\\/]* | ?:[\\/]*)
6040   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6041   ;;
6042   *)
6043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048   for ac_exec_ext in '' $ac_executable_extensions; do
6049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6059   ;;
6060 esac
6061 fi
6062 MV=$ac_cv_path_MV
6063 if test -n "$MV"; then
6064   { echo "$as_me:$LINENO: result: $MV" >&5
6065 echo "${ECHO_T}$MV" >&6; }
6066 else
6067   { echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6; }
6069 fi
6070
6071
6072 if test -n "$ac_tool_prefix"; then
6073   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_RANLIB+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   if test -n "$RANLIB"; then
6081   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088   for ac_exec_ext in '' $ac_executable_extensions; do
6089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6090     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092     break 2
6093   fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 RANLIB=$ac_cv_prog_RANLIB
6101 if test -n "$RANLIB"; then
6102   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6103 echo "${ECHO_T}$RANLIB" >&6; }
6104 else
6105   { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$ac_cv_prog_RANLIB"; then
6112   ac_ct_RANLIB=$RANLIB
6113   # Extract the first word of "ranlib", so it can be a program name with args.
6114 set dummy ranlib; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   if test -n "$ac_ct_RANLIB"; then
6121   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6130     ac_cv_prog_ac_ct_RANLIB="ranlib"
6131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6144 else
6145   { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6147 fi
6148
6149   if test "x$ac_ct_RANLIB" = x; then
6150     RANLIB=":"
6151   else
6152     case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet.  If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&5
6157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158 whose name does not start with the host triplet.  If you think this
6159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162     RANLIB=$ac_ct_RANLIB
6163   fi
6164 else
6165   RANLIB="$ac_cv_prog_RANLIB"
6166 fi
6167
6168 if test -n "$ac_tool_prefix"; then
6169   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ar; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_AR+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   if test -n "$AR"; then
6177   ac_cv_prog_AR="$AR" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184   for ac_exec_ext in '' $ac_executable_extensions; do
6185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186     ac_cv_prog_AR="${ac_tool_prefix}ar"
6187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 AR=$ac_cv_prog_AR
6197 if test -n "$AR"; then
6198   { echo "$as_me:$LINENO: result: $AR" >&5
6199 echo "${ECHO_T}$AR" >&6; }
6200 else
6201   { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6203 fi
6204
6205
6206 fi
6207 if test -z "$ac_cv_prog_AR"; then
6208   ac_ct_AR=$AR
6209   # Extract the first word of "ar", so it can be a program name with args.
6210 set dummy ar; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   if test -n "$ac_ct_AR"; then
6217   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224   for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_ac_ct_AR="ar"
6227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6239 echo "${ECHO_T}$ac_ct_AR" >&6; }
6240 else
6241   { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6243 fi
6244
6245   if test "x$ac_ct_AR" = x; then
6246     AR="false"
6247   else
6248     case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251 whose name does not start with the host triplet.  If you think this
6252 configuration is useful to you, please write to autoconf@gnu.org." >&5
6253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet.  If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258     AR=$ac_ct_AR
6259   fi
6260 else
6261   AR="$ac_cv_prog_AR"
6262 fi
6263
6264 # Extract the first word of "rm", so it can be a program name with args.
6265 set dummy rm; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_path_RM+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   case $RM in
6272   [\\/]* | ?:[\\/]*)
6273   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6274   ;;
6275   *)
6276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281   for ac_exec_ext in '' $ac_executable_extensions; do
6282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6292   ;;
6293 esac
6294 fi
6295 RM=$ac_cv_path_RM
6296 if test -n "$RM"; then
6297   { echo "$as_me:$LINENO: result: $RM" >&5
6298 echo "${ECHO_T}$RM" >&6; }
6299 else
6300   { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6302 fi
6303
6304
6305 # Extract the first word of "sed", so it can be a program name with args.
6306 set dummy sed; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_SED+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   case $SED in
6313   [\\/]* | ?:[\\/]*)
6314   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6315   ;;
6316   *)
6317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322   for ac_exec_ext in '' $ac_executable_extensions; do
6323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326     break 2
6327   fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6333   ;;
6334 esac
6335 fi
6336 SED=$ac_cv_path_SED
6337 if test -n "$SED"; then
6338   { echo "$as_me:$LINENO: result: $SED" >&5
6339 echo "${ECHO_T}$SED" >&6; }
6340 else
6341   { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6343 fi
6344
6345
6346 # Extract the first word of "tar", so it can be a program name with args.
6347 set dummy tar; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_path_TAR+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   case $TAR in
6354   [\\/]* | ?:[\\/]*)
6355   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6356   ;;
6357   *)
6358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363   for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6374   ;;
6375 esac
6376 fi
6377 TAR=$ac_cv_path_TAR
6378 if test -n "$TAR"; then
6379   { echo "$as_me:$LINENO: result: $TAR" >&5
6380 echo "${ECHO_T}$TAR" >&6; }
6381 else
6382   { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6384 fi
6385
6386
6387 # Extract the first word of "pwd", so it can be a program name with args.
6388 set dummy pwd; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_BINPWD+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   case $BINPWD in
6395   [\\/]* | ?:[\\/]*)
6396   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6397   ;;
6398   *)
6399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404   for ac_exec_ext in '' $ac_executable_extensions; do
6405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6415   ;;
6416 esac
6417 fi
6418 BINPWD=$ac_cv_path_BINPWD
6419 if test -n "$BINPWD"; then
6420   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6421 echo "${ECHO_T}$BINPWD" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427
6428
6429 # Extract the first word of "Graphviz", so it can be a program name with args.
6430 set dummy Graphviz; ac_word=$2
6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   case $GRAPHVIZ in
6437   [\\/]* | ?:[\\/]*)
6438   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6439   ;;
6440   *)
6441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446   for ac_exec_ext in '' $ac_executable_extensions; do
6447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6448     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6457   ;;
6458 esac
6459 fi
6460 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6461 if test -n "$GRAPHVIZ"; then
6462   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6463 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6464 else
6465   { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6467 fi
6468
6469
6470 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6471
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE_GRAPHVIZ 1
6474 _ACEOF
6475
6476     if test "$llvm_cv_os_type" = "MingW" ; then
6477     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6478   fi
6479
6480 cat >>confdefs.h <<_ACEOF
6481 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6482 _ACEOF
6483
6484 fi
6485 # Extract the first word of "dot", so it can be a program name with args.
6486 set dummy dot; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_path_DOT+set}" = set; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   case $DOT in
6493   [\\/]* | ?:[\\/]*)
6494   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6495   ;;
6496   *)
6497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6513   ;;
6514 esac
6515 fi
6516 DOT=$ac_cv_path_DOT
6517 if test -n "$DOT"; then
6518   { echo "$as_me:$LINENO: result: $DOT" >&5
6519 echo "${ECHO_T}$DOT" >&6; }
6520 else
6521   { echo "$as_me:$LINENO: result: no" >&5
6522 echo "${ECHO_T}no" >&6; }
6523 fi
6524
6525
6526 if test "$DOT" != "echo dot" ; then
6527
6528 cat >>confdefs.h <<\_ACEOF
6529 #define HAVE_DOT 1
6530 _ACEOF
6531
6532     if test "$llvm_cv_os_type" = "MingW" ; then
6533     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6534   fi
6535
6536 cat >>confdefs.h <<_ACEOF
6537 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6538 _ACEOF
6539
6540 fi
6541 # Extract the first word of "fdp", so it can be a program name with args.
6542 set dummy fdp; ac_word=$2
6543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6545 if test "${ac_cv_path_FDP+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   case $FDP in
6549   [\\/]* | ?:[\\/]*)
6550   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6551   ;;
6552   *)
6553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6569   ;;
6570 esac
6571 fi
6572 FDP=$ac_cv_path_FDP
6573 if test -n "$FDP"; then
6574   { echo "$as_me:$LINENO: result: $FDP" >&5
6575 echo "${ECHO_T}$FDP" >&6; }
6576 else
6577   { echo "$as_me:$LINENO: result: no" >&5
6578 echo "${ECHO_T}no" >&6; }
6579 fi
6580
6581
6582 if test "$FDP" != "echo fdp" ; then
6583
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_FDP 1
6586 _ACEOF
6587
6588     if test "$llvm_cv_os_type" = "MingW" ; then
6589     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6590   fi
6591
6592 cat >>confdefs.h <<_ACEOF
6593 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6594 _ACEOF
6595
6596 fi
6597 # Extract the first word of "neato", so it can be a program name with args.
6598 set dummy neato; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_path_NEATO+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   case $NEATO in
6605   [\\/]* | ?:[\\/]*)
6606   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6607   ;;
6608   *)
6609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614   for ac_exec_ext in '' $ac_executable_extensions; do
6615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6616     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6625   ;;
6626 esac
6627 fi
6628 NEATO=$ac_cv_path_NEATO
6629 if test -n "$NEATO"; then
6630   { echo "$as_me:$LINENO: result: $NEATO" >&5
6631 echo "${ECHO_T}$NEATO" >&6; }
6632 else
6633   { echo "$as_me:$LINENO: result: no" >&5
6634 echo "${ECHO_T}no" >&6; }
6635 fi
6636
6637
6638 if test "$NEATO" != "echo neato" ; then
6639
6640 cat >>confdefs.h <<\_ACEOF
6641 #define HAVE_NEATO 1
6642 _ACEOF
6643
6644     if test "$llvm_cv_os_type" = "MingW" ; then
6645     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6646   fi
6647
6648 cat >>confdefs.h <<_ACEOF
6649 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6650 _ACEOF
6651
6652 fi
6653 # Extract the first word of "twopi", so it can be a program name with args.
6654 set dummy twopi; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_TWOPI+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   case $TWOPI in
6661   [\\/]* | ?:[\\/]*)
6662   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6663   ;;
6664   *)
6665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6681   ;;
6682 esac
6683 fi
6684 TWOPI=$ac_cv_path_TWOPI
6685 if test -n "$TWOPI"; then
6686   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6687 echo "${ECHO_T}$TWOPI" >&6; }
6688 else
6689   { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6691 fi
6692
6693
6694 if test "$TWOPI" != "echo twopi" ; then
6695
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_TWOPI 1
6698 _ACEOF
6699
6700     if test "$llvm_cv_os_type" = "MingW" ; then
6701     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6702   fi
6703
6704 cat >>confdefs.h <<_ACEOF
6705 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6706 _ACEOF
6707
6708 fi
6709 # Extract the first word of "circo", so it can be a program name with args.
6710 set dummy circo; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_CIRCO+set}" = set; then
6714   echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716   case $CIRCO in
6717   [\\/]* | ?:[\\/]*)
6718   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6719   ;;
6720   *)
6721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726   for ac_exec_ext in '' $ac_executable_extensions; do
6727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6737   ;;
6738 esac
6739 fi
6740 CIRCO=$ac_cv_path_CIRCO
6741 if test -n "$CIRCO"; then
6742   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6743 echo "${ECHO_T}$CIRCO" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749
6750 if test "$CIRCO" != "echo circo" ; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_CIRCO 1
6754 _ACEOF
6755
6756     if test "$llvm_cv_os_type" = "MingW" ; then
6757     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6758   fi
6759
6760 cat >>confdefs.h <<_ACEOF
6761 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6762 _ACEOF
6763
6764 fi
6765 for ac_prog in gv gsview32
6766 do
6767   # Extract the first word of "$ac_prog", so it can be a program name with args.
6768 set dummy $ac_prog; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_path_GV+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   case $GV in
6775   [\\/]* | ?:[\\/]*)
6776   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6777   ;;
6778   *)
6779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794   ;;
6795 esac
6796 fi
6797 GV=$ac_cv_path_GV
6798 if test -n "$GV"; then
6799   { echo "$as_me:$LINENO: result: $GV" >&5
6800 echo "${ECHO_T}$GV" >&6; }
6801 else
6802   { echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6; }
6804 fi
6805
6806
6807   test -n "$GV" && break
6808 done
6809 test -n "$GV" || GV="echo gv"
6810
6811 if test "$GV" != "echo gv" ; then
6812
6813 cat >>confdefs.h <<\_ACEOF
6814 #define HAVE_GV 1
6815 _ACEOF
6816
6817     if test "$llvm_cv_os_type" = "MingW" ; then
6818     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6819   fi
6820
6821 cat >>confdefs.h <<_ACEOF
6822 #define LLVM_PATH_GV "$GV${EXEEXT}"
6823 _ACEOF
6824
6825 fi
6826 # Extract the first word of "dotty", so it can be a program name with args.
6827 set dummy dotty; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_path_DOTTY+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   case $DOTTY in
6834   [\\/]* | ?:[\\/]*)
6835   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6836   ;;
6837   *)
6838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843   for ac_exec_ext in '' $ac_executable_extensions; do
6844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6854   ;;
6855 esac
6856 fi
6857 DOTTY=$ac_cv_path_DOTTY
6858 if test -n "$DOTTY"; then
6859   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6860 echo "${ECHO_T}$DOTTY" >&6; }
6861 else
6862   { echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6; }
6864 fi
6865
6866
6867 if test "$DOTTY" != "echo dotty" ; then
6868
6869 cat >>confdefs.h <<\_ACEOF
6870 #define HAVE_DOTTY 1
6871 _ACEOF
6872
6873     if test "$llvm_cv_os_type" = "MingW" ; then
6874     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6875   fi
6876
6877 cat >>confdefs.h <<_ACEOF
6878 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6879 _ACEOF
6880
6881 fi
6882 # Extract the first word of "xdot.py", so it can be a program name with args.
6883 set dummy xdot.py; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $XDOT_PY in
6890   [\\/]* | ?:[\\/]*)
6891   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6892   ;;
6893   *)
6894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899   for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6910   ;;
6911 esac
6912 fi
6913 XDOT_PY=$ac_cv_path_XDOT_PY
6914 if test -n "$XDOT_PY"; then
6915   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6916 echo "${ECHO_T}$XDOT_PY" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923 if test "$XDOT_PY" != "echo xdot.py" ; then
6924
6925 cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_XDOT_PY 1
6927 _ACEOF
6928
6929     if test "$llvm_cv_os_type" = "MingW" ; then
6930     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6931   fi
6932
6933 cat >>confdefs.h <<_ACEOF
6934 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6935 _ACEOF
6936
6937 fi
6938
6939
6940 # Extract the first word of "perl", so it can be a program name with args.
6941 set dummy perl; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_PERL+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   case $PERL in
6948   [\\/]* | ?:[\\/]*)
6949   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6950   ;;
6951   *)
6952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957   for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6968   ;;
6969 esac
6970 fi
6971 PERL=$ac_cv_path_PERL
6972 if test -n "$PERL"; then
6973   { echo "$as_me:$LINENO: result: $PERL" >&5
6974 echo "${ECHO_T}$PERL" >&6; }
6975 else
6976   { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6978 fi
6979
6980
6981 if test "$PERL" != "none"; then
6982   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6983 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6984   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6985     { echo "$as_me:$LINENO: result: yes" >&5
6986 echo "${ECHO_T}yes" >&6; }
6987   else
6988     PERL=none
6989     { echo "$as_me:$LINENO: result: not found" >&5
6990 echo "${ECHO_T}not found" >&6; }
6991   fi
6992 fi
6993
6994
6995 if test x"$PERL" = xnone; then
6996    HAVE_PERL=0
6997
6998    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6999 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7000    { (exit 1); exit 1; }; }
7001 else
7002    HAVE_PERL=1
7003
7004 fi
7005
7006 # Find a good install program.  We prefer a C program (faster),
7007 # so one script is as good as another.  But avoid the broken or
7008 # incompatible versions:
7009 # SysV /etc/install, /usr/sbin/install
7010 # SunOS /usr/etc/install
7011 # IRIX /sbin/install
7012 # AIX /bin/install
7013 # AmigaOS /C/install, which installs bootblocks on floppy discs
7014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7017 # OS/2's system install, which has a completely different semantic
7018 # ./install, which can be erroneously created by make from ./install.sh.
7019 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7020 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7021 if test -z "$INSTALL"; then
7022 if test "${ac_cv_path_install+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   test -z "$as_dir" && as_dir=.
7030   # Account for people who put trailing slashes in PATH elements.
7031 case $as_dir/ in
7032   ./ | .// | /cC/* | \
7033   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7034   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7035   /usr/ucb/* ) ;;
7036   *)
7037     # OSF1 and SCO ODT 3.0 have their own names for install.
7038     # Don't use installbsd from OSF since it installs stuff as root
7039     # by default.
7040     for ac_prog in ginstall scoinst install; do
7041       for ac_exec_ext in '' $ac_executable_extensions; do
7042         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7043           if test $ac_prog = install &&
7044             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7045             # AIX install.  It has an incompatible calling convention.
7046             :
7047           elif test $ac_prog = install &&
7048             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7049             # program-specific install script used by HP pwplus--don't use.
7050             :
7051           else
7052             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7053             break 3
7054           fi
7055         fi
7056       done
7057     done
7058     ;;
7059 esac
7060 done
7061 IFS=$as_save_IFS
7062
7063
7064 fi
7065   if test "${ac_cv_path_install+set}" = set; then
7066     INSTALL=$ac_cv_path_install
7067   else
7068     # As a last resort, use the slow shell script.  Don't cache a
7069     # value for INSTALL within a source directory, because that will
7070     # break other packages using the cache if that directory is
7071     # removed, or if the value is a relative name.
7072     INSTALL=$ac_install_sh
7073   fi
7074 fi
7075 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7076 echo "${ECHO_T}$INSTALL" >&6; }
7077
7078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7079 # It thinks the first close brace ends the variable substitution.
7080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7081
7082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7083
7084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7085
7086 case "$INSTALL" in
7087  [\\/$]* | ?:[\\/]* ) ;;
7088  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7089 esac
7090
7091 # Extract the first word of "bzip2", so it can be a program name with args.
7092 set dummy bzip2; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_BZIP2+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   case $BZIP2 in
7099   [\\/]* | ?:[\\/]*)
7100   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7101   ;;
7102   *)
7103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108   for ac_exec_ext in '' $ac_executable_extensions; do
7109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118   ;;
7119 esac
7120 fi
7121 BZIP2=$ac_cv_path_BZIP2
7122 if test -n "$BZIP2"; then
7123   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7124 echo "${ECHO_T}$BZIP2" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 # Extract the first word of "cat", so it can be a program name with args.
7132 set dummy cat; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_CAT+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   case $CAT in
7139   [\\/]* | ?:[\\/]*)
7140   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7141   ;;
7142   *)
7143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148   for ac_exec_ext in '' $ac_executable_extensions; do
7149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158   ;;
7159 esac
7160 fi
7161 CAT=$ac_cv_path_CAT
7162 if test -n "$CAT"; then
7163   { echo "$as_me:$LINENO: result: $CAT" >&5
7164 echo "${ECHO_T}$CAT" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170
7171 # Extract the first word of "doxygen", so it can be a program name with args.
7172 set dummy doxygen; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $DOXYGEN in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7181   ;;
7182   *)
7183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198   ;;
7199 esac
7200 fi
7201 DOXYGEN=$ac_cv_path_DOXYGEN
7202 if test -n "$DOXYGEN"; then
7203   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7204 echo "${ECHO_T}$DOXYGEN" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211 # Extract the first word of "groff", so it can be a program name with args.
7212 set dummy groff; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_GROFF+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   case $GROFF in
7219   [\\/]* | ?:[\\/]*)
7220   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7221   ;;
7222   *)
7223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228   for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238   ;;
7239 esac
7240 fi
7241 GROFF=$ac_cv_path_GROFF
7242 if test -n "$GROFF"; then
7243   { echo "$as_me:$LINENO: result: $GROFF" >&5
7244 echo "${ECHO_T}$GROFF" >&6; }
7245 else
7246   { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7248 fi
7249
7250
7251 # Extract the first word of "gzip", so it can be a program name with args.
7252 set dummy gzip; ac_word=$2
7253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   case $GZIPBIN in
7259   [\\/]* | ?:[\\/]*)
7260   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7261   ;;
7262   *)
7263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266   IFS=$as_save_IFS
7267   test -z "$as_dir" && as_dir=.
7268   for ac_exec_ext in '' $ac_executable_extensions; do
7269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272     break 2
7273   fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7277
7278   ;;
7279 esac
7280 fi
7281 GZIPBIN=$ac_cv_path_GZIPBIN
7282 if test -n "$GZIPBIN"; then
7283   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7284 echo "${ECHO_T}$GZIPBIN" >&6; }
7285 else
7286   { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7288 fi
7289
7290
7291 # Extract the first word of "pod2html", so it can be a program name with args.
7292 set dummy pod2html; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_POD2HTML+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   case $POD2HTML in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7301   ;;
7302   *)
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308   for ac_exec_ext in '' $ac_executable_extensions; do
7309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318   ;;
7319 esac
7320 fi
7321 POD2HTML=$ac_cv_path_POD2HTML
7322 if test -n "$POD2HTML"; then
7323   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7324 echo "${ECHO_T}$POD2HTML" >&6; }
7325 else
7326   { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7328 fi
7329
7330
7331 # Extract the first word of "pod2man", so it can be a program name with args.
7332 set dummy pod2man; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_path_POD2MAN+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   case $POD2MAN in
7339   [\\/]* | ?:[\\/]*)
7340   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7341   ;;
7342   *)
7343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348   for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355 done
7356 IFS=$as_save_IFS
7357
7358   ;;
7359 esac
7360 fi
7361 POD2MAN=$ac_cv_path_POD2MAN
7362 if test -n "$POD2MAN"; then
7363   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7364 echo "${ECHO_T}$POD2MAN" >&6; }
7365 else
7366   { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7368 fi
7369
7370
7371 # Extract the first word of "pdfroff", so it can be a program name with args.
7372 set dummy pdfroff; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_PDFROFF+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   case $PDFROFF in
7379   [\\/]* | ?:[\\/]*)
7380   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7381   ;;
7382   *)
7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388   for ac_exec_ext in '' $ac_executable_extensions; do
7389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398   ;;
7399 esac
7400 fi
7401 PDFROFF=$ac_cv_path_PDFROFF
7402 if test -n "$PDFROFF"; then
7403   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7404 echo "${ECHO_T}$PDFROFF" >&6; }
7405 else
7406   { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7408 fi
7409
7410
7411 # Extract the first word of "runtest", so it can be a program name with args.
7412 set dummy runtest; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_RUNTEST+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   case $RUNTEST in
7419   [\\/]* | ?:[\\/]*)
7420   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7421   ;;
7422   *)
7423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438   ;;
7439 esac
7440 fi
7441 RUNTEST=$ac_cv_path_RUNTEST
7442 if test -n "$RUNTEST"; then
7443   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7444 echo "${ECHO_T}$RUNTEST" >&6; }
7445 else
7446   { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7448 fi
7449
7450
7451
7452 no_itcl=true
7453 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7454 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7455
7456 # Check whether --with-tclinclude was given.
7457 if test "${with_tclinclude+set}" = set; then
7458   withval=$with_tclinclude; with_tclinclude=${withval}
7459 else
7460   with_tclinclude=''
7461 fi
7462
7463 if test "${ac_cv_path_tclsh+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466
7467 if test x"${with_tclinclude}" != x ; then
7468   if test -f ${with_tclinclude}/tclsh ; then
7469     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7470   elif test -f ${with_tclinclude}/src/tclsh ; then
7471     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7472   else
7473     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7474 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7475    { (exit 1); exit 1; }; }
7476   fi
7477 fi
7478 fi
7479
7480
7481 if test x"${ac_cv_path_tclsh}" = x ; then
7482   { echo "$as_me:$LINENO: result: none" >&5
7483 echo "${ECHO_T}none" >&6; }
7484   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
7485 do
7486   # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_TCLSH+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $TCLSH in
7494   [\\/]* | ?:[\\/]*)
7495   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7496   ;;
7497   *)
7498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513   ;;
7514 esac
7515 fi
7516 TCLSH=$ac_cv_path_TCLSH
7517 if test -n "$TCLSH"; then
7518   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7519 echo "${ECHO_T}$TCLSH" >&6; }
7520 else
7521   { echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6; }
7523 fi
7524
7525
7526   test -n "$TCLSH" && break
7527 done
7528
7529   if test x"${TCLSH}" = x ; then
7530     ac_cv_path_tclsh='';
7531   else
7532     ac_cv_path_tclsh="${TCLSH}";
7533   fi
7534 else
7535   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7536 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7537   TCLSH="${ac_cv_path_tclsh}"
7538
7539 fi
7540
7541 # Extract the first word of "zip", so it can be a program name with args.
7542 set dummy zip; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_ZIP+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   case $ZIP in
7549   [\\/]* | ?:[\\/]*)
7550   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7551   ;;
7552   *)
7553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568   ;;
7569 esac
7570 fi
7571 ZIP=$ac_cv_path_ZIP
7572 if test -n "$ZIP"; then
7573   { echo "$as_me:$LINENO: result: $ZIP" >&5
7574 echo "${ECHO_T}$ZIP" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 for ac_prog in ocamlc
7582 do
7583   # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_OCAMLC+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   case $OCAMLC in
7591   [\\/]* | ?:[\\/]*)
7592   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7593   ;;
7594   *)
7595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600   for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610   ;;
7611 esac
7612 fi
7613 OCAMLC=$ac_cv_path_OCAMLC
7614 if test -n "$OCAMLC"; then
7615   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7616 echo "${ECHO_T}$OCAMLC" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623   test -n "$OCAMLC" && break
7624 done
7625
7626 for ac_prog in ocamlopt
7627 do
7628   # Extract the first word of "$ac_prog", so it can be a program name with args.
7629 set dummy $ac_prog; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   case $OCAMLOPT in
7636   [\\/]* | ?:[\\/]*)
7637   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7638   ;;
7639   *)
7640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645   for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652 done
7653 IFS=$as_save_IFS
7654
7655   ;;
7656 esac
7657 fi
7658 OCAMLOPT=$ac_cv_path_OCAMLOPT
7659 if test -n "$OCAMLOPT"; then
7660   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7661 echo "${ECHO_T}$OCAMLOPT" >&6; }
7662 else
7663   { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7665 fi
7666
7667
7668   test -n "$OCAMLOPT" && break
7669 done
7670
7671 for ac_prog in ocamldep
7672 do
7673   # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   case $OCAMLDEP in
7681   [\\/]* | ?:[\\/]*)
7682   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7683   ;;
7684   *)
7685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698 IFS=$as_save_IFS
7699
7700   ;;
7701 esac
7702 fi
7703 OCAMLDEP=$ac_cv_path_OCAMLDEP
7704 if test -n "$OCAMLDEP"; then
7705   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7706 echo "${ECHO_T}$OCAMLDEP" >&6; }
7707 else
7708   { echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6; }
7710 fi
7711
7712
7713   test -n "$OCAMLDEP" && break
7714 done
7715
7716 for ac_prog in ocamldoc
7717 do
7718   # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   case $OCAMLDOC in
7726   [\\/]* | ?:[\\/]*)
7727   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7728   ;;
7729   *)
7730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735   for ac_exec_ext in '' $ac_executable_extensions; do
7736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745   ;;
7746 esac
7747 fi
7748 OCAMLDOC=$ac_cv_path_OCAMLDOC
7749 if test -n "$OCAMLDOC"; then
7750   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7751 echo "${ECHO_T}$OCAMLDOC" >&6; }
7752 else
7753   { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7755 fi
7756
7757
7758   test -n "$OCAMLDOC" && break
7759 done
7760
7761 for ac_prog in gas as
7762 do
7763   # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7767 if test "${ac_cv_path_GAS+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   case $GAS in
7771   [\\/]* | ?:[\\/]*)
7772   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7773   ;;
7774   *)
7775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780   for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790   ;;
7791 esac
7792 fi
7793 GAS=$ac_cv_path_GAS
7794 if test -n "$GAS"; then
7795   { echo "$as_me:$LINENO: result: $GAS" >&5
7796 echo "${ECHO_T}$GAS" >&6; }
7797 else
7798   { echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6; }
7800 fi
7801
7802
7803   test -n "$GAS" && break
7804 done
7805
7806
7807 { echo "$as_me:$LINENO: checking for linker version" >&5
7808 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7809 if test "${llvm_cv_link_version+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812
7813    version_string="$(ld -v 2>&1 | head -1)"
7814
7815    # Check for ld64.
7816    if (echo "$version_string" | grep -q "ld64"); then
7817      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7818    else
7819      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7820    fi
7821
7822 fi
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7824 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7828 _ACEOF
7829
7830
7831
7832 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7833 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7834 if test "${llvm_cv_link_use_r+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837    ac_ext=c
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842
7843   oldcflags="$CFLAGS"
7844   CFLAGS="$CFLAGS -Wl,-R."
7845   cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851
7852 int
7853 main ()
7854 {
7855
7856   ;
7857   return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (ac_try="$ac_link"
7862 case "(($ac_try" in
7863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864   *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867   (eval "$ac_link") 2>conftest.er1
7868   ac_status=$?
7869   grep -v '^ *+' conftest.er1 >conftest.err
7870   rm -f conftest.er1
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); } &&
7874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875   { (case "(($ac_try" in
7876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877   *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880   (eval "$ac_try") 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; } &&
7884          { ac_try='test -s conftest$ac_exeext'
7885   { (case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890   (eval "$ac_try") 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; }; then
7894   llvm_cv_link_use_r=yes
7895 else
7896   echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899         llvm_cv_link_use_r=no
7900 fi
7901
7902 rm -f core conftest.err conftest.$ac_objext \
7903       conftest$ac_exeext conftest.$ac_ext
7904   CFLAGS="$oldcflags"
7905   ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911
7912 fi
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7914 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7915 if test "$llvm_cv_link_use_r" = yes ; then
7916
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_LINK_R 1
7919 _ACEOF
7920
7921   fi
7922
7923
7924 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7925 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7926 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929    ac_ext=c
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935   oldcflags="$CFLAGS"
7936   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7937   cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943
7944 int
7945 main ()
7946 {
7947
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7954 case "(($ac_try" in
7955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956   *) ac_try_echo=$ac_try;;
7957 esac
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959   (eval "$ac_link") 2>conftest.er1
7960   ac_status=$?
7961   grep -v '^ *+' conftest.er1 >conftest.err
7962   rm -f conftest.er1
7963   cat conftest.err >&5
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } &&
7966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967   { (case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_try") 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; } &&
7976          { ac_try='test -s conftest$ac_exeext'
7977   { (case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_try") 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; }; then
7986   llvm_cv_link_use_export_dynamic=yes
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991         llvm_cv_link_use_export_dynamic=no
7992 fi
7993
7994 rm -f core conftest.err conftest.$ac_objext \
7995       conftest$ac_exeext conftest.$ac_ext
7996   CFLAGS="$oldcflags"
7997   ac_ext=c
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003
8004 fi
8005 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8006 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8007 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8008
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_LINK_EXPORT_DYNAMIC 1
8011 _ACEOF
8012
8013   fi
8014
8015
8016 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8017 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8018 if test "${llvm_cv_link_use_version_script+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021    ac_ext=c
8022 ac_cpp='$CPP $CPPFLAGS'
8023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026
8027   oldcflags="$CFLAGS"
8028
8029   # The following code is from the autoconf manual,
8030   # "11.13: Limitations of Usual Tools".
8031   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8032   # Use mktemp if possible; otherwise fall back on mkdir,
8033   # with $RANDOM to make collisions less likely.
8034   : ${TMPDIR=/tmp}
8035   {
8036     tmp=`
8037       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8038     ` &&
8039     test -n "$tmp" && test -d "$tmp"
8040   } || {
8041     tmp=$TMPDIR/foo$$-$RANDOM
8042     (umask 077 && mkdir "$tmp")
8043   } || exit $?
8044
8045   echo "{" > "$tmp/export.map"
8046   echo "  global: main;" >> "$tmp/export.map"
8047   echo "  local: *;" >> "$tmp/export.map"
8048   echo "};" >> "$tmp/export.map"
8049
8050   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8051   cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057
8058 int
8059 main ()
8060 {
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (ac_try="$ac_link"
8068 case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_link") 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8081   { (case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086   (eval "$ac_try") 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; } &&
8090          { ac_try='test -s conftest$ac_exeext'
8091   { (case "(($ac_try" in
8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093   *) ac_try_echo=$ac_try;;
8094 esac
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096   (eval "$ac_try") 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; }; then
8100   llvm_cv_link_use_version_script=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105         llvm_cv_link_use_version_script=no
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext \
8109       conftest$ac_exeext conftest.$ac_ext
8110   rm "$tmp/export.map"
8111   rmdir "$tmp"
8112   CFLAGS="$oldcflags"
8113   ac_ext=c
8114 ac_cpp='$CPP $CPPFLAGS'
8115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8118
8119
8120 fi
8121 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8122 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8123 if test "$llvm_cv_link_use_version_script" = yes ; then
8124   HAVE_LINK_VERSION_SCRIPT=1
8125
8126   fi
8127
8128
8129
8130
8131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8133 if test "${ac_cv_c_const+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142
8143 int
8144 main ()
8145 {
8146 /* FIXME: Include the comments suggested by Paul. */
8147 #ifndef __cplusplus
8148   /* Ultrix mips cc rejects this.  */
8149   typedef int charset[2];
8150   const charset x;
8151   /* SunOS 4.1.1 cc rejects this.  */
8152   char const *const *ccp;
8153   char **p;
8154   /* NEC SVR4.0.2 mips cc rejects this.  */
8155   struct point {int x, y;};
8156   static struct point const zero = {0,0};
8157   /* AIX XL C 1.02.0.0 rejects this.
8158      It does not let you subtract one const X* pointer from another in
8159      an arm of an if-expression whose if-part is not a constant
8160      expression */
8161   const char *g = "string";
8162   ccp = &g + (g ? g-g : 0);
8163   /* HPUX 7.0 cc rejects these. */
8164   ++ccp;
8165   p = (char**) ccp;
8166   ccp = (char const *const *) p;
8167   { /* SCO 3.2v4 cc rejects this.  */
8168     char *t;
8169     char const *s = 0 ? (char *) 0 : (char const *) 0;
8170
8171     *t++ = 0;
8172     if (s) return 0;
8173   }
8174   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8175     int x[] = {25, 17};
8176     const int *foo = &x[0];
8177     ++foo;
8178   }
8179   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8180     typedef const int *iptr;
8181     iptr p = 0;
8182     ++p;
8183   }
8184   { /* AIX XL C 1.02.0.0 rejects this saying
8185        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8186     struct s { int j; const int *ap[3]; };
8187     struct s *b; b->j = 5;
8188   }
8189   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8190     const int foo = 10;
8191     if (!foo) return 0;
8192   }
8193   return !x[0] && !zero.x;
8194 #endif
8195
8196   ;
8197   return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207   (eval "$ac_compile") 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } &&
8214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; } &&
8224          { ac_try='test -s conftest.$ac_objext'
8225   { (case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_try") 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   ac_cv_c_const=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239         ac_cv_c_const=no
8240 fi
8241
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 fi
8244 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8245 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8246 if test $ac_cv_c_const = no; then
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define const
8250 _ACEOF
8251
8252 fi
8253
8254
8255
8256
8257
8258
8259 ac_header_dirent=no
8260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8261   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8262 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273 #include <sys/types.h>
8274 #include <$ac_hdr>
8275
8276 int
8277 main ()
8278 {
8279 if ((DIR *) 0)
8280 return 0;
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289   *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292   (eval "$ac_compile") 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; } &&
8309          { ac_try='test -s conftest.$ac_objext'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_try") 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   eval "$as_ac_Header=yes"
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324         eval "$as_ac_Header=no"
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 ac_res=`eval echo '${'$as_ac_Header'}'`
8330                { echo "$as_me:$LINENO: result: $ac_res" >&5
8331 echo "${ECHO_T}$ac_res" >&6; }
8332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8333   cat >>confdefs.h <<_ACEOF
8334 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8335 _ACEOF
8336
8337 ac_header_dirent=$ac_hdr; break
8338 fi
8339
8340 done
8341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8342 if test $ac_header_dirent = dirent.h; then
8343   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345 if test "${ac_cv_search_opendir+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   ac_func_search_save_LIBS=$LIBS
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 /* Override any GCC internal prototype to avoid an error.
8357    Use char because int might match the return type of a GCC
8358    builtin and then its argument prototype would still apply.  */
8359 #ifdef __cplusplus
8360 extern "C"
8361 #endif
8362 char opendir ();
8363 int
8364 main ()
8365 {
8366 return opendir ();
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 for ac_lib in '' dir; do
8372   if test -z "$ac_lib"; then
8373     ac_res="none required"
8374   else
8375     ac_res=-l$ac_lib
8376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8377   fi
8378   rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (ac_try="$ac_link"
8380 case "(($ac_try" in
8381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382   *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385   (eval "$ac_link") 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393   { (case "(($ac_try" in
8394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395   *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398   (eval "$ac_try") 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_try") 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; }; then
8412   ac_cv_search_opendir=$ac_res
8413 else
8414   echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext \
8421       conftest$ac_exeext
8422   if test "${ac_cv_search_opendir+set}" = set; then
8423   break
8424 fi
8425 done
8426 if test "${ac_cv_search_opendir+set}" = set; then
8427   :
8428 else
8429   ac_cv_search_opendir=no
8430 fi
8431 rm conftest.$ac_ext
8432 LIBS=$ac_func_search_save_LIBS
8433 fi
8434 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8436 ac_res=$ac_cv_search_opendir
8437 if test "$ac_res" != no; then
8438   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8439
8440 fi
8441
8442 else
8443   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455
8456 /* Override any GCC internal prototype to avoid an error.
8457    Use char because int might match the return type of a GCC
8458    builtin and then its argument prototype would still apply.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 char opendir ();
8463 int
8464 main ()
8465 {
8466 return opendir ();
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 for ac_lib in '' x; do
8472   if test -z "$ac_lib"; then
8473     ac_res="none required"
8474   else
8475     ac_res=-l$ac_lib
8476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8477   fi
8478   rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485   (eval "$ac_link") 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493   { (case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_try") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; } &&
8502          { ac_try='test -s conftest$ac_exeext'
8503   { (case "(($ac_try" in
8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505   *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508   (eval "$ac_try") 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512   ac_cv_search_opendir=$ac_res
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517
8518 fi
8519
8520 rm -f core conftest.err conftest.$ac_objext \
8521       conftest$ac_exeext
8522   if test "${ac_cv_search_opendir+set}" = set; then
8523   break
8524 fi
8525 done
8526 if test "${ac_cv_search_opendir+set}" = set; then
8527   :
8528 else
8529   ac_cv_search_opendir=no
8530 fi
8531 rm conftest.$ac_ext
8532 LIBS=$ac_func_search_save_LIBS
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8539
8540 fi
8541
8542 fi
8543
8544
8545 for ac_header in dlfcn.h
8546 do
8547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 fi
8554 ac_res=`eval echo '${'$as_ac_Header'}'`
8555                { echo "$as_me:$LINENO: result: $ac_res" >&5
8556 echo "${ECHO_T}$ac_res" >&6; }
8557 else
8558   # Is the header compilable?
8559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567 $ac_includes_default
8568 #include <$ac_header>
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8572 case "(($ac_try" in
8573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574   *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577   (eval "$ac_compile") 2>conftest.er1
8578   ac_status=$?
8579   grep -v '^ *+' conftest.er1 >conftest.err
8580   rm -f conftest.er1
8581   cat conftest.err >&5
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } &&
8584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8585   { (case "(($ac_try" in
8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587   *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590   (eval "$ac_try") 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; } &&
8594          { ac_try='test -s conftest.$ac_objext'
8595   { (case "(($ac_try" in
8596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597   *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600   (eval "$ac_try") 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; }; then
8604   ac_header_compiler=yes
8605 else
8606   echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609         ac_header_compiler=no
8610 fi
8611
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614 echo "${ECHO_T}$ac_header_compiler" >&6; }
8615
8616 # Is the header present?
8617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625 #include <$ac_header>
8626 _ACEOF
8627 if { (ac_try="$ac_cpp conftest.$ac_ext"
8628 case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } >/dev/null; then
8640   if test -s conftest.err; then
8641     ac_cpp_err=$ac_c_preproc_warn_flag
8642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8643   else
8644     ac_cpp_err=
8645   fi
8646 else
8647   ac_cpp_err=yes
8648 fi
8649 if test -z "$ac_cpp_err"; then
8650   ac_header_preproc=yes
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655   ac_header_preproc=no
8656 fi
8657
8658 rm -f conftest.err conftest.$ac_ext
8659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8660 echo "${ECHO_T}$ac_header_preproc" >&6; }
8661
8662 # So?  What about this header?
8663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8664   yes:no: )
8665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8669     ac_header_preproc=yes
8670     ;;
8671   no:yes:* )
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8684     ( cat <<\_ASBOX
8685 ## ----------------------------------- ##
8686 ## Report this to llvmbugs@cs.uiuc.edu ##
8687 ## ----------------------------------- ##
8688 _ASBOX
8689      ) | sed "s/^/$as_me: WARNING:     /" >&2
8690     ;;
8691 esac
8692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   eval "$as_ac_Header=\$ac_header_preproc"
8698 fi
8699 ac_res=`eval echo '${'$as_ac_Header'}'`
8700                { echo "$as_me:$LINENO: result: $ac_res" >&5
8701 echo "${ECHO_T}$ac_res" >&6; }
8702
8703 fi
8704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8705   cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8707 _ACEOF
8708
8709 fi
8710
8711 done
8712
8713 # Check whether --enable-ltdl-install was given.
8714 if test "${enable_ltdl_install+set}" = set; then
8715   enableval=$enable_ltdl_install;
8716 fi
8717
8718
8719
8720
8721 if test x"${enable_ltdl_install-no}" != xno; then
8722   INSTALL_LTDL_TRUE=
8723   INSTALL_LTDL_FALSE='#'
8724 else
8725   INSTALL_LTDL_TRUE='#'
8726   INSTALL_LTDL_FALSE=
8727 fi
8728
8729
8730
8731 if test x"${enable_ltdl_convenience-no}" != xno; then
8732   CONVENIENCE_LTDL_TRUE=
8733   CONVENIENCE_LTDL_FALSE='#'
8734 else
8735   CONVENIENCE_LTDL_TRUE='#'
8736   CONVENIENCE_LTDL_FALSE=
8737 fi
8738
8739
8740 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8741 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8742 library_names_spec=
8743 libname_spec='lib$name'
8744 soname_spec=
8745 shrext_cmds=".so"
8746 postinstall_cmds=
8747 postuninstall_cmds=
8748 finish_cmds=
8749 finish_eval=
8750 shlibpath_var=
8751 shlibpath_overrides_runpath=unknown
8752 version_type=none
8753 dynamic_linker="$host_os ld.so"
8754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8755 if test "$GCC" = yes; then
8756   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8757   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8758     # if the path contains ";" then we assume it to be the separator
8759     # otherwise default to the standard path separator (i.e. ":") - it is
8760     # assumed that no part of a normal pathname contains ";" but that should
8761     # okay in the real world where ";" in dirpaths is itself problematic.
8762     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8763   else
8764     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8765   fi
8766 else
8767   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8768 fi
8769 need_lib_prefix=unknown
8770 hardcode_into_libs=no
8771
8772 # when you set need_version to no, make sure it does not cause -set_version
8773 # flags to be left without arguments
8774 need_version=unknown
8775
8776 case $host_os in
8777 aix3*)
8778   version_type=linux
8779   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8780   shlibpath_var=LIBPATH
8781
8782   # AIX 3 has no versioning support, so we append a major version to the name.
8783   soname_spec='${libname}${release}${shared_ext}$major'
8784   ;;
8785
8786 aix4* | aix5*)
8787   version_type=linux
8788   need_lib_prefix=no
8789   need_version=no
8790   hardcode_into_libs=yes
8791   if test "$host_cpu" = ia64; then
8792     # AIX 5 supports IA64
8793     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8794     shlibpath_var=LD_LIBRARY_PATH
8795   else
8796     # With GCC up to 2.95.x, collect2 would create an import file
8797     # for dependence libraries.  The import file would start with
8798     # the line `#! .'.  This would cause the generated library to
8799     # depend on `.', always an invalid library.  This was fixed in
8800     # development snapshots of GCC prior to 3.0.
8801     case $host_os in
8802       aix4 | aix4.[01] | aix4.[01].*)
8803       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8804            echo ' yes '
8805            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8806         :
8807       else
8808         can_build_shared=no
8809       fi
8810       ;;
8811     esac
8812     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8813     # soname into executable. Probably we can add versioning support to
8814     # collect2, so additional links can be useful in future.
8815     if test "$aix_use_runtimelinking" = yes; then
8816       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8817       # instead of lib<name>.a to let people know that these are not
8818       # typical AIX shared libraries.
8819       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820     else
8821       # We preserve .a as extension for shared libraries through AIX4.2
8822       # and later when we are not doing run time linking.
8823       library_names_spec='${libname}${release}.a $libname.a'
8824       soname_spec='${libname}${release}${shared_ext}$major'
8825     fi
8826     shlibpath_var=LIBPATH
8827   fi
8828   ;;
8829
8830 amigaos*)
8831   library_names_spec='$libname.ixlibrary $libname.a'
8832   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8833   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'
8834   ;;
8835
8836 beos*)
8837   library_names_spec='${libname}${shared_ext}'
8838   dynamic_linker="$host_os ld.so"
8839   shlibpath_var=LIBRARY_PATH
8840   ;;
8841
8842 bsdi[45]*)
8843   version_type=linux
8844   need_version=no
8845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846   soname_spec='${libname}${release}${shared_ext}$major'
8847   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8848   shlibpath_var=LD_LIBRARY_PATH
8849   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8850   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8851   # the default ld.so.conf also contains /usr/contrib/lib and
8852   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8853   # libtool to hard-code these into programs
8854   ;;
8855
8856 cygwin* | mingw* | pw32*)
8857   version_type=windows
8858   shrext_cmds=".dll"
8859   need_version=no
8860   need_lib_prefix=no
8861
8862   case $GCC,$host_os in
8863   yes,cygwin* | yes,mingw* | yes,pw32*)
8864     library_names_spec='$libname.dll.a'
8865     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8866     postinstall_cmds='base_file=`basename \${file}`~
8867       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8868       dldir=$destdir/`dirname \$dlpath`~
8869       test -d \$dldir || mkdir -p \$dldir~
8870       $install_prog $dir/$dlname \$dldir/$dlname~
8871       chmod a+x \$dldir/$dlname'
8872     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8873       dlpath=$dir/\$dldll~
8874        $rm \$dlpath'
8875     shlibpath_overrides_runpath=yes
8876
8877     case $host_os in
8878     cygwin*)
8879       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8880       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8882       ;;
8883     mingw*)
8884       # MinGW DLLs use traditional 'lib' prefix
8885       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8887       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8888         # It is most probably a Windows format PATH printed by
8889         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8890         # path with ; separators, and with drive letters. We can handle the
8891         # drive letters (cygwin fileutils understands them), so leave them,
8892         # especially as we might pass files found there to a mingw objdump,
8893         # which wouldn't understand a cygwinified path. Ahh.
8894         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8895       else
8896         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8897       fi
8898       ;;
8899     pw32*)
8900       # pw32 DLLs use 'pw' prefix rather than 'lib'
8901       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8902       ;;
8903     esac
8904     ;;
8905
8906   *)
8907     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8908     ;;
8909   esac
8910   dynamic_linker='Win32 ld.exe'
8911   # FIXME: first we should search . and the directory the executable is in
8912   shlibpath_var=PATH
8913   ;;
8914
8915 darwin* | rhapsody*)
8916   dynamic_linker="$host_os dyld"
8917   version_type=darwin
8918   need_lib_prefix=no
8919   need_version=no
8920   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8921   soname_spec='${libname}${release}${major}$shared_ext'
8922   shlibpath_overrides_runpath=yes
8923   shlibpath_var=DYLD_LIBRARY_PATH
8924   shrext_cmds='.dylib'
8925   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8926   if test "$GCC" = yes; then
8927     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"`
8928   else
8929     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8930   fi
8931   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8932   ;;
8933
8934 dgux*)
8935   version_type=linux
8936   need_lib_prefix=no
8937   need_version=no
8938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8939   soname_spec='${libname}${release}${shared_ext}$major'
8940   shlibpath_var=LD_LIBRARY_PATH
8941   ;;
8942
8943 freebsd1.*)
8944   dynamic_linker=no
8945   ;;
8946
8947 kfreebsd*-gnu)
8948   version_type=linux
8949   need_lib_prefix=no
8950   need_version=no
8951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8952   soname_spec='${libname}${release}${shared_ext}$major'
8953   shlibpath_var=LD_LIBRARY_PATH
8954   shlibpath_overrides_runpath=no
8955   hardcode_into_libs=yes
8956   dynamic_linker='GNU ld.so'
8957   ;;
8958
8959 freebsd* | dragonfly*)
8960   # DragonFly does not have aout.  When/if they implement a new
8961   # versioning mechanism, adjust this.
8962   if test -x /usr/bin/objformat; then
8963     objformat=`/usr/bin/objformat`
8964   else
8965     case $host_os in
8966     freebsd[123].*) objformat=aout ;;
8967     *) objformat=elf ;;
8968     esac
8969   fi
8970   version_type=freebsd-$objformat
8971   case $version_type in
8972     freebsd-elf*)
8973       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8974       need_version=no
8975       need_lib_prefix=no
8976       ;;
8977     freebsd-*)
8978       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8979       need_version=yes
8980       ;;
8981   esac
8982   shlibpath_var=LD_LIBRARY_PATH
8983   case $host_os in
8984   freebsd2.*)
8985     shlibpath_overrides_runpath=yes
8986     ;;
8987   freebsd3.[01]* | freebsdelf3.[01]*)
8988     shlibpath_overrides_runpath=yes
8989     hardcode_into_libs=yes
8990     ;;
8991   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8992   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8993     shlibpath_overrides_runpath=no
8994     hardcode_into_libs=yes
8995     ;;
8996   freebsd*) # from 4.6 on
8997     shlibpath_overrides_runpath=yes
8998     hardcode_into_libs=yes
8999     ;;
9000   esac
9001   ;;
9002
9003 gnu*)
9004   version_type=linux
9005   need_lib_prefix=no
9006   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
9010   hardcode_into_libs=yes
9011   ;;
9012
9013 hpux9* | hpux10* | hpux11*)
9014   # Give a soname corresponding to the major version so that dld.sl refuses to
9015   # link against other versions.
9016   version_type=sunos
9017   need_lib_prefix=no
9018   need_version=no
9019   case $host_cpu in
9020   ia64*)
9021     shrext_cmds='.so'
9022     hardcode_into_libs=yes
9023     dynamic_linker="$host_os dld.so"
9024     shlibpath_var=LD_LIBRARY_PATH
9025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027     soname_spec='${libname}${release}${shared_ext}$major'
9028     if test "X$HPUX_IA64_MODE" = X32; then
9029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9030     else
9031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9032     fi
9033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9034     ;;
9035    hppa*64*)
9036      shrext_cmds='.sl'
9037      hardcode_into_libs=yes
9038      dynamic_linker="$host_os dld.sl"
9039      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9040      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9041      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042      soname_spec='${libname}${release}${shared_ext}$major'
9043      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9044      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045      ;;
9046    *)
9047     shrext_cmds='.sl'
9048     dynamic_linker="$host_os dld.sl"
9049     shlibpath_var=SHLIB_PATH
9050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052     soname_spec='${libname}${release}${shared_ext}$major'
9053     ;;
9054   esac
9055   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9056   postinstall_cmds='chmod 555 $lib'
9057   ;;
9058
9059 interix3*)
9060   version_type=linux
9061   need_lib_prefix=no
9062   need_version=no
9063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9064   soname_spec='${libname}${release}${shared_ext}$major'
9065   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9066   shlibpath_var=LD_LIBRARY_PATH
9067   shlibpath_overrides_runpath=no
9068   hardcode_into_libs=yes
9069   ;;
9070
9071 irix5* | irix6* | nonstopux*)
9072   case $host_os in
9073     nonstopux*) version_type=nonstopux ;;
9074     *)
9075         if test "$lt_cv_prog_gnu_ld" = yes; then
9076                 version_type=linux
9077         else
9078                 version_type=irix
9079         fi ;;
9080   esac
9081   need_lib_prefix=no
9082   need_version=no
9083   soname_spec='${libname}${release}${shared_ext}$major'
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9085   case $host_os in
9086   irix5* | nonstopux*)
9087     libsuff= shlibsuff=
9088     ;;
9089   *)
9090     case $LD in # libtool.m4 will add one of these switches to LD
9091     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9092       libsuff= shlibsuff= libmagic=32-bit;;
9093     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9094       libsuff=32 shlibsuff=N32 libmagic=N32;;
9095     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9096       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9097     *) libsuff= shlibsuff= libmagic=never-match;;
9098     esac
9099     ;;
9100   esac
9101   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9102   shlibpath_overrides_runpath=no
9103   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9104   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9105   hardcode_into_libs=yes
9106   ;;
9107
9108 # No shared lib support for Linux oldld, aout, or coff.
9109 linux*oldld* | linux*aout* | linux*coff*)
9110   dynamic_linker=no
9111   ;;
9112
9113 # This must be Linux ELF.
9114 linux*)
9115   version_type=linux
9116   need_lib_prefix=no
9117   need_version=no
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   shlibpath_overrides_runpath=no
9123   # This implies no fast_install, which is unacceptable.
9124   # Some rework will be needed to allow for fast_install
9125   # before this can be enabled.
9126   hardcode_into_libs=yes
9127
9128   # Append ld.so.conf contents to the search path
9129   if test -f /etc/ld.so.conf; then
9130     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' ' '`
9131     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9132   fi
9133
9134   # We used to test for /lib/ld.so.1 and disable shared libraries on
9135   # powerpc, because MkLinux only supported shared libraries with the
9136   # GNU dynamic linker.  Since this was broken with cross compilers,
9137   # most powerpc-linux boxes support dynamic linking these days and
9138   # people can always --disable-shared, the test was removed, and we
9139   # assume the GNU/Linux dynamic linker is in use.
9140   dynamic_linker='GNU/Linux ld.so'
9141   ;;
9142
9143 knetbsd*-gnu)
9144   version_type=linux
9145   need_lib_prefix=no
9146   need_version=no
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   shlibpath_var=LD_LIBRARY_PATH
9150   shlibpath_overrides_runpath=no
9151   hardcode_into_libs=yes
9152   dynamic_linker='GNU ld.so'
9153   ;;
9154
9155 netbsd*)
9156   version_type=sunos
9157   need_lib_prefix=no
9158   need_version=no
9159   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9161     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9162     dynamic_linker='NetBSD (a.out) ld.so'
9163   else
9164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9165     soname_spec='${libname}${release}${shared_ext}$major'
9166     dynamic_linker='NetBSD ld.elf_so'
9167   fi
9168   shlibpath_var=LD_LIBRARY_PATH
9169   shlibpath_overrides_runpath=yes
9170   hardcode_into_libs=yes
9171   ;;
9172
9173 newsos6)
9174   version_type=linux
9175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176   shlibpath_var=LD_LIBRARY_PATH
9177   shlibpath_overrides_runpath=yes
9178   ;;
9179
9180 nto-qnx*)
9181   version_type=linux
9182   need_lib_prefix=no
9183   need_version=no
9184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185   soname_spec='${libname}${release}${shared_ext}$major'
9186   shlibpath_var=LD_LIBRARY_PATH
9187   shlibpath_overrides_runpath=yes
9188   ;;
9189
9190 openbsd*)
9191   version_type=sunos
9192   sys_lib_dlsearch_path_spec="/usr/lib"
9193   need_lib_prefix=no
9194   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9195   case $host_os in
9196     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9197     *)                         need_version=no  ;;
9198   esac
9199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9200   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9201   shlibpath_var=LD_LIBRARY_PATH
9202   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9203     case $host_os in
9204       openbsd2.[89] | openbsd2.[89].*)
9205         shlibpath_overrides_runpath=no
9206         ;;
9207       *)
9208         shlibpath_overrides_runpath=yes
9209         ;;
9210       esac
9211   else
9212     shlibpath_overrides_runpath=yes
9213   fi
9214   ;;
9215
9216 os2*)
9217   libname_spec='$name'
9218   shrext_cmds=".dll"
9219   need_lib_prefix=no
9220   library_names_spec='$libname${shared_ext} $libname.a'
9221   dynamic_linker='OS/2 ld.exe'
9222   shlibpath_var=LIBPATH
9223   ;;
9224
9225 osf3* | osf4* | osf5*)
9226   version_type=osf
9227   need_lib_prefix=no
9228   need_version=no
9229   soname_spec='${libname}${release}${shared_ext}$major'
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231   shlibpath_var=LD_LIBRARY_PATH
9232   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9233   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9234   ;;
9235
9236 solaris*)
9237   version_type=linux
9238   need_lib_prefix=no
9239   need_version=no
9240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241   soname_spec='${libname}${release}${shared_ext}$major'
9242   shlibpath_var=LD_LIBRARY_PATH
9243   shlibpath_overrides_runpath=yes
9244   hardcode_into_libs=yes
9245   # ldd complains unless libraries are executable
9246   postinstall_cmds='chmod +x $lib'
9247   ;;
9248
9249 sunos4*)
9250   version_type=sunos
9251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9253   shlibpath_var=LD_LIBRARY_PATH
9254   shlibpath_overrides_runpath=yes
9255   if test "$with_gnu_ld" = yes; then
9256     need_lib_prefix=no
9257   fi
9258   need_version=yes
9259   ;;
9260
9261 sysv4 | sysv4.3*)
9262   version_type=linux
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264   soname_spec='${libname}${release}${shared_ext}$major'
9265   shlibpath_var=LD_LIBRARY_PATH
9266   case $host_vendor in
9267     sni)
9268       shlibpath_overrides_runpath=no
9269       need_lib_prefix=no
9270       export_dynamic_flag_spec='${wl}-Blargedynsym'
9271       runpath_var=LD_RUN_PATH
9272       ;;
9273     siemens)
9274       need_lib_prefix=no
9275       ;;
9276     motorola)
9277       need_lib_prefix=no
9278       need_version=no
9279       shlibpath_overrides_runpath=no
9280       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9281       ;;
9282   esac
9283   ;;
9284
9285 sysv4*MP*)
9286   if test -d /usr/nec ;then
9287     version_type=linux
9288     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9289     soname_spec='$libname${shared_ext}.$major'
9290     shlibpath_var=LD_LIBRARY_PATH
9291   fi
9292   ;;
9293
9294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9295   version_type=freebsd-elf
9296   need_lib_prefix=no
9297   need_version=no
9298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9299   soname_spec='${libname}${release}${shared_ext}$major'
9300   shlibpath_var=LD_LIBRARY_PATH
9301   hardcode_into_libs=yes
9302   if test "$with_gnu_ld" = yes; then
9303     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9304     shlibpath_overrides_runpath=no
9305   else
9306     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9307     shlibpath_overrides_runpath=yes
9308     case $host_os in
9309       sco3.2v5*)
9310         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9311         ;;
9312     esac
9313   fi
9314   sys_lib_dlsearch_path_spec='/usr/lib'
9315   ;;
9316
9317 uts4*)
9318   version_type=linux
9319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320   soname_spec='${libname}${release}${shared_ext}$major'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   ;;
9323
9324 *)
9325   dynamic_linker=no
9326   ;;
9327 esac
9328 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9329 echo "${ECHO_T}$dynamic_linker" >&6; }
9330 test "$dynamic_linker" = no && can_build_shared=no
9331
9332 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9333 if test "$GCC" = yes; then
9334   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9335 fi
9336
9337
9338 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9339 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9340 if test "${libltdl_cv_shlibext+set}" = set; then
9341   echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343
9344 module=yes
9345 eval libltdl_cv_shlibext=$shrext_cmds
9346
9347 fi
9348 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9349 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9350 if test -n "$libltdl_cv_shlibext"; then
9351
9352 cat >>confdefs.h <<_ACEOF
9353 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9354 _ACEOF
9355
9356 fi
9357
9358
9359 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9360 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9361 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9362   echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364   libltdl_cv_shlibpath_var="$shlibpath_var"
9365 fi
9366 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9367 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9368 if test -n "$libltdl_cv_shlibpath_var"; then
9369
9370 cat >>confdefs.h <<_ACEOF
9371 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9372 _ACEOF
9373
9374 fi
9375
9376
9377 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9378 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9379 if test "${libltdl_cv_sys_search_path+set}" = set; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9383 fi
9384 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9385 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9386 if test -n "$libltdl_cv_sys_search_path"; then
9387   sys_search_path=
9388   for dir in $libltdl_cv_sys_search_path; do
9389     if test -z "$sys_search_path"; then
9390       sys_search_path="$dir"
9391     else
9392       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9393     fi
9394   done
9395
9396 cat >>confdefs.h <<_ACEOF
9397 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9398 _ACEOF
9399
9400 fi
9401
9402 { echo "$as_me:$LINENO: checking for objdir" >&5
9403 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9404 if test "${libltdl_cv_objdir+set}" = set; then
9405   echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407   libltdl_cv_objdir="$objdir"
9408   if test -n "$objdir"; then
9409     :
9410   else
9411     rm -f .libs 2>/dev/null
9412     mkdir .libs 2>/dev/null
9413     if test -d .libs; then
9414       libltdl_cv_objdir=.libs
9415     else
9416       # MS-DOS does not allow filenames that begin with a dot.
9417       libltdl_cv_objdir=_libs
9418     fi
9419   rmdir .libs 2>/dev/null
9420   fi
9421
9422 fi
9423 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9424 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9425
9426 cat >>confdefs.h <<_ACEOF
9427 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9428 _ACEOF
9429
9430
9431
9432
9433
9434
9435 # Check for command to grab the raw symbol name followed by C symbol from nm.
9436 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9439   echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441
9442 # These are sane defaults that work on at least a few old systems.
9443 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9444
9445 # Character class describing NM global symbol codes.
9446 symcode='[BCDEGRST]'
9447
9448 # Regexp to match symbols that can be accessed directly from C.
9449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9450
9451 # Transform an extracted symbol line into a proper C declaration
9452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9453
9454 # Transform an extracted symbol line into symbol name and symbol address
9455 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'"
9456
9457 # Define system-specific variables.
9458 case $host_os in
9459 aix*)
9460   symcode='[BCDT]'
9461   ;;
9462 cygwin* | mingw* | pw32*)
9463   symcode='[ABCDGISTW]'
9464   ;;
9465 hpux*) # Its linker distinguishes data from code symbols
9466   if test "$host_cpu" = ia64; then
9467     symcode='[ABCDEGRST]'
9468   fi
9469   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470   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'"
9471   ;;
9472 linux*)
9473   if test "$host_cpu" = ia64; then
9474     symcode='[ABCDGIRSTW]'
9475     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9476     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'"
9477   fi
9478   ;;
9479 irix* | nonstopux*)
9480   symcode='[BCDEGRST]'
9481   ;;
9482 osf*)
9483   symcode='[BCDEGQRST]'
9484   ;;
9485 solaris*)
9486   symcode='[BDRT]'
9487   ;;
9488 sco3.2v5*)
9489   symcode='[DT]'
9490   ;;
9491 sysv4.2uw2*)
9492   symcode='[DT]'
9493   ;;
9494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9495   symcode='[ABDT]'
9496   ;;
9497 sysv4)
9498   symcode='[DFNSTU]'
9499   ;;
9500 esac
9501
9502 # Handle CRLF in mingw tool chain
9503 opt_cr=
9504 case $build_os in
9505 mingw*)
9506   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9507   ;;
9508 esac
9509
9510 # If we're using GNU nm, then use its standard symbol codes.
9511 case `$NM -V 2>&1` in
9512 *GNU* | *'with BFD'*)
9513   symcode='[ABCDGIRSTW]' ;;
9514 esac
9515
9516 # Try without a prefix undercore, then with it.
9517 for ac_symprfx in "" "_"; do
9518
9519   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9520   symxfrm="\\1 $ac_symprfx\\2 \\2"
9521
9522   # Write the raw and C identifiers.
9523   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9524
9525   # Check to see that the pipe works correctly.
9526   pipe_works=no
9527
9528   rm -f conftest*
9529   cat > conftest.$ac_ext <<EOF
9530 #ifdef __cplusplus
9531 extern "C" {
9532 #endif
9533 char nm_test_var;
9534 void nm_test_func(){}
9535 #ifdef __cplusplus
9536 }
9537 #endif
9538 int main(){nm_test_var='a';nm_test_func();return(0);}
9539 EOF
9540
9541   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542   (eval $ac_compile) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; then
9546     # Now try to grab the symbols.
9547     nlist=conftest.nm
9548     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9549   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } && test -s "$nlist"; then
9553       # Try sorting and uniquifying the output.
9554       if sort "$nlist" | uniq > "$nlist"T; then
9555         mv -f "$nlist"T "$nlist"
9556       else
9557         rm -f "$nlist"T
9558       fi
9559
9560       # Make sure that we snagged all the symbols we need.
9561       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9562         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9563           cat <<EOF > conftest.$ac_ext
9564 #ifdef __cplusplus
9565 extern "C" {
9566 #endif
9567
9568 EOF
9569           # Now generate the symbol file.
9570           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9571
9572           cat <<EOF >> conftest.$ac_ext
9573 #if defined (__STDC__) && __STDC__
9574 # define lt_ptr_t void *
9575 #else
9576 # define lt_ptr_t char *
9577 # define const
9578 #endif
9579
9580 /* The mapping between symbol names and symbols. */
9581 const struct {
9582   const char *name;
9583   lt_ptr_t address;
9584 }
9585 lt_preloaded_symbols[] =
9586 {
9587 EOF
9588           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9589           cat <<\EOF >> conftest.$ac_ext
9590   {0, (lt_ptr_t) 0}
9591 };
9592
9593 #ifdef __cplusplus
9594 }
9595 #endif
9596 EOF
9597           # Now try linking the two files.
9598           mv conftest.$ac_objext conftstm.$ac_objext
9599           lt_save_LIBS="$LIBS"
9600           lt_save_CFLAGS="$CFLAGS"
9601           LIBS="conftstm.$ac_objext"
9602           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9603           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604   (eval $ac_link) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9608             pipe_works=yes
9609           fi
9610           LIBS="$lt_save_LIBS"
9611           CFLAGS="$lt_save_CFLAGS"
9612         else
9613           echo "cannot find nm_test_func in $nlist" >&5
9614         fi
9615       else
9616         echo "cannot find nm_test_var in $nlist" >&5
9617       fi
9618     else
9619       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9620     fi
9621   else
9622     echo "$progname: failed program was:" >&5
9623     cat conftest.$ac_ext >&5
9624   fi
9625   rm -f conftest* conftst*
9626
9627   # Do not use the global_symbol_pipe unless it works.
9628   if test "$pipe_works" = yes; then
9629     break
9630   else
9631     lt_cv_sys_global_symbol_pipe=
9632   fi
9633 done
9634
9635 fi
9636
9637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9638   lt_cv_sys_global_symbol_to_cdecl=
9639 fi
9640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9641   { echo "$as_me:$LINENO: result: failed" >&5
9642 echo "${ECHO_T}failed" >&6; }
9643 else
9644   { echo "$as_me:$LINENO: result: ok" >&5
9645 echo "${ECHO_T}ok" >&6; }
9646 fi
9647
9648
9649 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9650 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9651 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9655     libltdl_cv_preloaded_symbols=yes
9656   else
9657     libltdl_cv_preloaded_symbols=no
9658   fi
9659
9660 fi
9661 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9662 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9663 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9664
9665 cat >>confdefs.h <<\_ACEOF
9666 #define HAVE_PRELOADED_SYMBOLS 1
9667 _ACEOF
9668
9669 fi
9670
9671 LIBADD_DL=
9672
9673 ac_ext=c
9674 ac_cpp='$CPP $CPPFLAGS'
9675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9678
9679
9680 { echo "$as_me:$LINENO: checking for shl_load" >&5
9681 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9682 if test "${ac_cv_func_shl_load+set}" = set; then
9683   echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685   cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9693 #define shl_load innocuous_shl_load
9694
9695 /* System header to define __stub macros and hopefully few prototypes,
9696     which can conflict with char shl_load (); below.
9697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9698     <limits.h> exists even on freestanding compilers.  */
9699
9700 #ifdef __STDC__
9701 # include <limits.h>
9702 #else
9703 # include <assert.h>
9704 #endif
9705
9706 #undef shl_load
9707
9708 /* Override any GCC internal prototype to avoid an error.
9709    Use char because int might match the return type of a GCC
9710    builtin and then its argument prototype would still apply.  */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char shl_load ();
9715 /* The GNU C library defines this for functions which it implements
9716     to always fail with ENOSYS.  Some functions are actually named
9717     something starting with __ and the normal name is an alias.  */
9718 #if defined __stub_shl_load || defined __stub___shl_load
9719 choke me
9720 #endif
9721
9722 int
9723 main ()
9724 {
9725 return shl_load ();
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9732 case "(($ac_try" in
9733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734   *) ac_try_echo=$ac_try;;
9735 esac
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737   (eval "$ac_link") 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9745   { (case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750   (eval "$ac_try") 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; } &&
9754          { ac_try='test -s conftest$ac_exeext'
9755   { (case "(($ac_try" in
9756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757   *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760   (eval "$ac_try") 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; }; then
9764   ac_cv_func_shl_load=yes
9765 else
9766   echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769         ac_cv_func_shl_load=no
9770 fi
9771
9772 rm -f core conftest.err conftest.$ac_objext \
9773       conftest$ac_exeext conftest.$ac_ext
9774 fi
9775 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9776 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9777 if test $ac_cv_func_shl_load = yes; then
9778
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_SHL_LOAD 1
9781 _ACEOF
9782
9783 else
9784   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9785 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   ac_check_lib_save_LIBS=$LIBS
9790 LIBS="-ldld  $LIBS"
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h.  */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h.  */
9797
9798 /* Override any GCC internal prototype to avoid an error.
9799    Use char because int might match the return type of a GCC
9800    builtin and then its argument prototype would still apply.  */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 char shl_load ();
9805 int
9806 main ()
9807 {
9808 return shl_load ();
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9815 case "(($ac_try" in
9816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817   *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820   (eval "$ac_link") 2>conftest.er1
9821   ac_status=$?
9822   grep -v '^ *+' conftest.er1 >conftest.err
9823   rm -f conftest.er1
9824   cat conftest.err >&5
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } &&
9827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828   { (case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_try") 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; } &&
9837          { ac_try='test -s conftest$ac_exeext'
9838   { (case "(($ac_try" in
9839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840   *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843   (eval "$ac_try") 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; }; then
9847   ac_cv_lib_dld_shl_load=yes
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852         ac_cv_lib_dld_shl_load=no
9853 fi
9854
9855 rm -f core conftest.err conftest.$ac_objext \
9856       conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9858 fi
9859 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9860 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9861 if test $ac_cv_lib_dld_shl_load = yes; then
9862
9863 cat >>confdefs.h <<\_ACEOF
9864 #define HAVE_SHL_LOAD 1
9865 _ACEOF
9866
9867         LIBADD_DL="$LIBADD_DL -ldld"
9868 else
9869   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   ac_check_lib_save_LIBS=$LIBS
9875 LIBS="-ldl  $LIBS"
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883 /* Override any GCC internal prototype to avoid an error.
9884    Use char because int might match the return type of a GCC
9885    builtin and then its argument prototype would still apply.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 char dlopen ();
9890 int
9891 main ()
9892 {
9893 return dlopen ();
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9900 case "(($ac_try" in
9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902   *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905   (eval "$ac_link") 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913   { (case "(($ac_try" in
9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915   *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918   (eval "$ac_try") 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; } &&
9922          { ac_try='test -s conftest$ac_exeext'
9923   { (case "(($ac_try" in
9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925   *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928   (eval "$ac_try") 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; }; then
9932   ac_cv_lib_dl_dlopen=yes
9933 else
9934   echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937         ac_cv_lib_dl_dlopen=no
9938 fi
9939
9940 rm -f core conftest.err conftest.$ac_objext \
9941       conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9943 fi
9944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9946 if test $ac_cv_lib_dl_dlopen = yes; then
9947
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_LIBDL 1
9950 _ACEOF
9951
9952                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9953 else
9954   cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h.  */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h.  */
9960 #if HAVE_DLFCN_H
9961 #  include <dlfcn.h>
9962 #endif
9963
9964 int
9965 main ()
9966 {
9967 dlopen(0, 0);
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (ac_try="$ac_link"
9974 case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979   (eval "$ac_link") 2>conftest.er1
9980   ac_status=$?
9981   grep -v '^ *+' conftest.er1 >conftest.err
9982   rm -f conftest.er1
9983   cat conftest.err >&5
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); } &&
9986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9987   { (case "(($ac_try" in
9988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989   *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992   (eval "$ac_try") 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; } &&
9996          { ac_try='test -s conftest$ac_exeext'
9997   { (case "(($ac_try" in
9998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999   *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002   (eval "$ac_try") 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); }; }; then
10006
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_LIBDL 1
10009 _ACEOF
10010  libltdl_cv_func_dlopen="yes"
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10016 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-lsvld  $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 /* Override any GCC internal prototype to avoid an error.
10030    Use char because int might match the return type of a GCC
10031    builtin and then its argument prototype would still apply.  */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char dlopen ();
10036 int
10037 main ()
10038 {
10039 return dlopen ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_link") 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059   { (case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_try") 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; } &&
10068          { ac_try='test -s conftest$ac_exeext'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_try") 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   ac_cv_lib_svld_dlopen=yes
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083         ac_cv_lib_svld_dlopen=no
10084 fi
10085
10086 rm -f core conftest.err conftest.$ac_objext \
10087       conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10089 fi
10090 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10091 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10092 if test $ac_cv_lib_svld_dlopen = yes; then
10093
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_LIBDL 1
10096 _ACEOF
10097
10098                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10099 else
10100   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10101 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10102 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10103   echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105   ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-ldld  $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113
10114 /* Override any GCC internal prototype to avoid an error.
10115    Use char because int might match the return type of a GCC
10116    builtin and then its argument prototype would still apply.  */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char dld_link ();
10121 int
10122 main ()
10123 {
10124 return dld_link ();
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_link") 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144   { (case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_try") 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; } &&
10153          { ac_try='test -s conftest$ac_exeext'
10154   { (case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159   (eval "$ac_try") 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   ac_cv_lib_dld_dld_link=yes
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168         ac_cv_lib_dld_dld_link=no
10169 fi
10170
10171 rm -f core conftest.err conftest.$ac_objext \
10172       conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10174 fi
10175 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10176 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10177 if test $ac_cv_lib_dld_dld_link = yes; then
10178
10179 cat >>confdefs.h <<\_ACEOF
10180 #define HAVE_DLD 1
10181 _ACEOF
10182
10183                 LIBADD_DL="$LIBADD_DL -ldld"
10184 else
10185   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10186 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10187 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10188   echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190   cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10196 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10198 #define _dyld_func_lookup innocuous__dyld_func_lookup
10199
10200 /* System header to define __stub macros and hopefully few prototypes,
10201     which can conflict with char _dyld_func_lookup (); below.
10202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10203     <limits.h> exists even on freestanding compilers.  */
10204
10205 #ifdef __STDC__
10206 # include <limits.h>
10207 #else
10208 # include <assert.h>
10209 #endif
10210
10211 #undef _dyld_func_lookup
10212
10213 /* Override any GCC internal prototype to avoid an error.
10214    Use char because int might match the return type of a GCC
10215    builtin and then its argument prototype would still apply.  */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char _dyld_func_lookup ();
10220 /* The GNU C library defines this for functions which it implements
10221     to always fail with ENOSYS.  Some functions are actually named
10222     something starting with __ and the normal name is an alias.  */
10223 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10224 choke me
10225 #endif
10226
10227 int
10228 main ()
10229 {
10230 return _dyld_func_lookup ();
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (ac_try="$ac_link"
10237 case "(($ac_try" in
10238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239   *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242   (eval "$ac_link") 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250   { (case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255   (eval "$ac_try") 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; } &&
10259          { ac_try='test -s conftest$ac_exeext'
10260   { (case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_try") 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   ac_cv_func__dyld_func_lookup=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274         ac_cv_func__dyld_func_lookup=no
10275 fi
10276
10277 rm -f core conftest.err conftest.$ac_objext \
10278       conftest$ac_exeext conftest.$ac_ext
10279 fi
10280 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10281 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10282 if test $ac_cv_func__dyld_func_lookup = yes; then
10283
10284 cat >>confdefs.h <<\_ACEOF
10285 #define HAVE_DYLD 1
10286 _ACEOF
10287
10288 fi
10289
10290
10291 fi
10292
10293
10294 fi
10295
10296
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext \
10300       conftest$ac_exeext conftest.$ac_ext
10301
10302 fi
10303
10304
10305 fi
10306
10307
10308 fi
10309
10310
10311 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10312 then
10313   lt_save_LIBS="$LIBS"
10314   LIBS="$LIBS $LIBADD_DL"
10315
10316 for ac_func in dlerror
10317 do
10318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10332 #define $ac_func innocuous_$ac_func
10333
10334 /* System header to define __stub macros and hopefully few prototypes,
10335     which can conflict with char $ac_func (); below.
10336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10337     <limits.h> exists even on freestanding compilers.  */
10338
10339 #ifdef __STDC__
10340 # include <limits.h>
10341 #else
10342 # include <assert.h>
10343 #endif
10344
10345 #undef $ac_func
10346
10347 /* Override any GCC internal prototype to avoid an error.
10348    Use char because int might match the return type of a GCC
10349    builtin and then its argument prototype would still apply.  */
10350 #ifdef __cplusplus
10351 extern "C"
10352 #endif
10353 char $ac_func ();
10354 /* The GNU C library defines this for functions which it implements
10355     to always fail with ENOSYS.  Some functions are actually named
10356     something starting with __ and the normal name is an alias.  */
10357 #if defined __stub_$ac_func || defined __stub___$ac_func
10358 choke me
10359 #endif
10360
10361 int
10362 main ()
10363 {
10364 return $ac_func ();
10365   ;
10366   return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373   *) ac_try_echo=$ac_try;;
10374 esac
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376   (eval "$ac_link") 2>conftest.er1
10377   ac_status=$?
10378   grep -v '^ *+' conftest.er1 >conftest.err
10379   rm -f conftest.er1
10380   cat conftest.err >&5
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } &&
10383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10384   { (case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_try") 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; } &&
10393          { ac_try='test -s conftest$ac_exeext'
10394   { (case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_try") 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; }; then
10403   eval "$as_ac_var=yes"
10404 else
10405   echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408         eval "$as_ac_var=no"
10409 fi
10410
10411 rm -f core conftest.err conftest.$ac_objext \
10412       conftest$ac_exeext conftest.$ac_ext
10413 fi
10414 ac_res=`eval echo '${'$as_ac_var'}'`
10415                { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10417 if test `eval echo '${'$as_ac_var'}'` = yes; then
10418   cat >>confdefs.h <<_ACEOF
10419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10420 _ACEOF
10421
10422 fi
10423 done
10424
10425   LIBS="$lt_save_LIBS"
10426 fi
10427 ac_ext=c
10428 ac_cpp='$CPP $CPPFLAGS'
10429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10432
10433
10434
10435 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10436 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10437 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440   ac_cv_sys_symbol_underscore=no
10441   cat > conftest.$ac_ext <<EOF
10442 void nm_test_func(){}
10443 int main(){nm_test_func;return 0;}
10444 EOF
10445   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446   (eval $ac_compile) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; then
10450     # Now try to grab the symbols.
10451     ac_nlist=conftest.nm
10452     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10453   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && test -s "$ac_nlist"; then
10457       # See whether the symbols have a leading underscore.
10458       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10459         ac_cv_sys_symbol_underscore=yes
10460       else
10461         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10462           :
10463         else
10464           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10465         fi
10466       fi
10467     else
10468       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10469     fi
10470   else
10471     echo "configure: failed program was:" >&5
10472     cat conftest.c >&5
10473   fi
10474   rm -rf conftest*
10475
10476 fi
10477 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10478 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10479
10480
10481 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10482   if test x"$libltdl_cv_func_dlopen" = xyes ||
10483      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10484         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10485 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10486 if test "${libltdl_cv_need_uscore+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   libltdl_cv_need_uscore=unknown
10490           save_LIBS="$LIBS"
10491           LIBS="$LIBS $LIBADD_DL"
10492           if test "$cross_compiling" = yes; then :
10493   libltdl_cv_need_uscore=cross
10494 else
10495   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10496   lt_status=$lt_dlunknown
10497   cat > conftest.$ac_ext <<EOF
10498 #line 10493 "configure"
10499 #include "confdefs.h"
10500
10501 #if HAVE_DLFCN_H
10502 #include <dlfcn.h>
10503 #endif
10504
10505 #include <stdio.h>
10506
10507 #ifdef RTLD_GLOBAL
10508 #  define LT_DLGLOBAL           RTLD_GLOBAL
10509 #else
10510 #  ifdef DL_GLOBAL
10511 #    define LT_DLGLOBAL         DL_GLOBAL
10512 #  else
10513 #    define LT_DLGLOBAL         0
10514 #  endif
10515 #endif
10516
10517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10518    find out it does not work in some platform. */
10519 #ifndef LT_DLLAZY_OR_NOW
10520 #  ifdef RTLD_LAZY
10521 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10522 #  else
10523 #    ifdef DL_LAZY
10524 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10525 #    else
10526 #      ifdef RTLD_NOW
10527 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10528 #      else
10529 #        ifdef DL_NOW
10530 #          define LT_DLLAZY_OR_NOW      DL_NOW
10531 #        else
10532 #          define LT_DLLAZY_OR_NOW      0
10533 #        endif
10534 #      endif
10535 #    endif
10536 #  endif
10537 #endif
10538
10539 #ifdef __cplusplus
10540 extern "C" void exit (int);
10541 #endif
10542
10543 void fnord() { int i=42;}
10544 int main ()
10545 {
10546   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10547   int status = $lt_dlunknown;
10548
10549   if (self)
10550     {
10551       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10552       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10553       /* dlclose (self); */
10554     }
10555   else
10556     puts (dlerror ());
10557
10558     exit (status);
10559 }
10560 EOF
10561   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562   (eval $ac_link) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10566     (./conftest; exit; ) >&5 2>/dev/null
10567     lt_status=$?
10568     case x$lt_status in
10569       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10570       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10571       x$lt_dlunknown|x*)  ;;
10572     esac
10573   else :
10574     # compilation failed
10575
10576   fi
10577 fi
10578 rm -fr conftest*
10579
10580           LIBS="$save_LIBS"
10581
10582 fi
10583 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10584 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10585   fi
10586 fi
10587
10588 if test x"$libltdl_cv_need_uscore" = xyes; then
10589
10590 cat >>confdefs.h <<\_ACEOF
10591 #define NEED_USCORE 1
10592 _ACEOF
10593
10594 fi
10595
10596
10597 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10598 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10599 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602   # PORTME does your system automatically load deplibs for dlopen?
10603   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10604   # For now, we just catch OSes we know something about -- in the
10605   # future, we'll try test this programmatically.
10606   libltdl_cv_sys_dlopen_deplibs=unknown
10607   case "$host_os" in
10608   aix3*|aix4.1.*|aix4.2.*)
10609     # Unknown whether this is true for these versions of AIX, but
10610     # we want this `case' here to explicitly catch those versions.
10611     libltdl_cv_sys_dlopen_deplibs=unknown
10612     ;;
10613   aix[45]*)
10614     libltdl_cv_sys_dlopen_deplibs=yes
10615     ;;
10616   darwin*)
10617     # Assuming the user has installed a libdl from somewhere, this is true
10618     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10619     libltdl_cv_sys_dlopen_deplibs=yes
10620     ;;
10621   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10622     # GNU and its variants, using gnu ld.so (Glibc)
10623     libltdl_cv_sys_dlopen_deplibs=yes
10624     ;;
10625   hpux10*|hpux11*)
10626     libltdl_cv_sys_dlopen_deplibs=yes
10627     ;;
10628   interix*)
10629     libltdl_cv_sys_dlopen_deplibs=yes
10630     ;;
10631   irix[12345]*|irix6.[01]*)
10632     # Catch all versions of IRIX before 6.2, and indicate that we don't
10633     # know how it worked for any of those versions.
10634     libltdl_cv_sys_dlopen_deplibs=unknown
10635     ;;
10636   irix*)
10637     # The case above catches anything before 6.2, and it's known that
10638     # at 6.2 and later dlopen does load deplibs.
10639     libltdl_cv_sys_dlopen_deplibs=yes
10640     ;;
10641   netbsd*)
10642     libltdl_cv_sys_dlopen_deplibs=yes
10643     ;;
10644   openbsd*)
10645     libltdl_cv_sys_dlopen_deplibs=yes
10646     ;;
10647   osf[1234]*)
10648     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10649     # it did *not* use an RPATH in a shared library to find objects the
10650     # library depends on, so we explicitly say `no'.
10651     libltdl_cv_sys_dlopen_deplibs=no
10652     ;;
10653   osf5.0|osf5.0a|osf5.1)
10654     # dlopen *does* load deplibs and with the right loader patch applied
10655     # it even uses RPATH in a shared library to search for shared objects
10656     # that the library depends on, but there's no easy way to know if that
10657     # patch is installed.  Since this is the case, all we can really
10658     # say is unknown -- it depends on the patch being installed.  If
10659     # it is, this changes to `yes'.  Without it, it would be `no'.
10660     libltdl_cv_sys_dlopen_deplibs=unknown
10661     ;;
10662   osf*)
10663     # the two cases above should catch all versions of osf <= 5.1.  Read
10664     # the comments above for what we know about them.
10665     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10666     # is used to find them so we can finally say `yes'.
10667     libltdl_cv_sys_dlopen_deplibs=yes
10668     ;;
10669   solaris*)
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   esac
10676
10677 fi
10678 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10679 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10680 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10681
10682 cat >>confdefs.h <<\_ACEOF
10683 #define LTDL_DLOPEN_DEPLIBS 1
10684 _ACEOF
10685
10686 fi
10687
10688
10689 for ac_header in argz.h
10690 do
10691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696   echo $ECHO_N "(cached) $ECHO_C" >&6
10697 fi
10698 ac_res=`eval echo '${'$as_ac_Header'}'`
10699                { echo "$as_me:$LINENO: result: $ac_res" >&5
10700 echo "${ECHO_T}$ac_res" >&6; }
10701 else
10702   # Is the header compilable?
10703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h.  */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h.  */
10711 $ac_includes_default
10712 #include <$ac_header>
10713 _ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (ac_try="$ac_compile"
10716 case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_compile") 2>conftest.er1
10722   ac_status=$?
10723   grep -v '^ *+' conftest.er1 >conftest.err
10724   rm -f conftest.er1
10725   cat conftest.err >&5
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); } &&
10728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10729   { (case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734   (eval "$ac_try") 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; } &&
10738          { ac_try='test -s conftest.$ac_objext'
10739   { (case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_try") 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }; then
10748   ac_header_compiler=yes
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753         ac_header_compiler=no
10754 fi
10755
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10758 echo "${ECHO_T}$ac_header_compiler" >&6; }
10759
10760 # Is the header present?
10761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769 #include <$ac_header>
10770 _ACEOF
10771 if { (ac_try="$ac_cpp conftest.$ac_ext"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } >/dev/null; then
10784   if test -s conftest.err; then
10785     ac_cpp_err=$ac_c_preproc_warn_flag
10786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10787   else
10788     ac_cpp_err=
10789   fi
10790 else
10791   ac_cpp_err=yes
10792 fi
10793 if test -z "$ac_cpp_err"; then
10794   ac_header_preproc=yes
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799   ac_header_preproc=no
10800 fi
10801
10802 rm -f conftest.err conftest.$ac_ext
10803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10804 echo "${ECHO_T}$ac_header_preproc" >&6; }
10805
10806 # So?  What about this header?
10807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10808   yes:no: )
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10813     ac_header_preproc=yes
10814     ;;
10815   no:yes:* )
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10828     ( cat <<\_ASBOX
10829 ## ----------------------------------- ##
10830 ## Report this to llvmbugs@cs.uiuc.edu ##
10831 ## ----------------------------------- ##
10832 _ASBOX
10833      ) | sed "s/^/$as_me: WARNING:     /" >&2
10834     ;;
10835 esac
10836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   eval "$as_ac_Header=\$ac_header_preproc"
10842 fi
10843 ac_res=`eval echo '${'$as_ac_Header'}'`
10844                { echo "$as_me:$LINENO: result: $ac_res" >&5
10845 echo "${ECHO_T}$ac_res" >&6; }
10846
10847 fi
10848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10849   cat >>confdefs.h <<_ACEOF
10850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10851 _ACEOF
10852
10853 fi
10854
10855 done
10856
10857
10858 { echo "$as_me:$LINENO: checking for error_t" >&5
10859 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10860 if test "${ac_cv_type_error_t+set}" = set; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863   cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h.  */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h.  */
10869 #if HAVE_ARGZ_H
10870 #  include <argz.h>
10871 #endif
10872
10873 typedef error_t ac__type_new_;
10874 int
10875 main ()
10876 {
10877 if ((ac__type_new_ *) 0)
10878   return 0;
10879 if (sizeof (ac__type_new_))
10880   return 0;
10881   ;
10882   return 0;
10883 }
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (ac_try="$ac_compile"
10887 case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_compile") 2>conftest.er1
10893   ac_status=$?
10894   grep -v '^ *+' conftest.er1 >conftest.err
10895   rm -f conftest.er1
10896   cat conftest.err >&5
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } &&
10899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900   { (case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_try") 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; } &&
10909          { ac_try='test -s conftest.$ac_objext'
10910   { (case "(($ac_try" in
10911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912   *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915   (eval "$ac_try") 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_type_error_t=yes
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924         ac_cv_type_error_t=no
10925 fi
10926
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 fi
10929 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10930 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10931 if test $ac_cv_type_error_t = yes; then
10932
10933 cat >>confdefs.h <<_ACEOF
10934 #define HAVE_ERROR_T 1
10935 _ACEOF
10936
10937
10938 else
10939
10940 cat >>confdefs.h <<\_ACEOF
10941 #define error_t int
10942 _ACEOF
10943
10944 fi
10945
10946
10947
10948
10949
10950
10951
10952 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10953 do
10954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958   echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960   cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h.  */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h.  */
10966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10968 #define $ac_func innocuous_$ac_func
10969
10970 /* System header to define __stub macros and hopefully few prototypes,
10971     which can conflict with char $ac_func (); below.
10972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973     <limits.h> exists even on freestanding compilers.  */
10974
10975 #ifdef __STDC__
10976 # include <limits.h>
10977 #else
10978 # include <assert.h>
10979 #endif
10980
10981 #undef $ac_func
10982
10983 /* Override any GCC internal prototype to avoid an error.
10984    Use char because int might match the return type of a GCC
10985    builtin and then its argument prototype would still apply.  */
10986 #ifdef __cplusplus
10987 extern "C"
10988 #endif
10989 char $ac_func ();
10990 /* The GNU C library defines this for functions which it implements
10991     to always fail with ENOSYS.  Some functions are actually named
10992     something starting with __ and the normal name is an alias.  */
10993 #if defined __stub_$ac_func || defined __stub___$ac_func
10994 choke me
10995 #endif
10996
10997 int
10998 main ()
10999 {
11000 return $ac_func ();
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_link") 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } &&
11019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020   { (case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_try") 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; } &&
11029          { ac_try='test -s conftest$ac_exeext'
11030   { (case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_try") 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; }; then
11039   eval "$as_ac_var=yes"
11040 else
11041   echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044         eval "$as_ac_var=no"
11045 fi
11046
11047 rm -f core conftest.err conftest.$ac_objext \
11048       conftest$ac_exeext conftest.$ac_ext
11049 fi
11050 ac_res=`eval echo '${'$as_ac_var'}'`
11051                { echo "$as_me:$LINENO: result: $ac_res" >&5
11052 echo "${ECHO_T}$ac_res" >&6; }
11053 if test `eval echo '${'$as_ac_var'}'` = yes; then
11054   cat >>confdefs.h <<_ACEOF
11055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11056 _ACEOF
11057
11058 fi
11059 done
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11089                   stdio.h unistd.h
11090 do
11091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 fi
11098 ac_res=`eval echo '${'$as_ac_Header'}'`
11099                { echo "$as_me:$LINENO: result: $ac_res" >&5
11100 echo "${ECHO_T}$ac_res" >&6; }
11101 else
11102   # Is the header compilable?
11103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11105 cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111 $ac_includes_default
11112 #include <$ac_header>
11113 _ACEOF
11114 rm -f conftest.$ac_objext
11115 if { (ac_try="$ac_compile"
11116 case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121   (eval "$ac_compile") 2>conftest.er1
11122   ac_status=$?
11123   grep -v '^ *+' conftest.er1 >conftest.err
11124   rm -f conftest.er1
11125   cat conftest.err >&5
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } &&
11128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11129   { (case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_try") 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; } &&
11138          { ac_try='test -s conftest.$ac_objext'
11139   { (case "(($ac_try" in
11140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141   *) ac_try_echo=$ac_try;;
11142 esac
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144   (eval "$ac_try") 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); }; }; then
11148   ac_header_compiler=yes
11149 else
11150   echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153         ac_header_compiler=no
11154 fi
11155
11156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11158 echo "${ECHO_T}$ac_header_compiler" >&6; }
11159
11160 # Is the header present?
11161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 #include <$ac_header>
11170 _ACEOF
11171 if { (ac_try="$ac_cpp conftest.$ac_ext"
11172 case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11178   ac_status=$?
11179   grep -v '^ *+' conftest.er1 >conftest.err
11180   rm -f conftest.er1
11181   cat conftest.err >&5
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); } >/dev/null; then
11184   if test -s conftest.err; then
11185     ac_cpp_err=$ac_c_preproc_warn_flag
11186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11187   else
11188     ac_cpp_err=
11189   fi
11190 else
11191   ac_cpp_err=yes
11192 fi
11193 if test -z "$ac_cpp_err"; then
11194   ac_header_preproc=yes
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199   ac_header_preproc=no
11200 fi
11201
11202 rm -f conftest.err conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11204 echo "${ECHO_T}$ac_header_preproc" >&6; }
11205
11206 # So?  What about this header?
11207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11208   yes:no: )
11209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11213     ac_header_preproc=yes
11214     ;;
11215   no:yes:* )
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11228     ( cat <<\_ASBOX
11229 ## ----------------------------------- ##
11230 ## Report this to llvmbugs@cs.uiuc.edu ##
11231 ## ----------------------------------- ##
11232 _ASBOX
11233      ) | sed "s/^/$as_me: WARNING:     /" >&2
11234     ;;
11235 esac
11236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239   echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241   eval "$as_ac_Header=\$ac_header_preproc"
11242 fi
11243 ac_res=`eval echo '${'$as_ac_Header'}'`
11244                { echo "$as_me:$LINENO: result: $ac_res" >&5
11245 echo "${ECHO_T}$ac_res" >&6; }
11246
11247 fi
11248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11249   cat >>confdefs.h <<_ACEOF
11250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11251 _ACEOF
11252
11253 fi
11254
11255 done
11256
11257
11258
11259
11260
11261 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11262 do
11263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 fi
11270 ac_res=`eval echo '${'$as_ac_Header'}'`
11271                { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273 else
11274   # Is the header compilable?
11275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h.  */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h.  */
11283 $ac_includes_default
11284 #include <$ac_header>
11285 _ACEOF
11286 rm -f conftest.$ac_objext
11287 if { (ac_try="$ac_compile"
11288 case "(($ac_try" in
11289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290   *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293   (eval "$ac_compile") 2>conftest.er1
11294   ac_status=$?
11295   grep -v '^ *+' conftest.er1 >conftest.err
11296   rm -f conftest.er1
11297   cat conftest.err >&5
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); } &&
11300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11301   { (case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_try") 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; } &&
11310          { ac_try='test -s conftest.$ac_objext'
11311   { (case "(($ac_try" in
11312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313   *) ac_try_echo=$ac_try;;
11314 esac
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316   (eval "$ac_try") 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; }; then
11320   ac_header_compiler=yes
11321 else
11322   echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325         ac_header_compiler=no
11326 fi
11327
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330 echo "${ECHO_T}$ac_header_compiler" >&6; }
11331
11332 # Is the header present?
11333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h.  */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h.  */
11341 #include <$ac_header>
11342 _ACEOF
11343 if { (ac_try="$ac_cpp conftest.$ac_ext"
11344 case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11350   ac_status=$?
11351   grep -v '^ *+' conftest.er1 >conftest.err
11352   rm -f conftest.er1
11353   cat conftest.err >&5
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } >/dev/null; then
11356   if test -s conftest.err; then
11357     ac_cpp_err=$ac_c_preproc_warn_flag
11358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11359   else
11360     ac_cpp_err=
11361   fi
11362 else
11363   ac_cpp_err=yes
11364 fi
11365 if test -z "$ac_cpp_err"; then
11366   ac_header_preproc=yes
11367 else
11368   echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371   ac_header_preproc=no
11372 fi
11373
11374 rm -f conftest.err conftest.$ac_ext
11375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11376 echo "${ECHO_T}$ac_header_preproc" >&6; }
11377
11378 # So?  What about this header?
11379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11380   yes:no: )
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11385     ac_header_preproc=yes
11386     ;;
11387   no:yes:* )
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11391 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11395 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11400     ( cat <<\_ASBOX
11401 ## ----------------------------------- ##
11402 ## Report this to llvmbugs@cs.uiuc.edu ##
11403 ## ----------------------------------- ##
11404 _ASBOX
11405      ) | sed "s/^/$as_me: WARNING:     /" >&2
11406     ;;
11407 esac
11408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   eval "$as_ac_Header=\$ac_header_preproc"
11414 fi
11415 ac_res=`eval echo '${'$as_ac_Header'}'`
11416                { echo "$as_me:$LINENO: result: $ac_res" >&5
11417 echo "${ECHO_T}$ac_res" >&6; }
11418
11419 fi
11420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11421   cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11423 _ACEOF
11424
11425 fi
11426
11427 done
11428
11429
11430
11431 for ac_header in string.h strings.h
11432 do
11433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 fi
11440 ac_res=`eval echo '${'$as_ac_Header'}'`
11441                { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11443 else
11444   # Is the header compilable?
11445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 $ac_includes_default
11454 #include <$ac_header>
11455 _ACEOF
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_compile") 2>conftest.er1
11464   ac_status=$?
11465   grep -v '^ *+' conftest.er1 >conftest.err
11466   rm -f conftest.er1
11467   cat conftest.err >&5
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); } &&
11470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471   { (case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476   (eval "$ac_try") 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; } &&
11480          { ac_try='test -s conftest.$ac_objext'
11481   { (case "(($ac_try" in
11482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483   *) ac_try_echo=$ac_try;;
11484 esac
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486   (eval "$ac_try") 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   ac_header_compiler=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495         ac_header_compiler=no
11496 fi
11497
11498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11500 echo "${ECHO_T}$ac_header_compiler" >&6; }
11501
11502 # Is the header present?
11503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511 #include <$ac_header>
11512 _ACEOF
11513 if { (ac_try="$ac_cpp conftest.$ac_ext"
11514 case "(($ac_try" in
11515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516   *) ac_try_echo=$ac_try;;
11517 esac
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11520   ac_status=$?
11521   grep -v '^ *+' conftest.er1 >conftest.err
11522   rm -f conftest.er1
11523   cat conftest.err >&5
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } >/dev/null; then
11526   if test -s conftest.err; then
11527     ac_cpp_err=$ac_c_preproc_warn_flag
11528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11529   else
11530     ac_cpp_err=
11531   fi
11532 else
11533   ac_cpp_err=yes
11534 fi
11535 if test -z "$ac_cpp_err"; then
11536   ac_header_preproc=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541   ac_header_preproc=no
11542 fi
11543
11544 rm -f conftest.err conftest.$ac_ext
11545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11546 echo "${ECHO_T}$ac_header_preproc" >&6; }
11547
11548 # So?  What about this header?
11549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11550   yes:no: )
11551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11555     ac_header_preproc=yes
11556     ;;
11557   no:yes:* )
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11570     ( cat <<\_ASBOX
11571 ## ----------------------------------- ##
11572 ## Report this to llvmbugs@cs.uiuc.edu ##
11573 ## ----------------------------------- ##
11574 _ASBOX
11575      ) | sed "s/^/$as_me: WARNING:     /" >&2
11576     ;;
11577 esac
11578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   eval "$as_ac_Header=\$ac_header_preproc"
11584 fi
11585 ac_res=`eval echo '${'$as_ac_Header'}'`
11586                { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11588
11589 fi
11590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11591   cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11593 _ACEOF
11594  break
11595 fi
11596
11597 done
11598
11599
11600
11601
11602 for ac_func in strchr index
11603 do
11604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11618 #define $ac_func innocuous_$ac_func
11619
11620 /* System header to define __stub macros and hopefully few prototypes,
11621     which can conflict with char $ac_func (); below.
11622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623     <limits.h> exists even on freestanding compilers.  */
11624
11625 #ifdef __STDC__
11626 # include <limits.h>
11627 #else
11628 # include <assert.h>
11629 #endif
11630
11631 #undef $ac_func
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634    Use char because int might match the return type of a GCC
11635    builtin and then its argument prototype would still apply.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char $ac_func ();
11640 /* The GNU C library defines this for functions which it implements
11641     to always fail with ENOSYS.  Some functions are actually named
11642     something starting with __ and the normal name is an alias.  */
11643 #if defined __stub_$ac_func || defined __stub___$ac_func
11644 choke me
11645 #endif
11646
11647 int
11648 main ()
11649 {
11650 return $ac_func ();
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662   (eval "$ac_link") 2>conftest.er1
11663   ac_status=$?
11664   grep -v '^ *+' conftest.er1 >conftest.err
11665   rm -f conftest.er1
11666   cat conftest.err >&5
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } &&
11669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670   { (case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; } &&
11679          { ac_try='test -s conftest$ac_exeext'
11680   { (case "(($ac_try" in
11681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682   *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685   (eval "$ac_try") 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   eval "$as_ac_var=yes"
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694         eval "$as_ac_var=no"
11695 fi
11696
11697 rm -f core conftest.err conftest.$ac_objext \
11698       conftest$ac_exeext conftest.$ac_ext
11699 fi
11700 ac_res=`eval echo '${'$as_ac_var'}'`
11701                { echo "$as_me:$LINENO: result: $ac_res" >&5
11702 echo "${ECHO_T}$ac_res" >&6; }
11703 if test `eval echo '${'$as_ac_var'}'` = yes; then
11704   cat >>confdefs.h <<_ACEOF
11705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11706 _ACEOF
11707  break
11708 fi
11709 done
11710
11711
11712
11713 for ac_func in strrchr rindex
11714 do
11715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11729 #define $ac_func innocuous_$ac_func
11730
11731 /* System header to define __stub macros and hopefully few prototypes,
11732     which can conflict with char $ac_func (); below.
11733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11734     <limits.h> exists even on freestanding compilers.  */
11735
11736 #ifdef __STDC__
11737 # include <limits.h>
11738 #else
11739 # include <assert.h>
11740 #endif
11741
11742 #undef $ac_func
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745    Use char because int might match the return type of a GCC
11746    builtin and then its argument prototype would still apply.  */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char $ac_func ();
11751 /* The GNU C library defines this for functions which it implements
11752     to always fail with ENOSYS.  Some functions are actually named
11753     something starting with __ and the normal name is an alias.  */
11754 #if defined __stub_$ac_func || defined __stub___$ac_func
11755 choke me
11756 #endif
11757
11758 int
11759 main ()
11760 {
11761 return $ac_func ();
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (ac_try="$ac_link"
11768 case "(($ac_try" in
11769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770   *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773   (eval "$ac_link") 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11781   { (case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786   (eval "$ac_try") 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; } &&
11790          { ac_try='test -s conftest$ac_exeext'
11791   { (case "(($ac_try" in
11792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793   *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796   (eval "$ac_try") 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; }; then
11800   eval "$as_ac_var=yes"
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805         eval "$as_ac_var=no"
11806 fi
11807
11808 rm -f core conftest.err conftest.$ac_objext \
11809       conftest$ac_exeext conftest.$ac_ext
11810 fi
11811 ac_res=`eval echo '${'$as_ac_var'}'`
11812                { echo "$as_me:$LINENO: result: $ac_res" >&5
11813 echo "${ECHO_T}$ac_res" >&6; }
11814 if test `eval echo '${'$as_ac_var'}'` = yes; then
11815   cat >>confdefs.h <<_ACEOF
11816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11817 _ACEOF
11818  break
11819 fi
11820 done
11821
11822
11823
11824 for ac_func in memcpy bcopy
11825 do
11826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832   cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h.  */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h.  */
11838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11840 #define $ac_func innocuous_$ac_func
11841
11842 /* System header to define __stub macros and hopefully few prototypes,
11843     which can conflict with char $ac_func (); below.
11844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11845     <limits.h> exists even on freestanding compilers.  */
11846
11847 #ifdef __STDC__
11848 # include <limits.h>
11849 #else
11850 # include <assert.h>
11851 #endif
11852
11853 #undef $ac_func
11854
11855 /* Override any GCC internal prototype to avoid an error.
11856    Use char because int might match the return type of a GCC
11857    builtin and then its argument prototype would still apply.  */
11858 #ifdef __cplusplus
11859 extern "C"
11860 #endif
11861 char $ac_func ();
11862 /* The GNU C library defines this for functions which it implements
11863     to always fail with ENOSYS.  Some functions are actually named
11864     something starting with __ and the normal name is an alias.  */
11865 #if defined __stub_$ac_func || defined __stub___$ac_func
11866 choke me
11867 #endif
11868
11869 int
11870 main ()
11871 {
11872 return $ac_func ();
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (ac_try="$ac_link"
11879 case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884   (eval "$ac_link") 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; } &&
11901          { ac_try='test -s conftest$ac_exeext'
11902   { (case "(($ac_try" in
11903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904   *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907   (eval "$ac_try") 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   eval "$as_ac_var=yes"
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916         eval "$as_ac_var=no"
11917 fi
11918
11919 rm -f core conftest.err conftest.$ac_objext \
11920       conftest$ac_exeext conftest.$ac_ext
11921 fi
11922 ac_res=`eval echo '${'$as_ac_var'}'`
11923                { echo "$as_me:$LINENO: result: $ac_res" >&5
11924 echo "${ECHO_T}$ac_res" >&6; }
11925 if test `eval echo '${'$as_ac_var'}'` = yes; then
11926   cat >>confdefs.h <<_ACEOF
11927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11928 _ACEOF
11929  break
11930 fi
11931 done
11932
11933
11934
11935 for ac_func in memmove strcmp
11936 do
11937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11941   echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943   cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11951 #define $ac_func innocuous_$ac_func
11952
11953 /* System header to define __stub macros and hopefully few prototypes,
11954     which can conflict with char $ac_func (); below.
11955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956     <limits.h> exists even on freestanding compilers.  */
11957
11958 #ifdef __STDC__
11959 # include <limits.h>
11960 #else
11961 # include <assert.h>
11962 #endif
11963
11964 #undef $ac_func
11965
11966 /* Override any GCC internal prototype to avoid an error.
11967    Use char because int might match the return type of a GCC
11968    builtin and then its argument prototype would still apply.  */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 char $ac_func ();
11973 /* The GNU C library defines this for functions which it implements
11974     to always fail with ENOSYS.  Some functions are actually named
11975     something starting with __ and the normal name is an alias.  */
11976 #if defined __stub_$ac_func || defined __stub___$ac_func
11977 choke me
11978 #endif
11979
11980 int
11981 main ()
11982 {
11983 return $ac_func ();
11984   ;
11985   return 0;
11986 }
11987 _ACEOF
11988 rm -f conftest.$ac_objext conftest$ac_exeext
11989 if { (ac_try="$ac_link"
11990 case "(($ac_try" in
11991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992   *) ac_try_echo=$ac_try;;
11993 esac
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995   (eval "$ac_link") 2>conftest.er1
11996   ac_status=$?
11997   grep -v '^ *+' conftest.er1 >conftest.err
11998   rm -f conftest.er1
11999   cat conftest.err >&5
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } &&
12002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003   { (case "(($ac_try" in
12004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005   *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008   (eval "$ac_try") 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_try") 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; }; then
12022   eval "$as_ac_var=yes"
12023 else
12024   echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027         eval "$as_ac_var=no"
12028 fi
12029
12030 rm -f core conftest.err conftest.$ac_objext \
12031       conftest$ac_exeext conftest.$ac_ext
12032 fi
12033 ac_res=`eval echo '${'$as_ac_var'}'`
12034                { echo "$as_me:$LINENO: result: $ac_res" >&5
12035 echo "${ECHO_T}$ac_res" >&6; }
12036 if test `eval echo '${'$as_ac_var'}'` = yes; then
12037   cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12039 _ACEOF
12040
12041 fi
12042 done
12043
12044
12045
12046
12047 for ac_func in closedir opendir readdir
12048 do
12049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h.  */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h.  */
12061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12063 #define $ac_func innocuous_$ac_func
12064
12065 /* System header to define __stub macros and hopefully few prototypes,
12066     which can conflict with char $ac_func (); below.
12067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068     <limits.h> exists even on freestanding compilers.  */
12069
12070 #ifdef __STDC__
12071 # include <limits.h>
12072 #else
12073 # include <assert.h>
12074 #endif
12075
12076 #undef $ac_func
12077
12078 /* Override any GCC internal prototype to avoid an error.
12079    Use char because int might match the return type of a GCC
12080    builtin and then its argument prototype would still apply.  */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 char $ac_func ();
12085 /* The GNU C library defines this for functions which it implements
12086     to always fail with ENOSYS.  Some functions are actually named
12087     something starting with __ and the normal name is an alias.  */
12088 #if defined __stub_$ac_func || defined __stub___$ac_func
12089 choke me
12090 #endif
12091
12092 int
12093 main ()
12094 {
12095 return $ac_func ();
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (ac_try="$ac_link"
12102 case "(($ac_try" in
12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104   *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107   (eval "$ac_link") 2>conftest.er1
12108   ac_status=$?
12109   grep -v '^ *+' conftest.er1 >conftest.err
12110   rm -f conftest.er1
12111   cat conftest.err >&5
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); } &&
12114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12115   { (case "(($ac_try" in
12116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117   *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120   (eval "$ac_try") 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; } &&
12124          { ac_try='test -s conftest$ac_exeext'
12125   { (case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130   (eval "$ac_try") 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   eval "$as_ac_var=yes"
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139         eval "$as_ac_var=no"
12140 fi
12141
12142 rm -f core conftest.err conftest.$ac_objext \
12143       conftest$ac_exeext conftest.$ac_ext
12144 fi
12145 ac_res=`eval echo '${'$as_ac_var'}'`
12146                { echo "$as_me:$LINENO: result: $ac_res" >&5
12147 echo "${ECHO_T}$ac_res" >&6; }
12148 if test `eval echo '${'$as_ac_var'}'` = yes; then
12149   cat >>confdefs.h <<_ACEOF
12150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12151 _ACEOF
12152
12153 fi
12154 done
12155
12156
12157
12158 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12159 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12160
12161 ICC=no
12162 IXX=no
12163 case $CC in
12164   icc*|icpc*)
12165     ICC=yes
12166     IXX=yes
12167     ;;
12168    *)
12169     ;;
12170 esac
12171
12172 if test "$GCC" != "yes" && test "$ICC" != "yes"
12173 then
12174   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12175 echo "$as_me: error: gcc|icc required but not found" >&2;}
12176    { (exit 1); exit 1; }; }
12177 fi
12178
12179 if test "$GXX" != "yes" && test "$IXX" != "yes"
12180 then
12181   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12182 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12183    { (exit 1); exit 1; }; }
12184 fi
12185
12186 if test "$GCC" = "yes"
12187 then
12188   cat >conftest.$ac_ext <<_ACEOF
12189 #if !defined(__GNUC__) || __GNUC__ < 3
12190 #error Unsupported GCC version
12191 #endif
12192
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201   (eval "$ac_compile") 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209   { (case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_try") 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; } &&
12218          { ac_try='test -s conftest.$ac_objext'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   :
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12234 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12235    { (exit 1); exit 1; }; }
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239 fi
12240
12241 if test -z "$llvm_cv_gnu_make_command"
12242 then
12243   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12244 echo "$as_me: error: GNU Make required but not found" >&2;}
12245    { (exit 1); exit 1; }; }
12246 fi
12247
12248 { echo "$as_me:$LINENO: result: ok" >&5
12249 echo "${ECHO_T}ok" >&6; }
12250
12251 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12252 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12253 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12254
12255 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12256
12257 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12258 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12259
12260
12261
12262 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12263 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_m_sin+set}" = set; then
12265   echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267   ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lm  $LIBS"
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275
12276 /* Override any GCC internal prototype to avoid an error.
12277    Use char because int might match the return type of a GCC
12278    builtin and then its argument prototype would still apply.  */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char sin ();
12283 int
12284 main ()
12285 {
12286 return sin ();
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295   *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298   (eval "$ac_link") 2>conftest.er1
12299   ac_status=$?
12300   grep -v '^ *+' conftest.er1 >conftest.err
12301   rm -f conftest.er1
12302   cat conftest.err >&5
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); } &&
12305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12306   { (case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311   (eval "$ac_try") 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; } &&
12315          { ac_try='test -s conftest$ac_exeext'
12316   { (case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_try") 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_cv_lib_m_sin=yes
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330         ac_cv_lib_m_sin=no
12331 fi
12332
12333 rm -f core conftest.err conftest.$ac_objext \
12334       conftest$ac_exeext conftest.$ac_ext
12335 LIBS=$ac_check_lib_save_LIBS
12336 fi
12337 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12338 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12339 if test $ac_cv_lib_m_sin = yes; then
12340   cat >>confdefs.h <<_ACEOF
12341 #define HAVE_LIBM 1
12342 _ACEOF
12343
12344   LIBS="-lm $LIBS"
12345
12346 fi
12347
12348 if test "$llvm_cv_os_type" = "MingW" ; then
12349
12350 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12351 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12352 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12353   echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355   ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-limagehlp  $LIBS"
12357 cat >conftest.$ac_ext <<_ACEOF
12358 /* confdefs.h.  */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h.  */
12363
12364
12365 int
12366 main ()
12367 {
12368 return main ();
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377   *) ac_try_echo=$ac_try;;
12378 esac
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380   (eval "$ac_link") 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388   { (case "(($ac_try" in
12389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390   *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393   (eval "$ac_try") 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; } &&
12397          { ac_try='test -s conftest$ac_exeext'
12398   { (case "(($ac_try" in
12399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400   *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403   (eval "$ac_try") 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; }; then
12407   ac_cv_lib_imagehlp_main=yes
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412         ac_cv_lib_imagehlp_main=no
12413 fi
12414
12415 rm -f core conftest.err conftest.$ac_objext \
12416       conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12418 fi
12419 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12420 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12421 if test $ac_cv_lib_imagehlp_main = yes; then
12422   cat >>confdefs.h <<_ACEOF
12423 #define HAVE_LIBIMAGEHLP 1
12424 _ACEOF
12425
12426   LIBS="-limagehlp $LIBS"
12427
12428 fi
12429
12430
12431 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12432 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12433 if test "${ac_cv_lib_psapi_main+set}" = set; then
12434   echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436   ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-lpsapi  $LIBS"
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444
12445
12446 int
12447 main ()
12448 {
12449 return main ();
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (ac_try="$ac_link"
12456 case "(($ac_try" in
12457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458   *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461   (eval "$ac_link") 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12469   { (case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_try") 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; } &&
12478          { ac_try='test -s conftest$ac_exeext'
12479   { (case "(($ac_try" in
12480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481   *) ac_try_echo=$ac_try;;
12482 esac
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484   (eval "$ac_try") 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; }; then
12488   ac_cv_lib_psapi_main=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493         ac_cv_lib_psapi_main=no
12494 fi
12495
12496 rm -f core conftest.err conftest.$ac_objext \
12497       conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12499 fi
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12501 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12502 if test $ac_cv_lib_psapi_main = yes; then
12503   cat >>confdefs.h <<_ACEOF
12504 #define HAVE_LIBPSAPI 1
12505 _ACEOF
12506
12507   LIBS="-lpsapi $LIBS"
12508
12509 fi
12510
12511 fi
12512
12513 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12514 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12515 if test "${ac_cv_search_dlopen+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   ac_func_search_save_LIBS=$LIBS
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525
12526 /* Override any GCC internal prototype to avoid an error.
12527    Use char because int might match the return type of a GCC
12528    builtin and then its argument prototype would still apply.  */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char dlopen ();
12533 int
12534 main ()
12535 {
12536 return dlopen ();
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 for ac_lib in '' dl; do
12542   if test -z "$ac_lib"; then
12543     ac_res="none required"
12544   else
12545     ac_res=-l$ac_lib
12546     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12547   fi
12548   rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_link") 2>conftest.er1
12556   ac_status=$?
12557   grep -v '^ *+' conftest.er1 >conftest.err
12558   rm -f conftest.er1
12559   cat conftest.err >&5
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); } &&
12562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12563   { (case "(($ac_try" in
12564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565   *) ac_try_echo=$ac_try;;
12566 esac
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568   (eval "$ac_try") 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; } &&
12572          { ac_try='test -s conftest$ac_exeext'
12573   { (case "(($ac_try" in
12574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575   *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578   (eval "$ac_try") 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   ac_cv_search_dlopen=$ac_res
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587
12588 fi
12589
12590 rm -f core conftest.err conftest.$ac_objext \
12591       conftest$ac_exeext
12592   if test "${ac_cv_search_dlopen+set}" = set; then
12593   break
12594 fi
12595 done
12596 if test "${ac_cv_search_dlopen+set}" = set; then
12597   :
12598 else
12599   ac_cv_search_dlopen=no
12600 fi
12601 rm conftest.$ac_ext
12602 LIBS=$ac_func_search_save_LIBS
12603 fi
12604 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12605 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12606 ac_res=$ac_cv_search_dlopen
12607 if test "$ac_res" != no; then
12608   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12609
12610 cat >>confdefs.h <<\_ACEOF
12611 #define HAVE_DLOPEN 1
12612 _ACEOF
12613
12614 else
12615   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12616 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12617 fi
12618
12619
12620 if test "$llvm_cv_enable_libffi" = "yes" ; then
12621   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12622 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12623 if test "${ac_cv_search_ffi_call+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   ac_func_search_save_LIBS=$LIBS
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633
12634 /* Override any GCC internal prototype to avoid an error.
12635    Use char because int might match the return type of a GCC
12636    builtin and then its argument prototype would still apply.  */
12637 #ifdef __cplusplus
12638 extern "C"
12639 #endif
12640 char ffi_call ();
12641 int
12642 main ()
12643 {
12644 return ffi_call ();
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 for ac_lib in '' ffi; do
12650   if test -z "$ac_lib"; then
12651     ac_res="none required"
12652   else
12653     ac_res=-l$ac_lib
12654     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12655   fi
12656   rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660   *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663   (eval "$ac_link") 2>conftest.er1
12664   ac_status=$?
12665   grep -v '^ *+' conftest.er1 >conftest.err
12666   rm -f conftest.er1
12667   cat conftest.err >&5
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } &&
12670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671   { (case "(($ac_try" in
12672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673   *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676   (eval "$ac_try") 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; } &&
12680          { ac_try='test -s conftest$ac_exeext'
12681   { (case "(($ac_try" in
12682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683   *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686   (eval "$ac_try") 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; }; then
12690   ac_cv_search_ffi_call=$ac_res
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext \
12699       conftest$ac_exeext
12700   if test "${ac_cv_search_ffi_call+set}" = set; then
12701   break
12702 fi
12703 done
12704 if test "${ac_cv_search_ffi_call+set}" = set; then
12705   :
12706 else
12707   ac_cv_search_ffi_call=no
12708 fi
12709 rm conftest.$ac_ext
12710 LIBS=$ac_func_search_save_LIBS
12711 fi
12712 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12713 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12714 ac_res=$ac_cv_search_ffi_call
12715 if test "$ac_res" != no; then
12716   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12717
12718 cat >>confdefs.h <<\_ACEOF
12719 #define HAVE_FFI_CALL 1
12720 _ACEOF
12721
12722 else
12723   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12724 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12725    { (exit 1); exit 1; }; }
12726 fi
12727
12728 fi
12729
12730 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12731 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12732 if test "${ac_cv_search_mallinfo+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   ac_func_search_save_LIBS=$LIBS
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742
12743 /* Override any GCC internal prototype to avoid an error.
12744    Use char because int might match the return type of a GCC
12745    builtin and then its argument prototype would still apply.  */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 char mallinfo ();
12750 int
12751 main ()
12752 {
12753 return mallinfo ();
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 for ac_lib in '' malloc; do
12759   if test -z "$ac_lib"; then
12760     ac_res="none required"
12761   else
12762     ac_res=-l$ac_lib
12763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12764   fi
12765   rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769   *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772   (eval "$ac_link") 2>conftest.er1
12773   ac_status=$?
12774   grep -v '^ *+' conftest.er1 >conftest.err
12775   rm -f conftest.er1
12776   cat conftest.err >&5
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); } &&
12779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780   { (case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_try") 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; } &&
12789          { ac_try='test -s conftest$ac_exeext'
12790   { (case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795   (eval "$ac_try") 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; }; then
12799   ac_cv_search_mallinfo=$ac_res
12800 else
12801   echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804
12805 fi
12806
12807 rm -f core conftest.err conftest.$ac_objext \
12808       conftest$ac_exeext
12809   if test "${ac_cv_search_mallinfo+set}" = set; then
12810   break
12811 fi
12812 done
12813 if test "${ac_cv_search_mallinfo+set}" = set; then
12814   :
12815 else
12816   ac_cv_search_mallinfo=no
12817 fi
12818 rm conftest.$ac_ext
12819 LIBS=$ac_func_search_save_LIBS
12820 fi
12821 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12822 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12823 ac_res=$ac_cv_search_mallinfo
12824 if test "$ac_res" != no; then
12825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12826
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_MALLINFO 1
12829 _ACEOF
12830
12831 fi
12832
12833
12834 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12835
12836 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12837 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12838 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12839   echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841   ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lpthread  $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h.  */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h.  */
12849
12850 /* Override any GCC internal prototype to avoid an error.
12851    Use char because int might match the return type of a GCC
12852    builtin and then its argument prototype would still apply.  */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char pthread_mutex_init ();
12857 int
12858 main ()
12859 {
12860 return pthread_mutex_init ();
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (ac_try="$ac_link"
12867 case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_link") 2>conftest.er1
12873   ac_status=$?
12874   grep -v '^ *+' conftest.er1 >conftest.err
12875   rm -f conftest.er1
12876   cat conftest.err >&5
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } &&
12879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880   { (case "(($ac_try" in
12881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882   *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885   (eval "$ac_try") 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); }; } &&
12889          { ac_try='test -s conftest$ac_exeext'
12890   { (case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895   (eval "$ac_try") 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; }; then
12899   ac_cv_lib_pthread_pthread_mutex_init=yes
12900 else
12901   echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904         ac_cv_lib_pthread_pthread_mutex_init=no
12905 fi
12906
12907 rm -f core conftest.err conftest.$ac_objext \
12908       conftest$ac_exeext conftest.$ac_ext
12909 LIBS=$ac_check_lib_save_LIBS
12910 fi
12911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12912 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12913 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12914   cat >>confdefs.h <<_ACEOF
12915 #define HAVE_LIBPTHREAD 1
12916 _ACEOF
12917
12918   LIBS="-lpthread $LIBS"
12919
12920 fi
12921
12922   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12923 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12924 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12925   echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927   ac_func_search_save_LIBS=$LIBS
12928 cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h.  */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h.  */
12934
12935 /* Override any GCC internal prototype to avoid an error.
12936    Use char because int might match the return type of a GCC
12937    builtin and then its argument prototype would still apply.  */
12938 #ifdef __cplusplus
12939 extern "C"
12940 #endif
12941 char pthread_mutex_lock ();
12942 int
12943 main ()
12944 {
12945 return pthread_mutex_lock ();
12946   ;
12947   return 0;
12948 }
12949 _ACEOF
12950 for ac_lib in '' pthread; do
12951   if test -z "$ac_lib"; then
12952     ac_res="none required"
12953   else
12954     ac_res=-l$ac_lib
12955     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12956   fi
12957   rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_link") 2>conftest.er1
12965   ac_status=$?
12966   grep -v '^ *+' conftest.er1 >conftest.err
12967   rm -f conftest.er1
12968   cat conftest.err >&5
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } &&
12971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972   { (case "(($ac_try" in
12973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974   *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977   (eval "$ac_try") 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; } &&
12981          { ac_try='test -s conftest$ac_exeext'
12982   { (case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_try") 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; }; then
12991   ac_cv_search_pthread_mutex_lock=$ac_res
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996
12997 fi
12998
12999 rm -f core conftest.err conftest.$ac_objext \
13000       conftest$ac_exeext
13001   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13002   break
13003 fi
13004 done
13005 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13006   :
13007 else
13008   ac_cv_search_pthread_mutex_lock=no
13009 fi
13010 rm conftest.$ac_ext
13011 LIBS=$ac_func_search_save_LIBS
13012 fi
13013 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13014 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13015 ac_res=$ac_cv_search_pthread_mutex_lock
13016 if test "$ac_res" != no; then
13017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13018
13019 cat >>confdefs.h <<\_ACEOF
13020 #define HAVE_PTHREAD_MUTEX_LOCK 1
13021 _ACEOF
13022
13023 fi
13024
13025   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13026 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13027 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13028   echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030   ac_func_search_save_LIBS=$LIBS
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h.  */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h.  */
13037
13038 /* Override any GCC internal prototype to avoid an error.
13039    Use char because int might match the return type of a GCC
13040    builtin and then its argument prototype would still apply.  */
13041 #ifdef __cplusplus
13042 extern "C"
13043 #endif
13044 char pthread_rwlock_init ();
13045 int
13046 main ()
13047 {
13048 return pthread_rwlock_init ();
13049   ;
13050   return 0;
13051 }
13052 _ACEOF
13053 for ac_lib in '' pthread; do
13054   if test -z "$ac_lib"; then
13055     ac_res="none required"
13056   else
13057     ac_res=-l$ac_lib
13058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13059   fi
13060   rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_link") 2>conftest.er1
13068   ac_status=$?
13069   grep -v '^ *+' conftest.er1 >conftest.err
13070   rm -f conftest.er1
13071   cat conftest.err >&5
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } &&
13074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075   { (case "(($ac_try" in
13076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077   *) ac_try_echo=$ac_try;;
13078 esac
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080   (eval "$ac_try") 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; } &&
13084          { ac_try='test -s conftest$ac_exeext'
13085   { (case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090   (eval "$ac_try") 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; }; then
13094   ac_cv_search_pthread_rwlock_init=$ac_res
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099
13100 fi
13101
13102 rm -f core conftest.err conftest.$ac_objext \
13103       conftest$ac_exeext
13104   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13105   break
13106 fi
13107 done
13108 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13109   :
13110 else
13111   ac_cv_search_pthread_rwlock_init=no
13112 fi
13113 rm conftest.$ac_ext
13114 LIBS=$ac_func_search_save_LIBS
13115 fi
13116 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13117 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13118 ac_res=$ac_cv_search_pthread_rwlock_init
13119 if test "$ac_res" != no; then
13120   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13121
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_PTHREAD_RWLOCK_INIT 1
13124 _ACEOF
13125
13126 fi
13127
13128   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13129 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13130 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13131   echo $ECHO_N "(cached) $ECHO_C" >&6
13132 else
13133   ac_func_search_save_LIBS=$LIBS
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140
13141 /* Override any GCC internal prototype to avoid an error.
13142    Use char because int might match the return type of a GCC
13143    builtin and then its argument prototype would still apply.  */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 char pthread_getspecific ();
13148 int
13149 main ()
13150 {
13151 return pthread_getspecific ();
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 for ac_lib in '' pthread; do
13157   if test -z "$ac_lib"; then
13158     ac_res="none required"
13159   else
13160     ac_res=-l$ac_lib
13161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13162   fi
13163   rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (ac_try="$ac_link"
13165 case "(($ac_try" in
13166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167   *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170   (eval "$ac_link") 2>conftest.er1
13171   ac_status=$?
13172   grep -v '^ *+' conftest.er1 >conftest.err
13173   rm -f conftest.er1
13174   cat conftest.err >&5
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); } &&
13177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13178   { (case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183   (eval "$ac_try") 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }; } &&
13187          { ac_try='test -s conftest$ac_exeext'
13188   { (case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_try") 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }; }; then
13197   ac_cv_search_pthread_getspecific=$ac_res
13198 else
13199   echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13201
13202
13203 fi
13204
13205 rm -f core conftest.err conftest.$ac_objext \
13206       conftest$ac_exeext
13207   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13208   break
13209 fi
13210 done
13211 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13212   :
13213 else
13214   ac_cv_search_pthread_getspecific=no
13215 fi
13216 rm conftest.$ac_ext
13217 LIBS=$ac_func_search_save_LIBS
13218 fi
13219 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13220 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13221 ac_res=$ac_cv_search_pthread_getspecific
13222 if test "$ac_res" != no; then
13223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13224
13225 cat >>confdefs.h <<\_ACEOF
13226 #define HAVE_PTHREAD_GETSPECIFIC 1
13227 _ACEOF
13228
13229 fi
13230
13231 fi
13232
13233
13234 # Check whether --with-udis86 was given.
13235 if test "${with_udis86+set}" = set; then
13236   withval=$with_udis86;
13237       USE_UDIS86=1
13238
13239       case "$withval" in
13240         /usr/lib|yes) ;;
13241         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13242       esac
13243
13244 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13245 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13246 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13247   echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249   ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-ludis86  $LIBS"
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259    Use char because int might match the return type of a GCC
13260    builtin and then its argument prototype would still apply.  */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char ud_init ();
13265 int
13266 main ()
13267 {
13268 return ud_init ();
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280   (eval "$ac_link") 2>conftest.er1
13281   ac_status=$?
13282   grep -v '^ *+' conftest.er1 >conftest.err
13283   rm -f conftest.er1
13284   cat conftest.err >&5
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); } &&
13287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288   { (case "(($ac_try" in
13289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290   *) ac_try_echo=$ac_try;;
13291 esac
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293   (eval "$ac_try") 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; } &&
13297          { ac_try='test -s conftest$ac_exeext'
13298   { (case "(($ac_try" in
13299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300   *) ac_try_echo=$ac_try;;
13301 esac
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303   (eval "$ac_try") 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_cv_lib_udis86_ud_init=yes
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312         ac_cv_lib_udis86_ud_init=no
13313 fi
13314
13315 rm -f core conftest.err conftest.$ac_objext \
13316       conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13318 fi
13319 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13320 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13321 if test $ac_cv_lib_udis86_ud_init = yes; then
13322   cat >>confdefs.h <<_ACEOF
13323 #define HAVE_LIBUDIS86 1
13324 _ACEOF
13325
13326   LIBS="-ludis86 $LIBS"
13327
13328 else
13329
13330         echo "Error! You need to have libudis86 around."
13331         exit -1
13332
13333 fi
13334
13335
13336 else
13337   USE_UDIS86=0
13338
13339 fi
13340
13341
13342 cat >>confdefs.h <<_ACEOF
13343 #define USE_UDIS86 $USE_UDIS86
13344 _ACEOF
13345
13346
13347
13348 # Check whether --with-oprofile was given.
13349 if test "${with_oprofile+set}" = set; then
13350   withval=$with_oprofile;
13351       USE_OPROFILE=1
13352
13353       case "$withval" in
13354         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13355         no) llvm_cv_oppath=
13356             USE_OPROFILE=0
13357  ;;
13358         *) llvm_cv_oppath="${withval}/lib/oprofile"
13359            CPPFLAGS="-I${withval}/include";;
13360       esac
13361       if test -n "$llvm_cv_oppath" ; then
13362         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13363                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13364 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13365 if test "${ac_cv_search_bfd_init+set}" = set; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   ac_func_search_save_LIBS=$LIBS
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h.  */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h.  */
13375
13376 /* Override any GCC internal prototype to avoid an error.
13377    Use char because int might match the return type of a GCC
13378    builtin and then its argument prototype would still apply.  */
13379 #ifdef __cplusplus
13380 extern "C"
13381 #endif
13382 char bfd_init ();
13383 int
13384 main ()
13385 {
13386 return bfd_init ();
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 for ac_lib in '' bfd; do
13392   if test -z "$ac_lib"; then
13393     ac_res="none required"
13394   else
13395     ac_res=-l$ac_lib
13396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13397   fi
13398   rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (ac_try="$ac_link"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_link") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } &&
13412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13413   { (case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_try") 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; } &&
13422          { ac_try='test -s conftest$ac_exeext'
13423   { (case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_try") 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; }; then
13432   ac_cv_search_bfd_init=$ac_res
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437
13438 fi
13439
13440 rm -f core conftest.err conftest.$ac_objext \
13441       conftest$ac_exeext
13442   if test "${ac_cv_search_bfd_init+set}" = set; then
13443   break
13444 fi
13445 done
13446 if test "${ac_cv_search_bfd_init+set}" = set; then
13447   :
13448 else
13449   ac_cv_search_bfd_init=no
13450 fi
13451 rm conftest.$ac_ext
13452 LIBS=$ac_func_search_save_LIBS
13453 fi
13454 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13455 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13456 ac_res=$ac_cv_search_bfd_init
13457 if test "$ac_res" != no; then
13458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13459
13460 fi
13461
13462         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13463 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13464 if test "${ac_cv_search_op_open_agent+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   ac_func_search_save_LIBS=$LIBS
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474
13475 /* Override any GCC internal prototype to avoid an error.
13476    Use char because int might match the return type of a GCC
13477    builtin and then its argument prototype would still apply.  */
13478 #ifdef __cplusplus
13479 extern "C"
13480 #endif
13481 char op_open_agent ();
13482 int
13483 main ()
13484 {
13485 return op_open_agent ();
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 for ac_lib in '' opagent; do
13491   if test -z "$ac_lib"; then
13492     ac_res="none required"
13493   else
13494     ac_res=-l$ac_lib
13495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13496   fi
13497   rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (ac_try="$ac_link"
13499 case "(($ac_try" in
13500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501   *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504   (eval "$ac_link") 2>conftest.er1
13505   ac_status=$?
13506   grep -v '^ *+' conftest.er1 >conftest.err
13507   rm -f conftest.er1
13508   cat conftest.err >&5
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); } &&
13511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512   { (case "(($ac_try" in
13513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514   *) ac_try_echo=$ac_try;;
13515 esac
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517   (eval "$ac_try") 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; } &&
13521          { ac_try='test -s conftest$ac_exeext'
13522   { (case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527   (eval "$ac_try") 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   ac_cv_search_op_open_agent=$ac_res
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536
13537 fi
13538
13539 rm -f core conftest.err conftest.$ac_objext \
13540       conftest$ac_exeext
13541   if test "${ac_cv_search_op_open_agent+set}" = set; then
13542   break
13543 fi
13544 done
13545 if test "${ac_cv_search_op_open_agent+set}" = set; then
13546   :
13547 else
13548   ac_cv_search_op_open_agent=no
13549 fi
13550 rm conftest.$ac_ext
13551 LIBS=$ac_func_search_save_LIBS
13552 fi
13553 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13554 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13555 ac_res=$ac_cv_search_op_open_agent
13556 if test "$ac_res" != no; then
13557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13558
13559 else
13560
13561           echo "Error! You need to have libopagent around."
13562           exit -1
13563
13564 fi
13565
13566         if test "${ac_cv_header_opagent_h+set}" = set; then
13567   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13568 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13569 if test "${ac_cv_header_opagent_h+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 fi
13572 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13573 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13574 else
13575   # Is the header compilable?
13576 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13577 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h.  */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h.  */
13584 $ac_includes_default
13585 #include <opagent.h>
13586 _ACEOF
13587 rm -f conftest.$ac_objext
13588 if { (ac_try="$ac_compile"
13589 case "(($ac_try" in
13590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591   *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594   (eval "$ac_compile") 2>conftest.er1
13595   ac_status=$?
13596   grep -v '^ *+' conftest.er1 >conftest.err
13597   rm -f conftest.er1
13598   cat conftest.err >&5
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); } &&
13601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602   { (case "(($ac_try" in
13603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604   *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607   (eval "$ac_try") 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; } &&
13611          { ac_try='test -s conftest.$ac_objext'
13612   { (case "(($ac_try" in
13613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614   *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617   (eval "$ac_try") 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }; then
13621   ac_header_compiler=yes
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626         ac_header_compiler=no
13627 fi
13628
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631 echo "${ECHO_T}$ac_header_compiler" >&6; }
13632
13633 # Is the header present?
13634 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13635 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13636 cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h.  */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h.  */
13642 #include <opagent.h>
13643 _ACEOF
13644 if { (ac_try="$ac_cpp conftest.$ac_ext"
13645 case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13651   ac_status=$?
13652   grep -v '^ *+' conftest.er1 >conftest.err
13653   rm -f conftest.er1
13654   cat conftest.err >&5
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } >/dev/null; then
13657   if test -s conftest.err; then
13658     ac_cpp_err=$ac_c_preproc_warn_flag
13659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13660   else
13661     ac_cpp_err=
13662   fi
13663 else
13664   ac_cpp_err=yes
13665 fi
13666 if test -z "$ac_cpp_err"; then
13667   ac_header_preproc=yes
13668 else
13669   echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672   ac_header_preproc=no
13673 fi
13674
13675 rm -f conftest.err conftest.$ac_ext
13676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13677 echo "${ECHO_T}$ac_header_preproc" >&6; }
13678
13679 # So?  What about this header?
13680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13681   yes:no: )
13682     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13683 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13684     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13685 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13686     ac_header_preproc=yes
13687     ;;
13688   no:yes:* )
13689     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13690 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13691     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13692 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13694 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13695     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13696 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13697     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13698 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13699     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13700 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13701     ( cat <<\_ASBOX
13702 ## ----------------------------------- ##
13703 ## Report this to llvmbugs@cs.uiuc.edu ##
13704 ## ----------------------------------- ##
13705 _ASBOX
13706      ) | sed "s/^/$as_me: WARNING:     /" >&2
13707     ;;
13708 esac
13709 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13710 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13711 if test "${ac_cv_header_opagent_h+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   ac_cv_header_opagent_h=$ac_header_preproc
13715 fi
13716 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13717 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13718
13719 fi
13720 if test $ac_cv_header_opagent_h = yes; then
13721   :
13722 else
13723
13724           echo "Error! You need to have opagent.h around."
13725           exit -1
13726
13727 fi
13728
13729
13730       fi
13731
13732 else
13733
13734       USE_OPROFILE=0
13735
13736
13737 fi
13738
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define USE_OPROFILE $USE_OPROFILE
13742 _ACEOF
13743
13744
13745
13746
13747
13748
13749
13750
13751 ac_header_dirent=no
13752 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13753   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13754 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13755 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757   echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759   cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h.  */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h.  */
13765 #include <sys/types.h>
13766 #include <$ac_hdr>
13767
13768 int
13769 main ()
13770 {
13771 if ((DIR *) 0)
13772 return 0;
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (ac_try="$ac_compile"
13779 case "(($ac_try" in
13780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781   *) ac_try_echo=$ac_try;;
13782 esac
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784   (eval "$ac_compile") 2>conftest.er1
13785   ac_status=$?
13786   grep -v '^ *+' conftest.er1 >conftest.err
13787   rm -f conftest.er1
13788   cat conftest.err >&5
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } &&
13791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13792   { (case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797   (eval "$ac_try") 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; } &&
13801          { ac_try='test -s conftest.$ac_objext'
13802   { (case "(($ac_try" in
13803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804   *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807   (eval "$ac_try") 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811   eval "$as_ac_Header=yes"
13812 else
13813   echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816         eval "$as_ac_Header=no"
13817 fi
13818
13819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 ac_res=`eval echo '${'$as_ac_Header'}'`
13822                { echo "$as_me:$LINENO: result: $ac_res" >&5
13823 echo "${ECHO_T}$ac_res" >&6; }
13824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825   cat >>confdefs.h <<_ACEOF
13826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13827 _ACEOF
13828
13829 ac_header_dirent=$ac_hdr; break
13830 fi
13831
13832 done
13833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13834 if test $ac_header_dirent = dirent.h; then
13835   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13837 if test "${ac_cv_search_opendir+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   ac_func_search_save_LIBS=$LIBS
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h.  */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h.  */
13847
13848 /* Override any GCC internal prototype to avoid an error.
13849    Use char because int might match the return type of a GCC
13850    builtin and then its argument prototype would still apply.  */
13851 #ifdef __cplusplus
13852 extern "C"
13853 #endif
13854 char opendir ();
13855 int
13856 main ()
13857 {
13858 return opendir ();
13859   ;
13860   return 0;
13861 }
13862 _ACEOF
13863 for ac_lib in '' dir; do
13864   if test -z "$ac_lib"; then
13865     ac_res="none required"
13866   else
13867     ac_res=-l$ac_lib
13868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13869   fi
13870   rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874   *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877   (eval "$ac_link") 2>conftest.er1
13878   ac_status=$?
13879   grep -v '^ *+' conftest.er1 >conftest.err
13880   rm -f conftest.er1
13881   cat conftest.err >&5
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } &&
13884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13885   { (case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890   (eval "$ac_try") 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; } &&
13894          { ac_try='test -s conftest$ac_exeext'
13895   { (case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_try") 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; }; then
13904   ac_cv_search_opendir=$ac_res
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909
13910 fi
13911
13912 rm -f core conftest.err conftest.$ac_objext \
13913       conftest$ac_exeext
13914   if test "${ac_cv_search_opendir+set}" = set; then
13915   break
13916 fi
13917 done
13918 if test "${ac_cv_search_opendir+set}" = set; then
13919   :
13920 else
13921   ac_cv_search_opendir=no
13922 fi
13923 rm conftest.$ac_ext
13924 LIBS=$ac_func_search_save_LIBS
13925 fi
13926 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13927 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13928 ac_res=$ac_cv_search_opendir
13929 if test "$ac_res" != no; then
13930   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13931
13932 fi
13933
13934 else
13935   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13936 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13937 if test "${ac_cv_search_opendir+set}" = set; then
13938   echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940   ac_func_search_save_LIBS=$LIBS
13941 cat >conftest.$ac_ext <<_ACEOF
13942 /* confdefs.h.  */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h.  */
13947
13948 /* Override any GCC internal prototype to avoid an error.
13949    Use char because int might match the return type of a GCC
13950    builtin and then its argument prototype would still apply.  */
13951 #ifdef __cplusplus
13952 extern "C"
13953 #endif
13954 char opendir ();
13955 int
13956 main ()
13957 {
13958 return opendir ();
13959   ;
13960   return 0;
13961 }
13962 _ACEOF
13963 for ac_lib in '' x; do
13964   if test -z "$ac_lib"; then
13965     ac_res="none required"
13966   else
13967     ac_res=-l$ac_lib
13968     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13969   fi
13970   rm -f conftest.$ac_objext conftest$ac_exeext
13971 if { (ac_try="$ac_link"
13972 case "(($ac_try" in
13973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974   *) ac_try_echo=$ac_try;;
13975 esac
13976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977   (eval "$ac_link") 2>conftest.er1
13978   ac_status=$?
13979   grep -v '^ *+' conftest.er1 >conftest.err
13980   rm -f conftest.er1
13981   cat conftest.err >&5
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); } &&
13984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13985   { (case "(($ac_try" in
13986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987   *) ac_try_echo=$ac_try;;
13988 esac
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990   (eval "$ac_try") 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; } &&
13994          { ac_try='test -s conftest$ac_exeext'
13995   { (case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_try") 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; }; then
14004   ac_cv_search_opendir=$ac_res
14005 else
14006   echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009
14010 fi
14011
14012 rm -f core conftest.err conftest.$ac_objext \
14013       conftest$ac_exeext
14014   if test "${ac_cv_search_opendir+set}" = set; then
14015   break
14016 fi
14017 done
14018 if test "${ac_cv_search_opendir+set}" = set; then
14019   :
14020 else
14021   ac_cv_search_opendir=no
14022 fi
14023 rm conftest.$ac_ext
14024 LIBS=$ac_func_search_save_LIBS
14025 fi
14026 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14027 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14028 ac_res=$ac_cv_search_opendir
14029 if test "$ac_res" != no; then
14030   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14031
14032 fi
14033
14034 fi
14035
14036 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14037 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14038 if test "${ac_cv_header_mmap_anon+set}" = set; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041    ac_ext=c
14042 ac_cpp='$CPP $CPPFLAGS'
14043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14046
14047   cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h.  */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h.  */
14053 #include <sys/mman.h>
14054 #include <unistd.h>
14055 #include <fcntl.h>
14056 int
14057 main ()
14058 {
14059 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 rm -f conftest.$ac_objext
14065 if { (ac_try="$ac_compile"
14066 case "(($ac_try" in
14067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068   *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071   (eval "$ac_compile") 2>conftest.er1
14072   ac_status=$?
14073   grep -v '^ *+' conftest.er1 >conftest.err
14074   rm -f conftest.er1
14075   cat conftest.err >&5
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } &&
14078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14079   { (case "(($ac_try" in
14080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081   *) ac_try_echo=$ac_try;;
14082 esac
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084   (eval "$ac_try") 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; } &&
14088          { ac_try='test -s conftest.$ac_objext'
14089   { (case "(($ac_try" in
14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091   *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094   (eval "$ac_try") 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); }; }; then
14098   ac_cv_header_mmap_anon=yes
14099 else
14100   echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103         ac_cv_header_mmap_anon=no
14104 fi
14105
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107   ac_ext=c
14108 ac_cpp='$CPP $CPPFLAGS'
14109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14112
14113
14114 fi
14115 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14116 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14117 if test "$ac_cv_header_mmap_anon" = yes; then
14118
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_MMAP_ANONYMOUS 1
14121 _ACEOF
14122
14123 fi
14124
14125 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14126 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14127 if test "${ac_cv_header_stat_broken+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h.  */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h.  */
14136 #include <sys/types.h>
14137 #include <sys/stat.h>
14138
14139 #if defined S_ISBLK && defined S_IFDIR
14140 # if S_ISBLK (S_IFDIR)
14141 You lose.
14142 # endif
14143 #endif
14144
14145 #if defined S_ISBLK && defined S_IFCHR
14146 # if S_ISBLK (S_IFCHR)
14147 You lose.
14148 # endif
14149 #endif
14150
14151 #if defined S_ISLNK && defined S_IFREG
14152 # if S_ISLNK (S_IFREG)
14153 You lose.
14154 # endif
14155 #endif
14156
14157 #if defined S_ISSOCK && defined S_IFREG
14158 # if S_ISSOCK (S_IFREG)
14159 You lose.
14160 # endif
14161 #endif
14162
14163 _ACEOF
14164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14165   $EGREP "You lose" >/dev/null 2>&1; then
14166   ac_cv_header_stat_broken=yes
14167 else
14168   ac_cv_header_stat_broken=no
14169 fi
14170 rm -f conftest*
14171
14172 fi
14173 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14174 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14175 if test $ac_cv_header_stat_broken = yes; then
14176
14177 cat >>confdefs.h <<\_ACEOF
14178 #define STAT_MACROS_BROKEN 1
14179 _ACEOF
14180
14181 fi
14182
14183 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14184 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14185 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14186   echo $ECHO_N "(cached) $ECHO_C" >&6
14187 else
14188   cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194 #include <sys/types.h>
14195 #include <sys/wait.h>
14196 #ifndef WEXITSTATUS
14197 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14198 #endif
14199 #ifndef WIFEXITED
14200 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14201 #endif
14202
14203 int
14204 main ()
14205 {
14206   int s;
14207   wait (&s);
14208   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (ac_try="$ac_compile"
14215 case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_compile") 2>conftest.er1
14221   ac_status=$?
14222   grep -v '^ *+' conftest.er1 >conftest.err
14223   rm -f conftest.er1
14224   cat conftest.err >&5
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } &&
14227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228   { (case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233   (eval "$ac_try") 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; } &&
14237          { ac_try='test -s conftest.$ac_objext'
14238   { (case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243   (eval "$ac_try") 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247   ac_cv_header_sys_wait_h=yes
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252         ac_cv_header_sys_wait_h=no
14253 fi
14254
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 fi
14257 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14258 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14259 if test $ac_cv_header_sys_wait_h = yes; then
14260
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_SYS_WAIT_H 1
14263 _ACEOF
14264
14265 fi
14266
14267 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14268 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14269 if test "${ac_cv_header_time+set}" = set; then
14270   echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272   cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 #include <sys/types.h>
14279 #include <sys/time.h>
14280 #include <time.h>
14281
14282 int
14283 main ()
14284 {
14285 if ((struct tm *) 0)
14286 return 0;
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (ac_try="$ac_compile"
14293 case "(($ac_try" in
14294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295   *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298   (eval "$ac_compile") 2>conftest.er1
14299   ac_status=$?
14300   grep -v '^ *+' conftest.er1 >conftest.err
14301   rm -f conftest.er1
14302   cat conftest.err >&5
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } &&
14305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14306   { (case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311   (eval "$ac_try") 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; } &&
14315          { ac_try='test -s conftest.$ac_objext'
14316   { (case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321   (eval "$ac_try") 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   ac_cv_header_time=yes
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330         ac_cv_header_time=no
14331 fi
14332
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14336 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14337 if test $ac_cv_header_time = yes; then
14338
14339 cat >>confdefs.h <<\_ACEOF
14340 #define TIME_WITH_SYS_TIME 1
14341 _ACEOF
14342
14343 fi
14344
14345
14346
14347
14348
14349
14350
14351
14352 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14353 do
14354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14356   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 fi
14361 ac_res=`eval echo '${'$as_ac_Header'}'`
14362                { echo "$as_me:$LINENO: result: $ac_res" >&5
14363 echo "${ECHO_T}$ac_res" >&6; }
14364 else
14365   # Is the header compilable?
14366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h.  */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h.  */
14374 $ac_includes_default
14375 #include <$ac_header>
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_compile") 2>conftest.er1
14385   ac_status=$?
14386   grep -v '^ *+' conftest.er1 >conftest.err
14387   rm -f conftest.er1
14388   cat conftest.err >&5
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392   { (case "(($ac_try" in
14393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394   *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397   (eval "$ac_try") 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; } &&
14401          { ac_try='test -s conftest.$ac_objext'
14402   { (case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407   (eval "$ac_try") 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); }; }; then
14411   ac_header_compiler=yes
14412 else
14413   echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14415
14416         ac_header_compiler=no
14417 fi
14418
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14421 echo "${ECHO_T}$ac_header_compiler" >&6; }
14422
14423 # Is the header present?
14424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14426 cat >conftest.$ac_ext <<_ACEOF
14427 /* confdefs.h.  */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h.  */
14432 #include <$ac_header>
14433 _ACEOF
14434 if { (ac_try="$ac_cpp conftest.$ac_ext"
14435 case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14441   ac_status=$?
14442   grep -v '^ *+' conftest.er1 >conftest.err
14443   rm -f conftest.er1
14444   cat conftest.err >&5
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } >/dev/null; then
14447   if test -s conftest.err; then
14448     ac_cpp_err=$ac_c_preproc_warn_flag
14449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14450   else
14451     ac_cpp_err=
14452   fi
14453 else
14454   ac_cpp_err=yes
14455 fi
14456 if test -z "$ac_cpp_err"; then
14457   ac_header_preproc=yes
14458 else
14459   echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462   ac_header_preproc=no
14463 fi
14464
14465 rm -f conftest.err conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14467 echo "${ECHO_T}$ac_header_preproc" >&6; }
14468
14469 # So?  What about this header?
14470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14471   yes:no: )
14472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14476     ac_header_preproc=yes
14477     ;;
14478   no:yes:* )
14479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14491     ( cat <<\_ASBOX
14492 ## ----------------------------------- ##
14493 ## Report this to llvmbugs@cs.uiuc.edu ##
14494 ## ----------------------------------- ##
14495 _ASBOX
14496      ) | sed "s/^/$as_me: WARNING:     /" >&2
14497     ;;
14498 esac
14499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502   echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504   eval "$as_ac_Header=\$ac_header_preproc"
14505 fi
14506 ac_res=`eval echo '${'$as_ac_Header'}'`
14507                { echo "$as_me:$LINENO: result: $ac_res" >&5
14508 echo "${ECHO_T}$ac_res" >&6; }
14509
14510 fi
14511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14512   cat >>confdefs.h <<_ACEOF
14513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14514 _ACEOF
14515
14516 fi
14517
14518 done
14519
14520
14521
14522
14523
14524
14525
14526 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14527 do
14528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14530   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 fi
14535 ac_res=`eval echo '${'$as_ac_Header'}'`
14536                { echo "$as_me:$LINENO: result: $ac_res" >&5
14537 echo "${ECHO_T}$ac_res" >&6; }
14538 else
14539   # Is the header compilable?
14540 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548 $ac_includes_default
14549 #include <$ac_header>
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (ac_try="$ac_compile"
14553 case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_compile") 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } &&
14565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14566   { (case "(($ac_try" in
14567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568   *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571   (eval "$ac_try") 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; } &&
14575          { ac_try='test -s conftest.$ac_objext'
14576   { (case "(($ac_try" in
14577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578   *) ac_try_echo=$ac_try;;
14579 esac
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581   (eval "$ac_try") 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; }; then
14585   ac_header_compiler=yes
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590         ac_header_compiler=no
14591 fi
14592
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595 echo "${ECHO_T}$ac_header_compiler" >&6; }
14596
14597 # Is the header present?
14598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h.  */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h.  */
14606 #include <$ac_header>
14607 _ACEOF
14608 if { (ac_try="$ac_cpp conftest.$ac_ext"
14609 case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14615   ac_status=$?
14616   grep -v '^ *+' conftest.er1 >conftest.err
14617   rm -f conftest.er1
14618   cat conftest.err >&5
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } >/dev/null; then
14621   if test -s conftest.err; then
14622     ac_cpp_err=$ac_c_preproc_warn_flag
14623     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14624   else
14625     ac_cpp_err=
14626   fi
14627 else
14628   ac_cpp_err=yes
14629 fi
14630 if test -z "$ac_cpp_err"; then
14631   ac_header_preproc=yes
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636   ac_header_preproc=no
14637 fi
14638
14639 rm -f conftest.err conftest.$ac_ext
14640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14641 echo "${ECHO_T}$ac_header_preproc" >&6; }
14642
14643 # So?  What about this header?
14644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14645   yes:no: )
14646     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14650     ac_header_preproc=yes
14651     ;;
14652   no:yes:* )
14653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14655     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14656 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14657     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14659     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14660 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14663     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14665     ( cat <<\_ASBOX
14666 ## ----------------------------------- ##
14667 ## Report this to llvmbugs@cs.uiuc.edu ##
14668 ## ----------------------------------- ##
14669 _ASBOX
14670      ) | sed "s/^/$as_me: WARNING:     /" >&2
14671     ;;
14672 esac
14673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676   echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678   eval "$as_ac_Header=\$ac_header_preproc"
14679 fi
14680 ac_res=`eval echo '${'$as_ac_Header'}'`
14681                { echo "$as_me:$LINENO: result: $ac_res" >&5
14682 echo "${ECHO_T}$ac_res" >&6; }
14683
14684 fi
14685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14686   cat >>confdefs.h <<_ACEOF
14687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14688 _ACEOF
14689
14690 fi
14691
14692 done
14693
14694
14695
14696 for ac_header in utime.h windows.h
14697 do
14698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14700   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14703   echo $ECHO_N "(cached) $ECHO_C" >&6
14704 fi
14705 ac_res=`eval echo '${'$as_ac_Header'}'`
14706                { echo "$as_me:$LINENO: result: $ac_res" >&5
14707 echo "${ECHO_T}$ac_res" >&6; }
14708 else
14709   # Is the header compilable?
14710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14712 cat >conftest.$ac_ext <<_ACEOF
14713 /* confdefs.h.  */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h.  */
14718 $ac_includes_default
14719 #include <$ac_header>
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (ac_try="$ac_compile"
14723 case "(($ac_try" in
14724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725   *) ac_try_echo=$ac_try;;
14726 esac
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728   (eval "$ac_compile") 2>conftest.er1
14729   ac_status=$?
14730   grep -v '^ *+' conftest.er1 >conftest.err
14731   rm -f conftest.er1
14732   cat conftest.err >&5
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); } &&
14735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14736   { (case "(($ac_try" in
14737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738   *) ac_try_echo=$ac_try;;
14739 esac
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741   (eval "$ac_try") 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); }; } &&
14745          { ac_try='test -s conftest.$ac_objext'
14746   { (case "(($ac_try" in
14747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748   *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751   (eval "$ac_try") 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   ac_header_compiler=yes
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760         ac_header_compiler=no
14761 fi
14762
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14765 echo "${ECHO_T}$ac_header_compiler" >&6; }
14766
14767 # Is the header present?
14768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14770 cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h.  */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h.  */
14776 #include <$ac_header>
14777 _ACEOF
14778 if { (ac_try="$ac_cpp conftest.$ac_ext"
14779 case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14785   ac_status=$?
14786   grep -v '^ *+' conftest.er1 >conftest.err
14787   rm -f conftest.er1
14788   cat conftest.err >&5
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); } >/dev/null; then
14791   if test -s conftest.err; then
14792     ac_cpp_err=$ac_c_preproc_warn_flag
14793     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14794   else
14795     ac_cpp_err=
14796   fi
14797 else
14798   ac_cpp_err=yes
14799 fi
14800 if test -z "$ac_cpp_err"; then
14801   ac_header_preproc=yes
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806   ac_header_preproc=no
14807 fi
14808
14809 rm -f conftest.err conftest.$ac_ext
14810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14811 echo "${ECHO_T}$ac_header_preproc" >&6; }
14812
14813 # So?  What about this header?
14814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14815   yes:no: )
14816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14820     ac_header_preproc=yes
14821     ;;
14822   no:yes:* )
14823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14835     ( cat <<\_ASBOX
14836 ## ----------------------------------- ##
14837 ## Report this to llvmbugs@cs.uiuc.edu ##
14838 ## ----------------------------------- ##
14839 _ASBOX
14840      ) | sed "s/^/$as_me: WARNING:     /" >&2
14841     ;;
14842 esac
14843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   eval "$as_ac_Header=\$ac_header_preproc"
14849 fi
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851                { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14853
14854 fi
14855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14856   cat >>confdefs.h <<_ACEOF
14857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14858 _ACEOF
14859
14860 fi
14861
14862 done
14863
14864
14865
14866
14867
14868
14869 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14870 do
14871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14873   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 fi
14878 ac_res=`eval echo '${'$as_ac_Header'}'`
14879                { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14881 else
14882   # Is the header compilable?
14883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14885 cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h.  */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h.  */
14891 $ac_includes_default
14892 #include <$ac_header>
14893 _ACEOF
14894 rm -f conftest.$ac_objext
14895 if { (ac_try="$ac_compile"
14896 case "(($ac_try" in
14897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898   *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901   (eval "$ac_compile") 2>conftest.er1
14902   ac_status=$?
14903   grep -v '^ *+' conftest.er1 >conftest.err
14904   rm -f conftest.er1
14905   cat conftest.err >&5
14906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907   (exit $ac_status); } &&
14908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14909   { (case "(($ac_try" in
14910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911   *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914   (eval "$ac_try") 2>&5
14915   ac_status=$?
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); }; } &&
14918          { ac_try='test -s conftest.$ac_objext'
14919   { (case "(($ac_try" in
14920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921   *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924   (eval "$ac_try") 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; }; then
14928   ac_header_compiler=yes
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933         ac_header_compiler=no
14934 fi
14935
14936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938 echo "${ECHO_T}$ac_header_compiler" >&6; }
14939
14940 # Is the header present?
14941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949 #include <$ac_header>
14950 _ACEOF
14951 if { (ac_try="$ac_cpp conftest.$ac_ext"
14952 case "(($ac_try" in
14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954   *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14958   ac_status=$?
14959   grep -v '^ *+' conftest.er1 >conftest.err
14960   rm -f conftest.er1
14961   cat conftest.err >&5
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } >/dev/null; then
14964   if test -s conftest.err; then
14965     ac_cpp_err=$ac_c_preproc_warn_flag
14966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14967   else
14968     ac_cpp_err=
14969   fi
14970 else
14971   ac_cpp_err=yes
14972 fi
14973 if test -z "$ac_cpp_err"; then
14974   ac_header_preproc=yes
14975 else
14976   echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14978
14979   ac_header_preproc=no
14980 fi
14981
14982 rm -f conftest.err conftest.$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14984 echo "${ECHO_T}$ac_header_preproc" >&6; }
14985
14986 # So?  What about this header?
14987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14988   yes:no: )
14989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14993     ac_header_preproc=yes
14994     ;;
14995   no:yes:* )
14996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15008     ( cat <<\_ASBOX
15009 ## ----------------------------------- ##
15010 ## Report this to llvmbugs@cs.uiuc.edu ##
15011 ## ----------------------------------- ##
15012 _ASBOX
15013      ) | sed "s/^/$as_me: WARNING:     /" >&2
15014     ;;
15015 esac
15016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019   echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021   eval "$as_ac_Header=\$ac_header_preproc"
15022 fi
15023 ac_res=`eval echo '${'$as_ac_Header'}'`
15024                { echo "$as_me:$LINENO: result: $ac_res" >&5
15025 echo "${ECHO_T}$ac_res" >&6; }
15026
15027 fi
15028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15029   cat >>confdefs.h <<_ACEOF
15030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15031 _ACEOF
15032
15033 fi
15034
15035 done
15036
15037
15038
15039
15040
15041 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15042 do
15043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15045   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 fi
15050 ac_res=`eval echo '${'$as_ac_Header'}'`
15051                { echo "$as_me:$LINENO: result: $ac_res" >&5
15052 echo "${ECHO_T}$ac_res" >&6; }
15053 else
15054   # Is the header compilable?
15055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063 $ac_includes_default
15064 #include <$ac_header>
15065 _ACEOF
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070   *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073   (eval "$ac_compile") 2>conftest.er1
15074   ac_status=$?
15075   grep -v '^ *+' conftest.er1 >conftest.err
15076   rm -f conftest.er1
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081   { (case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_try") 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; } &&
15090          { ac_try='test -s conftest.$ac_objext'
15091   { (case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_try") 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; }; then
15100   ac_header_compiler=yes
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105         ac_header_compiler=no
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15110 echo "${ECHO_T}$ac_header_compiler" >&6; }
15111
15112 # Is the header present?
15113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121 #include <$ac_header>
15122 _ACEOF
15123 if { (ac_try="$ac_cpp conftest.$ac_ext"
15124 case "(($ac_try" in
15125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126   *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15130   ac_status=$?
15131   grep -v '^ *+' conftest.er1 >conftest.err
15132   rm -f conftest.er1
15133   cat conftest.err >&5
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } >/dev/null; then
15136   if test -s conftest.err; then
15137     ac_cpp_err=$ac_c_preproc_warn_flag
15138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15139   else
15140     ac_cpp_err=
15141   fi
15142 else
15143   ac_cpp_err=yes
15144 fi
15145 if test -z "$ac_cpp_err"; then
15146   ac_header_preproc=yes
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151   ac_header_preproc=no
15152 fi
15153
15154 rm -f conftest.err conftest.$ac_ext
15155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15156 echo "${ECHO_T}$ac_header_preproc" >&6; }
15157
15158 # So?  What about this header?
15159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15160   yes:no: )
15161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15165     ac_header_preproc=yes
15166     ;;
15167   no:yes:* )
15168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15180     ( cat <<\_ASBOX
15181 ## ----------------------------------- ##
15182 ## Report this to llvmbugs@cs.uiuc.edu ##
15183 ## ----------------------------------- ##
15184 _ASBOX
15185      ) | sed "s/^/$as_me: WARNING:     /" >&2
15186     ;;
15187 esac
15188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   eval "$as_ac_Header=\$ac_header_preproc"
15194 fi
15195 ac_res=`eval echo '${'$as_ac_Header'}'`
15196                { echo "$as_me:$LINENO: result: $ac_res" >&5
15197 echo "${ECHO_T}$ac_res" >&6; }
15198
15199 fi
15200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15201   cat >>confdefs.h <<_ACEOF
15202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15203 _ACEOF
15204
15205 fi
15206
15207 done
15208
15209
15210 for ac_header in valgrind/valgrind.h
15211 do
15212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15214   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 fi
15219 ac_res=`eval echo '${'$as_ac_Header'}'`
15220                { echo "$as_me:$LINENO: result: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15222 else
15223   # Is the header compilable?
15224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15226 cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h.  */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h.  */
15232 $ac_includes_default
15233 #include <$ac_header>
15234 _ACEOF
15235 rm -f conftest.$ac_objext
15236 if { (ac_try="$ac_compile"
15237 case "(($ac_try" in
15238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239   *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242   (eval "$ac_compile") 2>conftest.er1
15243   ac_status=$?
15244   grep -v '^ *+' conftest.er1 >conftest.err
15245   rm -f conftest.er1
15246   cat conftest.err >&5
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); } &&
15249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250   { (case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_try") 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; } &&
15259          { ac_try='test -s conftest.$ac_objext'
15260   { (case "(($ac_try" in
15261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262   *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265   (eval "$ac_try") 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; }; then
15269   ac_header_compiler=yes
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274         ac_header_compiler=no
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 echo "${ECHO_T}$ac_header_compiler" >&6; }
15280
15281 # Is the header present?
15282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290 #include <$ac_header>
15291 _ACEOF
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295   *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15299   ac_status=$?
15300   grep -v '^ *+' conftest.er1 >conftest.err
15301   rm -f conftest.er1
15302   cat conftest.err >&5
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } >/dev/null; then
15305   if test -s conftest.err; then
15306     ac_cpp_err=$ac_c_preproc_warn_flag
15307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15308   else
15309     ac_cpp_err=
15310   fi
15311 else
15312   ac_cpp_err=yes
15313 fi
15314 if test -z "$ac_cpp_err"; then
15315   ac_header_preproc=yes
15316 else
15317   echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15319
15320   ac_header_preproc=no
15321 fi
15322
15323 rm -f conftest.err conftest.$ac_ext
15324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15325 echo "${ECHO_T}$ac_header_preproc" >&6; }
15326
15327 # So?  What about this header?
15328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15329   yes:no: )
15330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15334     ac_header_preproc=yes
15335     ;;
15336   no:yes:* )
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15349     ( cat <<\_ASBOX
15350 ## ----------------------------------- ##
15351 ## Report this to llvmbugs@cs.uiuc.edu ##
15352 ## ----------------------------------- ##
15353 _ASBOX
15354      ) | sed "s/^/$as_me: WARNING:     /" >&2
15355     ;;
15356 esac
15357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360   echo $ECHO_N "(cached) $ECHO_C" >&6
15361 else
15362   eval "$as_ac_Header=\$ac_header_preproc"
15363 fi
15364 ac_res=`eval echo '${'$as_ac_Header'}'`
15365                { echo "$as_me:$LINENO: result: $ac_res" >&5
15366 echo "${ECHO_T}$ac_res" >&6; }
15367
15368 fi
15369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15370   cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15372 _ACEOF
15373
15374 fi
15375
15376 done
15377
15378
15379 for ac_header in fenv.h
15380 do
15381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15383   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 fi
15388 ac_res=`eval echo '${'$as_ac_Header'}'`
15389                { echo "$as_me:$LINENO: result: $ac_res" >&5
15390 echo "${ECHO_T}$ac_res" >&6; }
15391 else
15392   # Is the header compilable?
15393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15395 cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 $ac_includes_default
15402 #include <$ac_header>
15403 _ACEOF
15404 rm -f conftest.$ac_objext
15405 if { (ac_try="$ac_compile"
15406 case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_compile") 2>conftest.er1
15412   ac_status=$?
15413   grep -v '^ *+' conftest.er1 >conftest.err
15414   rm -f conftest.er1
15415   cat conftest.err >&5
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } &&
15418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419   { (case "(($ac_try" in
15420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421   *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424   (eval "$ac_try") 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; } &&
15428          { ac_try='test -s conftest.$ac_objext'
15429   { (case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_try") 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; }; then
15438   ac_header_compiler=yes
15439 else
15440   echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15442
15443         ac_header_compiler=no
15444 fi
15445
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15448 echo "${ECHO_T}$ac_header_compiler" >&6; }
15449
15450 # Is the header present?
15451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h.  */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h.  */
15459 #include <$ac_header>
15460 _ACEOF
15461 if { (ac_try="$ac_cpp conftest.$ac_ext"
15462 case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15468   ac_status=$?
15469   grep -v '^ *+' conftest.er1 >conftest.err
15470   rm -f conftest.er1
15471   cat conftest.err >&5
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); } >/dev/null; then
15474   if test -s conftest.err; then
15475     ac_cpp_err=$ac_c_preproc_warn_flag
15476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15477   else
15478     ac_cpp_err=
15479   fi
15480 else
15481   ac_cpp_err=yes
15482 fi
15483 if test -z "$ac_cpp_err"; then
15484   ac_header_preproc=yes
15485 else
15486   echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15488
15489   ac_header_preproc=no
15490 fi
15491
15492 rm -f conftest.err conftest.$ac_ext
15493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15494 echo "${ECHO_T}$ac_header_preproc" >&6; }
15495
15496 # So?  What about this header?
15497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15498   yes:no: )
15499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15503     ac_header_preproc=yes
15504     ;;
15505   no:yes:* )
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15508     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15509 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15512     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15513 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15516     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15518     ( cat <<\_ASBOX
15519 ## ----------------------------------- ##
15520 ## Report this to llvmbugs@cs.uiuc.edu ##
15521 ## ----------------------------------- ##
15522 _ASBOX
15523      ) | sed "s/^/$as_me: WARNING:     /" >&2
15524     ;;
15525 esac
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   eval "$as_ac_Header=\$ac_header_preproc"
15532 fi
15533 ac_res=`eval echo '${'$as_ac_Header'}'`
15534                { echo "$as_me:$LINENO: result: $ac_res" >&5
15535 echo "${ECHO_T}$ac_res" >&6; }
15536
15537 fi
15538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15539   cat >>confdefs.h <<_ACEOF
15540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15541 _ACEOF
15542
15543 fi
15544
15545 done
15546
15547 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15548
15549 for ac_header in pthread.h
15550 do
15551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556   echo $ECHO_N "(cached) $ECHO_C" >&6
15557 fi
15558 ac_res=`eval echo '${'$as_ac_Header'}'`
15559                { echo "$as_me:$LINENO: result: $ac_res" >&5
15560 echo "${ECHO_T}$ac_res" >&6; }
15561 else
15562   # Is the header compilable?
15563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571 $ac_includes_default
15572 #include <$ac_header>
15573 _ACEOF
15574 rm -f conftest.$ac_objext
15575 if { (ac_try="$ac_compile"
15576 case "(($ac_try" in
15577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578   *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581   (eval "$ac_compile") 2>conftest.er1
15582   ac_status=$?
15583   grep -v '^ *+' conftest.er1 >conftest.err
15584   rm -f conftest.er1
15585   cat conftest.err >&5
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); } &&
15588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589   { (case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_try") 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; } &&
15598          { ac_try='test -s conftest.$ac_objext'
15599   { (case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604   (eval "$ac_try") 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   ac_header_compiler=yes
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613         ac_header_compiler=no
15614 fi
15615
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15618 echo "${ECHO_T}$ac_header_compiler" >&6; }
15619
15620 # Is the header present?
15621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15623 cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629 #include <$ac_header>
15630 _ACEOF
15631 if { (ac_try="$ac_cpp conftest.$ac_ext"
15632 case "(($ac_try" in
15633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634   *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } >/dev/null; then
15644   if test -s conftest.err; then
15645     ac_cpp_err=$ac_c_preproc_warn_flag
15646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15647   else
15648     ac_cpp_err=
15649   fi
15650 else
15651   ac_cpp_err=yes
15652 fi
15653 if test -z "$ac_cpp_err"; then
15654   ac_header_preproc=yes
15655 else
15656   echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659   ac_header_preproc=no
15660 fi
15661
15662 rm -f conftest.err conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6; }
15665
15666 # So?  What about this header?
15667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15668   yes:no: )
15669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673     ac_header_preproc=yes
15674     ;;
15675   no:yes:* )
15676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15688     ( cat <<\_ASBOX
15689 ## ----------------------------------- ##
15690 ## Report this to llvmbugs@cs.uiuc.edu ##
15691 ## ----------------------------------- ##
15692 _ASBOX
15693      ) | sed "s/^/$as_me: WARNING:     /" >&2
15694     ;;
15695 esac
15696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   eval "$as_ac_Header=\$ac_header_preproc"
15702 fi
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704                { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15706
15707 fi
15708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15709   cat >>confdefs.h <<_ACEOF
15710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15711 _ACEOF
15712  HAVE_PTHREAD=1
15713
15714 else
15715   HAVE_PTHREAD=0
15716
15717 fi
15718
15719 done
15720
15721 else
15722   HAVE_PTHREAD=0
15723
15724 fi
15725
15726 if test "$llvm_cv_enable_libffi" = "yes" ; then
15727
15728
15729 for ac_header in ffi.h ffi/ffi.h
15730 do
15731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736   echo $ECHO_N "(cached) $ECHO_C" >&6
15737 fi
15738 ac_res=`eval echo '${'$as_ac_Header'}'`
15739                { echo "$as_me:$LINENO: result: $ac_res" >&5
15740 echo "${ECHO_T}$ac_res" >&6; }
15741 else
15742   # Is the header compilable?
15743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751 $ac_includes_default
15752 #include <$ac_header>
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (ac_try="$ac_compile"
15756 case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_compile") 2>conftest.er1
15762   ac_status=$?
15763   grep -v '^ *+' conftest.er1 >conftest.err
15764   rm -f conftest.er1
15765   cat conftest.err >&5
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); } &&
15768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769   { (case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_try") 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; } &&
15778          { ac_try='test -s conftest.$ac_objext'
15779   { (case "(($ac_try" in
15780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781   *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784   (eval "$ac_try") 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; }; then
15788   ac_header_compiler=yes
15789 else
15790   echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793         ac_header_compiler=no
15794 fi
15795
15796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15798 echo "${ECHO_T}$ac_header_compiler" >&6; }
15799
15800 # Is the header present?
15801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809 #include <$ac_header>
15810 _ACEOF
15811 if { (ac_try="$ac_cpp conftest.$ac_ext"
15812 case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15818   ac_status=$?
15819   grep -v '^ *+' conftest.er1 >conftest.err
15820   rm -f conftest.er1
15821   cat conftest.err >&5
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } >/dev/null; then
15824   if test -s conftest.err; then
15825     ac_cpp_err=$ac_c_preproc_warn_flag
15826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15827   else
15828     ac_cpp_err=
15829   fi
15830 else
15831   ac_cpp_err=yes
15832 fi
15833 if test -z "$ac_cpp_err"; then
15834   ac_header_preproc=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839   ac_header_preproc=no
15840 fi
15841
15842 rm -f conftest.err conftest.$ac_ext
15843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15844 echo "${ECHO_T}$ac_header_preproc" >&6; }
15845
15846 # So?  What about this header?
15847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15848   yes:no: )
15849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15853     ac_header_preproc=yes
15854     ;;
15855   no:yes:* )
15856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15868     ( cat <<\_ASBOX
15869 ## ----------------------------------- ##
15870 ## Report this to llvmbugs@cs.uiuc.edu ##
15871 ## ----------------------------------- ##
15872 _ASBOX
15873      ) | sed "s/^/$as_me: WARNING:     /" >&2
15874     ;;
15875 esac
15876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881   eval "$as_ac_Header=\$ac_header_preproc"
15882 fi
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884                { echo "$as_me:$LINENO: result: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15886
15887 fi
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889   cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15891 _ACEOF
15892
15893 fi
15894
15895 done
15896
15897 fi
15898
15899
15900 for ac_header in CrashReporterClient.h
15901 do
15902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907   echo $ECHO_N "(cached) $ECHO_C" >&6
15908 fi
15909 ac_res=`eval echo '${'$as_ac_Header'}'`
15910                { echo "$as_me:$LINENO: result: $ac_res" >&5
15911 echo "${ECHO_T}$ac_res" >&6; }
15912 else
15913   # Is the header compilable?
15914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922 $ac_includes_default
15923 #include <$ac_header>
15924 _ACEOF
15925 rm -f conftest.$ac_objext
15926 if { (ac_try="$ac_compile"
15927 case "(($ac_try" in
15928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929   *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932   (eval "$ac_compile") 2>conftest.er1
15933   ac_status=$?
15934   grep -v '^ *+' conftest.er1 >conftest.err
15935   rm -f conftest.er1
15936   cat conftest.err >&5
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } &&
15939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15940   { (case "(($ac_try" in
15941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942   *) ac_try_echo=$ac_try;;
15943 esac
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945   (eval "$ac_try") 2>&5
15946   ac_status=$?
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); }; } &&
15949          { ac_try='test -s conftest.$ac_objext'
15950   { (case "(($ac_try" in
15951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952   *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955   (eval "$ac_try") 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; }; then
15959   ac_header_compiler=yes
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964         ac_header_compiler=no
15965 fi
15966
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15969 echo "${ECHO_T}$ac_header_compiler" >&6; }
15970
15971 # Is the header present?
15972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 #include <$ac_header>
15981 _ACEOF
15982 if { (ac_try="$ac_cpp conftest.$ac_ext"
15983 case "(($ac_try" in
15984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985   *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15989   ac_status=$?
15990   grep -v '^ *+' conftest.er1 >conftest.err
15991   rm -f conftest.er1
15992   cat conftest.err >&5
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); } >/dev/null; then
15995   if test -s conftest.err; then
15996     ac_cpp_err=$ac_c_preproc_warn_flag
15997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15998   else
15999     ac_cpp_err=
16000   fi
16001 else
16002   ac_cpp_err=yes
16003 fi
16004 if test -z "$ac_cpp_err"; then
16005   ac_header_preproc=yes
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010   ac_header_preproc=no
16011 fi
16012
16013 rm -f conftest.err conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16015 echo "${ECHO_T}$ac_header_preproc" >&6; }
16016
16017 # So?  What about this header?
16018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16019   yes:no: )
16020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16024     ac_header_preproc=yes
16025     ;;
16026   no:yes:* )
16027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16039     ( cat <<\_ASBOX
16040 ## ----------------------------------- ##
16041 ## Report this to llvmbugs@cs.uiuc.edu ##
16042 ## ----------------------------------- ##
16043 _ASBOX
16044      ) | sed "s/^/$as_me: WARNING:     /" >&2
16045     ;;
16046 esac
16047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16050   echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052   eval "$as_ac_Header=\$ac_header_preproc"
16053 fi
16054 ac_res=`eval echo '${'$as_ac_Header'}'`
16055                { echo "$as_me:$LINENO: result: $ac_res" >&5
16056 echo "${ECHO_T}$ac_res" >&6; }
16057
16058 fi
16059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16060   cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16062 _ACEOF
16063
16064 fi
16065
16066 done
16067
16068
16069 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16070 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h.  */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h.  */
16077 extern const char *__crashreporter_info__;
16078       int main() {
16079         __crashreporter_info__ = "test";
16080         return 0;
16081       }
16082
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088   *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091   (eval "$ac_link") 2>conftest.er1
16092   ac_status=$?
16093   grep -v '^ *+' conftest.er1 >conftest.err
16094   rm -f conftest.er1
16095   cat conftest.err >&5
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); } &&
16098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16099   { (case "(($ac_try" in
16100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101   *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104   (eval "$ac_try") 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; } &&
16108          { ac_try='test -s conftest$ac_exeext'
16109   { (case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_try") 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; }; then
16118   { echo "$as_me:$LINENO: result: yes" >&5
16119 echo "${ECHO_T}yes" >&6; }
16120
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_CRASHREPORTER_INFO 1
16123 _ACEOF
16124
16125 else
16126   echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129         { echo "$as_me:$LINENO: result: no" >&5
16130 echo "${ECHO_T}no" >&6; }
16131
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE_CRASHREPORTER_INFO 0
16134 _ACEOF
16135
16136 fi
16137
16138 rm -f core conftest.err conftest.$ac_objext \
16139       conftest$ac_exeext conftest.$ac_ext
16140
16141
16142
16143
16144   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16145 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16146 if test "${ac_cv_huge_val_sanity+set}" = set; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149
16150     ac_ext=cpp
16151 ac_cpp='$CXXCPP $CPPFLAGS'
16152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16155
16156     ac_save_CXXFLAGS=$CXXFLAGS
16157     CXXFLAGS=-pedantic
16158     if test "$cross_compiling" = yes; then
16159   ac_cv_huge_val_sanity=yes
16160 else
16161   cat >conftest.$ac_ext <<_ACEOF
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167 #include <math.h>
16168 int
16169 main ()
16170 {
16171 double x = HUGE_VAL; return x != x;
16172   ;
16173   return 0;
16174 }
16175 _ACEOF
16176 rm -f conftest$ac_exeext
16177 if { (ac_try="$ac_link"
16178 case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_link") 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16187   { (case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_try") 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; }; then
16196   ac_cv_huge_val_sanity=yes
16197 else
16198   echo "$as_me: program exited with status $ac_status" >&5
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16201
16202 ( exit $ac_status )
16203 ac_cv_huge_val_sanity=no
16204 fi
16205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16206 fi
16207
16208
16209     CXXFLAGS=$ac_save_CXXFLAGS
16210     ac_ext=c
16211 ac_cpp='$CPP $CPPFLAGS'
16212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16215
16216
16217 fi
16218 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16219 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16220   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16221
16222
16223 { echo "$as_me:$LINENO: checking for pid_t" >&5
16224 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16225 if test "${ac_cv_type_pid_t+set}" = set; then
16226   echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228   cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h.  */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h.  */
16234 $ac_includes_default
16235 typedef pid_t ac__type_new_;
16236 int
16237 main ()
16238 {
16239 if ((ac__type_new_ *) 0)
16240   return 0;
16241 if (sizeof (ac__type_new_))
16242   return 0;
16243   ;
16244   return 0;
16245 }
16246 _ACEOF
16247 rm -f conftest.$ac_objext
16248 if { (ac_try="$ac_compile"
16249 case "(($ac_try" in
16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251   *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254   (eval "$ac_compile") 2>conftest.er1
16255   ac_status=$?
16256   grep -v '^ *+' conftest.er1 >conftest.err
16257   rm -f conftest.er1
16258   cat conftest.err >&5
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); } &&
16261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262   { (case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_try") 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; } &&
16271          { ac_try='test -s conftest.$ac_objext'
16272   { (case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_try") 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); }; }; then
16281   ac_cv_type_pid_t=yes
16282 else
16283   echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286         ac_cv_type_pid_t=no
16287 fi
16288
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16292 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16293 if test $ac_cv_type_pid_t = yes; then
16294   :
16295 else
16296
16297 cat >>confdefs.h <<_ACEOF
16298 #define pid_t int
16299 _ACEOF
16300
16301 fi
16302
16303 { echo "$as_me:$LINENO: checking for size_t" >&5
16304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16305 if test "${ac_cv_type_size_t+set}" = set; then
16306   echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308   cat >conftest.$ac_ext <<_ACEOF
16309 /* confdefs.h.  */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h.  */
16314 $ac_includes_default
16315 typedef size_t ac__type_new_;
16316 int
16317 main ()
16318 {
16319 if ((ac__type_new_ *) 0)
16320   return 0;
16321 if (sizeof (ac__type_new_))
16322   return 0;
16323   ;
16324   return 0;
16325 }
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (ac_try="$ac_compile"
16329 case "(($ac_try" in
16330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331   *) ac_try_echo=$ac_try;;
16332 esac
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334   (eval "$ac_compile") 2>conftest.er1
16335   ac_status=$?
16336   grep -v '^ *+' conftest.er1 >conftest.err
16337   rm -f conftest.er1
16338   cat conftest.err >&5
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); } &&
16341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16342   { (case "(($ac_try" in
16343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344   *) ac_try_echo=$ac_try;;
16345 esac
16346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347   (eval "$ac_try") 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; } &&
16351          { ac_try='test -s conftest.$ac_objext'
16352   { (case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_try") 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; }; then
16361   ac_cv_type_size_t=yes
16362 else
16363   echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366         ac_cv_type_size_t=no
16367 fi
16368
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370 fi
16371 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16372 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16373 if test $ac_cv_type_size_t = yes; then
16374   :
16375 else
16376
16377 cat >>confdefs.h <<_ACEOF
16378 #define size_t unsigned int
16379 _ACEOF
16380
16381 fi
16382
16383
16384 cat >>confdefs.h <<_ACEOF
16385 #define RETSIGTYPE void
16386 _ACEOF
16387
16388 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16389 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16390 if test "${ac_cv_struct_tm+set}" = set; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399 #include <sys/types.h>
16400 #include <time.h>
16401
16402 int
16403 main ()
16404 {
16405 struct tm *tp; tp->tm_sec;
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 rm -f conftest.$ac_objext
16411 if { (ac_try="$ac_compile"
16412 case "(($ac_try" in
16413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414   *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417   (eval "$ac_compile") 2>conftest.er1
16418   ac_status=$?
16419   grep -v '^ *+' conftest.er1 >conftest.err
16420   rm -f conftest.er1
16421   cat conftest.err >&5
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); } &&
16424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16425   { (case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_try") 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; } &&
16434          { ac_try='test -s conftest.$ac_objext'
16435   { (case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_try") 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; }; then
16444   ac_cv_struct_tm=time.h
16445 else
16446   echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449         ac_cv_struct_tm=sys/time.h
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 fi
16454 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16455 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16456 if test $ac_cv_struct_tm = sys/time.h; then
16457
16458 cat >>confdefs.h <<\_ACEOF
16459 #define TM_IN_SYS_TIME 1
16460 _ACEOF
16461
16462 fi
16463
16464 { echo "$as_me:$LINENO: checking for int64_t" >&5
16465 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16466 if test "${ac_cv_type_int64_t+set}" = set; then
16467   echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469   cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h.  */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h.  */
16475 $ac_includes_default
16476 typedef int64_t ac__type_new_;
16477 int
16478 main ()
16479 {
16480 if ((ac__type_new_ *) 0)
16481   return 0;
16482 if (sizeof (ac__type_new_))
16483   return 0;
16484   ;
16485   return 0;
16486 }
16487 _ACEOF
16488 rm -f conftest.$ac_objext
16489 if { (ac_try="$ac_compile"
16490 case "(($ac_try" in
16491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492   *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495   (eval "$ac_compile") 2>conftest.er1
16496   ac_status=$?
16497   grep -v '^ *+' conftest.er1 >conftest.err
16498   rm -f conftest.er1
16499   cat conftest.err >&5
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); } &&
16502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16503   { (case "(($ac_try" in
16504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505   *) ac_try_echo=$ac_try;;
16506 esac
16507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508   (eval "$ac_try") 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; } &&
16512          { ac_try='test -s conftest.$ac_objext'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; }; then
16522   ac_cv_type_int64_t=yes
16523 else
16524   echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16526
16527         ac_cv_type_int64_t=no
16528 fi
16529
16530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531 fi
16532 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16533 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16534 if test $ac_cv_type_int64_t = yes; then
16535
16536 cat >>confdefs.h <<_ACEOF
16537 #define HAVE_INT64_T 1
16538 _ACEOF
16539
16540
16541 else
16542   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16543 echo "$as_me: error: Type int64_t required but not found" >&2;}
16544    { (exit 1); exit 1; }; }
16545 fi
16546
16547 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16548 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16549 if test "${ac_cv_type_uint64_t+set}" = set; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552   cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558 $ac_includes_default
16559 typedef uint64_t ac__type_new_;
16560 int
16561 main ()
16562 {
16563 if ((ac__type_new_ *) 0)
16564   return 0;
16565 if (sizeof (ac__type_new_))
16566   return 0;
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_compile") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } &&
16585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586   { (case "(($ac_try" in
16587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588   *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591   (eval "$ac_try") 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; } &&
16595          { ac_try='test -s conftest.$ac_objext'
16596   { (case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_try") 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; }; then
16605   ac_cv_type_uint64_t=yes
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610         ac_cv_type_uint64_t=no
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 fi
16615 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16616 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16617 if test $ac_cv_type_uint64_t = yes; then
16618
16619 cat >>confdefs.h <<_ACEOF
16620 #define HAVE_UINT64_T 1
16621 _ACEOF
16622
16623
16624 else
16625   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16626 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16627 if test "${ac_cv_type_u_int64_t+set}" = set; then
16628   echo $ECHO_N "(cached) $ECHO_C" >&6
16629 else
16630   cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h.  */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h.  */
16636 $ac_includes_default
16637 typedef u_int64_t ac__type_new_;
16638 int
16639 main ()
16640 {
16641 if ((ac__type_new_ *) 0)
16642   return 0;
16643 if (sizeof (ac__type_new_))
16644   return 0;
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_compile") 2>conftest.er1
16657   ac_status=$?
16658   grep -v '^ *+' conftest.er1 >conftest.err
16659   rm -f conftest.er1
16660   cat conftest.err >&5
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); } &&
16663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664   { (case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_try") 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   ac_cv_type_u_int64_t=yes
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688         ac_cv_type_u_int64_t=no
16689 fi
16690
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 fi
16693 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16694 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16695 if test $ac_cv_type_u_int64_t = yes; then
16696
16697 cat >>confdefs.h <<_ACEOF
16698 #define HAVE_U_INT64_T 1
16699 _ACEOF
16700
16701
16702 else
16703   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16704 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16705    { (exit 1); exit 1; }; }
16706 fi
16707
16708 fi
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16720 do
16721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727   cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h.  */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h.  */
16733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16735 #define $ac_func innocuous_$ac_func
16736
16737 /* System header to define __stub macros and hopefully few prototypes,
16738     which can conflict with char $ac_func (); below.
16739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16740     <limits.h> exists even on freestanding compilers.  */
16741
16742 #ifdef __STDC__
16743 # include <limits.h>
16744 #else
16745 # include <assert.h>
16746 #endif
16747
16748 #undef $ac_func
16749
16750 /* Override any GCC internal prototype to avoid an error.
16751    Use char because int might match the return type of a GCC
16752    builtin and then its argument prototype would still apply.  */
16753 #ifdef __cplusplus
16754 extern "C"
16755 #endif
16756 char $ac_func ();
16757 /* The GNU C library defines this for functions which it implements
16758     to always fail with ENOSYS.  Some functions are actually named
16759     something starting with __ and the normal name is an alias.  */
16760 #if defined __stub_$ac_func || defined __stub___$ac_func
16761 choke me
16762 #endif
16763
16764 int
16765 main ()
16766 {
16767 return $ac_func ();
16768   ;
16769   return 0;
16770 }
16771 _ACEOF
16772 rm -f conftest.$ac_objext conftest$ac_exeext
16773 if { (ac_try="$ac_link"
16774 case "(($ac_try" in
16775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776   *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779   (eval "$ac_link") 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } &&
16786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16787   { (case "(($ac_try" in
16788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789   *) ac_try_echo=$ac_try;;
16790 esac
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792   (eval "$ac_try") 2>&5
16793   ac_status=$?
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); }; } &&
16796          { ac_try='test -s conftest$ac_exeext'
16797   { (case "(($ac_try" in
16798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799   *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802   (eval "$ac_try") 2>&5
16803   ac_status=$?
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); }; }; then
16806   eval "$as_ac_var=yes"
16807 else
16808   echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16810
16811         eval "$as_ac_var=no"
16812 fi
16813
16814 rm -f core conftest.err conftest.$ac_objext \
16815       conftest$ac_exeext conftest.$ac_ext
16816 fi
16817 ac_res=`eval echo '${'$as_ac_var'}'`
16818                { echo "$as_me:$LINENO: result: $ac_res" >&5
16819 echo "${ECHO_T}$ac_res" >&6; }
16820 if test `eval echo '${'$as_ac_var'}'` = yes; then
16821   cat >>confdefs.h <<_ACEOF
16822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16823 _ACEOF
16824
16825 fi
16826 done
16827
16828
16829
16830
16831
16832 for ac_func in powf fmodf strtof round
16833 do
16834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16838   echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840   cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h.  */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h.  */
16846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16848 #define $ac_func innocuous_$ac_func
16849
16850 /* System header to define __stub macros and hopefully few prototypes,
16851     which can conflict with char $ac_func (); below.
16852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853     <limits.h> exists even on freestanding compilers.  */
16854
16855 #ifdef __STDC__
16856 # include <limits.h>
16857 #else
16858 # include <assert.h>
16859 #endif
16860
16861 #undef $ac_func
16862
16863 /* Override any GCC internal prototype to avoid an error.
16864    Use char because int might match the return type of a GCC
16865    builtin and then its argument prototype would still apply.  */
16866 #ifdef __cplusplus
16867 extern "C"
16868 #endif
16869 char $ac_func ();
16870 /* The GNU C library defines this for functions which it implements
16871     to always fail with ENOSYS.  Some functions are actually named
16872     something starting with __ and the normal name is an alias.  */
16873 #if defined __stub_$ac_func || defined __stub___$ac_func
16874 choke me
16875 #endif
16876
16877 int
16878 main ()
16879 {
16880 return $ac_func ();
16881   ;
16882   return 0;
16883 }
16884 _ACEOF
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (ac_try="$ac_link"
16887 case "(($ac_try" in
16888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889   *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892   (eval "$ac_link") 2>conftest.er1
16893   ac_status=$?
16894   grep -v '^ *+' conftest.er1 >conftest.err
16895   rm -f conftest.er1
16896   cat conftest.err >&5
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } &&
16899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900   { (case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_try") 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; } &&
16909          { ac_try='test -s conftest$ac_exeext'
16910   { (case "(($ac_try" in
16911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912   *) ac_try_echo=$ac_try;;
16913 esac
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915   (eval "$ac_try") 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; }; then
16919   eval "$as_ac_var=yes"
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924         eval "$as_ac_var=no"
16925 fi
16926
16927 rm -f core conftest.err conftest.$ac_objext \
16928       conftest$ac_exeext conftest.$ac_ext
16929 fi
16930 ac_res=`eval echo '${'$as_ac_var'}'`
16931                { echo "$as_me:$LINENO: result: $ac_res" >&5
16932 echo "${ECHO_T}$ac_res" >&6; }
16933 if test `eval echo '${'$as_ac_var'}'` = yes; then
16934   cat >>confdefs.h <<_ACEOF
16935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16936 _ACEOF
16937
16938 fi
16939 done
16940
16941
16942
16943
16944
16945
16946 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16947 do
16948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16962 #define $ac_func innocuous_$ac_func
16963
16964 /* System header to define __stub macros and hopefully few prototypes,
16965     which can conflict with char $ac_func (); below.
16966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967     <limits.h> exists even on freestanding compilers.  */
16968
16969 #ifdef __STDC__
16970 # include <limits.h>
16971 #else
16972 # include <assert.h>
16973 #endif
16974
16975 #undef $ac_func
16976
16977 /* Override any GCC internal prototype to avoid an error.
16978    Use char because int might match the return type of a GCC
16979    builtin and then its argument prototype would still apply.  */
16980 #ifdef __cplusplus
16981 extern "C"
16982 #endif
16983 char $ac_func ();
16984 /* The GNU C library defines this for functions which it implements
16985     to always fail with ENOSYS.  Some functions are actually named
16986     something starting with __ and the normal name is an alias.  */
16987 #if defined __stub_$ac_func || defined __stub___$ac_func
16988 choke me
16989 #endif
16990
16991 int
16992 main ()
16993 {
16994 return $ac_func ();
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006   (eval "$ac_link") 2>conftest.er1
17007   ac_status=$?
17008   grep -v '^ *+' conftest.er1 >conftest.err
17009   rm -f conftest.er1
17010   cat conftest.err >&5
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); } &&
17013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014   { (case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_try") 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; } &&
17023          { ac_try='test -s conftest$ac_exeext'
17024   { (case "(($ac_try" in
17025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026   *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029   (eval "$ac_try") 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; }; then
17033   eval "$as_ac_var=yes"
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038         eval "$as_ac_var=no"
17039 fi
17040
17041 rm -f core conftest.err conftest.$ac_objext \
17042       conftest$ac_exeext conftest.$ac_ext
17043 fi
17044 ac_res=`eval echo '${'$as_ac_var'}'`
17045                { echo "$as_me:$LINENO: result: $ac_res" >&5
17046 echo "${ECHO_T}$ac_res" >&6; }
17047 if test `eval echo '${'$as_ac_var'}'` = yes; then
17048   cat >>confdefs.h <<_ACEOF
17049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17050 _ACEOF
17051
17052 fi
17053 done
17054
17055
17056
17057
17058 for ac_func in isatty mkdtemp mkstemp
17059 do
17060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066   cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17074 #define $ac_func innocuous_$ac_func
17075
17076 /* System header to define __stub macros and hopefully few prototypes,
17077     which can conflict with char $ac_func (); below.
17078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079     <limits.h> exists even on freestanding compilers.  */
17080
17081 #ifdef __STDC__
17082 # include <limits.h>
17083 #else
17084 # include <assert.h>
17085 #endif
17086
17087 #undef $ac_func
17088
17089 /* Override any GCC internal prototype to avoid an error.
17090    Use char because int might match the return type of a GCC
17091    builtin and then its argument prototype would still apply.  */
17092 #ifdef __cplusplus
17093 extern "C"
17094 #endif
17095 char $ac_func ();
17096 /* The GNU C library defines this for functions which it implements
17097     to always fail with ENOSYS.  Some functions are actually named
17098     something starting with __ and the normal name is an alias.  */
17099 #if defined __stub_$ac_func || defined __stub___$ac_func
17100 choke me
17101 #endif
17102
17103 int
17104 main ()
17105 {
17106 return $ac_func ();
17107   ;
17108   return 0;
17109 }
17110 _ACEOF
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115   *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118   (eval "$ac_link") 2>conftest.er1
17119   ac_status=$?
17120   grep -v '^ *+' conftest.er1 >conftest.err
17121   rm -f conftest.er1
17122   cat conftest.err >&5
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } &&
17125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17126   { (case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_try") 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; } &&
17135          { ac_try='test -s conftest$ac_exeext'
17136   { (case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_try") 2>&5
17142   ac_status=$?
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); }; }; then
17145   eval "$as_ac_var=yes"
17146 else
17147   echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150         eval "$as_ac_var=no"
17151 fi
17152
17153 rm -f core conftest.err conftest.$ac_objext \
17154       conftest$ac_exeext conftest.$ac_ext
17155 fi
17156 ac_res=`eval echo '${'$as_ac_var'}'`
17157                { echo "$as_me:$LINENO: result: $ac_res" >&5
17158 echo "${ECHO_T}$ac_res" >&6; }
17159 if test `eval echo '${'$as_ac_var'}'` = yes; then
17160   cat >>confdefs.h <<_ACEOF
17161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17162 _ACEOF
17163
17164 fi
17165 done
17166
17167
17168
17169
17170
17171
17172
17173
17174 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17175 do
17176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182   cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17190 #define $ac_func innocuous_$ac_func
17191
17192 /* System header to define __stub macros and hopefully few prototypes,
17193     which can conflict with char $ac_func (); below.
17194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195     <limits.h> exists even on freestanding compilers.  */
17196
17197 #ifdef __STDC__
17198 # include <limits.h>
17199 #else
17200 # include <assert.h>
17201 #endif
17202
17203 #undef $ac_func
17204
17205 /* Override any GCC internal prototype to avoid an error.
17206    Use char because int might match the return type of a GCC
17207    builtin and then its argument prototype would still apply.  */
17208 #ifdef __cplusplus
17209 extern "C"
17210 #endif
17211 char $ac_func ();
17212 /* The GNU C library defines this for functions which it implements
17213     to always fail with ENOSYS.  Some functions are actually named
17214     something starting with __ and the normal name is an alias.  */
17215 #if defined __stub_$ac_func || defined __stub___$ac_func
17216 choke me
17217 #endif
17218
17219 int
17220 main ()
17221 {
17222 return $ac_func ();
17223   ;
17224   return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_link") 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } &&
17241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242   { (case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_try") 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; } &&
17251          { ac_try='test -s conftest$ac_exeext'
17252   { (case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_try") 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   eval "$as_ac_var=yes"
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266         eval "$as_ac_var=no"
17267 fi
17268
17269 rm -f core conftest.err conftest.$ac_objext \
17270       conftest$ac_exeext conftest.$ac_ext
17271 fi
17272 ac_res=`eval echo '${'$as_ac_var'}'`
17273                { echo "$as_me:$LINENO: result: $ac_res" >&5
17274 echo "${ECHO_T}$ac_res" >&6; }
17275 if test `eval echo '${'$as_ac_var'}'` = yes; then
17276   cat >>confdefs.h <<_ACEOF
17277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17278 _ACEOF
17279
17280 fi
17281 done
17282
17283
17284
17285
17286 for ac_func in strerror strerror_r setenv
17287 do
17288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17292   echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294   cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17302 #define $ac_func innocuous_$ac_func
17303
17304 /* System header to define __stub macros and hopefully few prototypes,
17305     which can conflict with char $ac_func (); below.
17306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307     <limits.h> exists even on freestanding compilers.  */
17308
17309 #ifdef __STDC__
17310 # include <limits.h>
17311 #else
17312 # include <assert.h>
17313 #endif
17314
17315 #undef $ac_func
17316
17317 /* Override any GCC internal prototype to avoid an error.
17318    Use char because int might match the return type of a GCC
17319    builtin and then its argument prototype would still apply.  */
17320 #ifdef __cplusplus
17321 extern "C"
17322 #endif
17323 char $ac_func ();
17324 /* The GNU C library defines this for functions which it implements
17325     to always fail with ENOSYS.  Some functions are actually named
17326     something starting with __ and the normal name is an alias.  */
17327 #if defined __stub_$ac_func || defined __stub___$ac_func
17328 choke me
17329 #endif
17330
17331 int
17332 main ()
17333 {
17334 return $ac_func ();
17335   ;
17336   return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346   (eval "$ac_link") 2>conftest.er1
17347   ac_status=$?
17348   grep -v '^ *+' conftest.er1 >conftest.err
17349   rm -f conftest.er1
17350   cat conftest.err >&5
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); } &&
17353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354   { (case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_try") 2>&5
17360   ac_status=$?
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); }; } &&
17363          { ac_try='test -s conftest$ac_exeext'
17364   { (case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_try") 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); }; }; then
17373   eval "$as_ac_var=yes"
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         eval "$as_ac_var=no"
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext \
17382       conftest$ac_exeext conftest.$ac_ext
17383 fi
17384 ac_res=`eval echo '${'$as_ac_var'}'`
17385                { echo "$as_me:$LINENO: result: $ac_res" >&5
17386 echo "${ECHO_T}$ac_res" >&6; }
17387 if test `eval echo '${'$as_ac_var'}'` = yes; then
17388   cat >>confdefs.h <<_ACEOF
17389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17390 _ACEOF
17391
17392 fi
17393 done
17394
17395
17396
17397
17398
17399 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17400 do
17401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17405   echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407   cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17415 #define $ac_func innocuous_$ac_func
17416
17417 /* System header to define __stub macros and hopefully few prototypes,
17418     which can conflict with char $ac_func (); below.
17419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17420     <limits.h> exists even on freestanding compilers.  */
17421
17422 #ifdef __STDC__
17423 # include <limits.h>
17424 #else
17425 # include <assert.h>
17426 #endif
17427
17428 #undef $ac_func
17429
17430 /* Override any GCC internal prototype to avoid an error.
17431    Use char because int might match the return type of a GCC
17432    builtin and then its argument prototype would still apply.  */
17433 #ifdef __cplusplus
17434 extern "C"
17435 #endif
17436 char $ac_func ();
17437 /* The GNU C library defines this for functions which it implements
17438     to always fail with ENOSYS.  Some functions are actually named
17439     something starting with __ and the normal name is an alias.  */
17440 #if defined __stub_$ac_func || defined __stub___$ac_func
17441 choke me
17442 #endif
17443
17444 int
17445 main ()
17446 {
17447 return $ac_func ();
17448   ;
17449   return 0;
17450 }
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (ac_try="$ac_link"
17454 case "(($ac_try" in
17455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456   *) ac_try_echo=$ac_try;;
17457 esac
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459   (eval "$ac_link") 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467   { (case "(($ac_try" in
17468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469   *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472   (eval "$ac_try") 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; } &&
17476          { ac_try='test -s conftest$ac_exeext'
17477   { (case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_try") 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); }; }; then
17486   eval "$as_ac_var=yes"
17487 else
17488   echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17490
17491         eval "$as_ac_var=no"
17492 fi
17493
17494 rm -f core conftest.err conftest.$ac_objext \
17495       conftest$ac_exeext conftest.$ac_ext
17496 fi
17497 ac_res=`eval echo '${'$as_ac_var'}'`
17498                { echo "$as_me:$LINENO: result: $ac_res" >&5
17499 echo "${ECHO_T}$ac_res" >&6; }
17500 if test `eval echo '${'$as_ac_var'}'` = yes; then
17501   cat >>confdefs.h <<_ACEOF
17502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17503 _ACEOF
17504
17505 fi
17506 done
17507
17508
17509
17510
17511
17512
17513 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17514 do
17515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521   cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17529 #define $ac_func innocuous_$ac_func
17530
17531 /* System header to define __stub macros and hopefully few prototypes,
17532     which can conflict with char $ac_func (); below.
17533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534     <limits.h> exists even on freestanding compilers.  */
17535
17536 #ifdef __STDC__
17537 # include <limits.h>
17538 #else
17539 # include <assert.h>
17540 #endif
17541
17542 #undef $ac_func
17543
17544 /* Override any GCC internal prototype to avoid an error.
17545    Use char because int might match the return type of a GCC
17546    builtin and then its argument prototype would still apply.  */
17547 #ifdef __cplusplus
17548 extern "C"
17549 #endif
17550 char $ac_func ();
17551 /* The GNU C library defines this for functions which it implements
17552     to always fail with ENOSYS.  Some functions are actually named
17553     something starting with __ and the normal name is an alias.  */
17554 #if defined __stub_$ac_func || defined __stub___$ac_func
17555 choke me
17556 #endif
17557
17558 int
17559 main ()
17560 {
17561 return $ac_func ();
17562   ;
17563   return 0;
17564 }
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (ac_try="$ac_link"
17568 case "(($ac_try" in
17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570   *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573   (eval "$ac_link") 2>conftest.er1
17574   ac_status=$?
17575   grep -v '^ *+' conftest.er1 >conftest.err
17576   rm -f conftest.er1
17577   cat conftest.err >&5
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } &&
17580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17581   { (case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_try") 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; } &&
17590          { ac_try='test -s conftest$ac_exeext'
17591   { (case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_try") 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; }; then
17600   eval "$as_ac_var=yes"
17601 else
17602   echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605         eval "$as_ac_var=no"
17606 fi
17607
17608 rm -f core conftest.err conftest.$ac_objext \
17609       conftest$ac_exeext conftest.$ac_ext
17610 fi
17611 ac_res=`eval echo '${'$as_ac_var'}'`
17612                { echo "$as_me:$LINENO: result: $ac_res" >&5
17613 echo "${ECHO_T}$ac_res" >&6; }
17614 if test `eval echo '${'$as_ac_var'}'` = yes; then
17615   cat >>confdefs.h <<_ACEOF
17616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17617 _ACEOF
17618
17619 fi
17620 done
17621
17622 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17623 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17624 if test "${llvm_cv_c_printf_a+set}" = set; then
17625   echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627   ac_ext=c
17628 ac_cpp='$CPP $CPPFLAGS'
17629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17632
17633  if test "$cross_compiling" = yes; then
17634   llvmac_cv_c_printf_a=no
17635 else
17636   cat >conftest.$ac_ext <<_ACEOF
17637
17638   /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643
17644 #include <stdio.h>
17645 #include <stdlib.h>
17646
17647 int
17648 main ()
17649 {
17650
17651 volatile double A, B;
17652 char Buffer[100];
17653 A = 1;
17654 A /= 10.0;
17655 sprintf(Buffer, "%a", A);
17656 B = atof(Buffer);
17657 if (A != B)
17658   return (1);
17659 if (A != 0x1.999999999999ap-4)
17660   return (1);
17661 return (0);
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_link") 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677   { (case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682   (eval "$ac_try") 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; }; then
17686   llvm_cv_c_printf_a=yes
17687 else
17688   echo "$as_me: program exited with status $ac_status" >&5
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692 ( exit $ac_status )
17693 llvmac_cv_c_printf_a=no
17694 fi
17695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17696 fi
17697
17698
17699  ac_ext=c
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
17705 fi
17706 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17707 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17708  if test "$llvm_cv_c_printf_a" = "yes"; then
17709
17710 cat >>confdefs.h <<\_ACEOF
17711 #define HAVE_PRINTF_A 1
17712 _ACEOF
17713
17714  fi
17715
17716
17717 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17718 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17719 if test "${ac_cv_func_rand48+set}" = set; then
17720   echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722   ac_ext=cpp
17723 ac_cpp='$CXXCPP $CPPFLAGS'
17724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17727
17728    cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734 #include <stdlib.h>
17735 int
17736 main ()
17737 {
17738 srand48(0);lrand48();drand48();
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext
17744 if { (ac_try="$ac_compile"
17745 case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750   (eval "$ac_compile") 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17758   { (case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_try") 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest.$ac_objext'
17768   { (case "(($ac_try" in
17769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770   *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773   (eval "$ac_try") 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; }; then
17777   ac_cv_func_rand48=yes
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782         ac_cv_func_rand48=no
17783 fi
17784
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786   ac_ext=c
17787 ac_cpp='$CPP $CPPFLAGS'
17788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17791
17792 fi
17793 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17794 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17795
17796 if test "$ac_cv_func_rand48" = "yes" ; then
17797
17798 cat >>confdefs.h <<\_ACEOF
17799 #define HAVE_RAND48 1
17800 _ACEOF
17801
17802 fi
17803
17804
17805 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17806 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17807 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17808   echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810   cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h.  */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h.  */
17816 $ac_includes_default
17817 int
17818 main ()
17819 {
17820 #ifndef strerror_s
17821   char *p = (char *) strerror_s;
17822   return !p;
17823 #endif
17824
17825   ;
17826   return 0;
17827 }
17828 _ACEOF
17829 rm -f conftest.$ac_objext
17830 if { (ac_try="$ac_compile"
17831 case "(($ac_try" in
17832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833   *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836   (eval "$ac_compile") 2>conftest.er1
17837   ac_status=$?
17838   grep -v '^ *+' conftest.er1 >conftest.err
17839   rm -f conftest.er1
17840   cat conftest.err >&5
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); } &&
17843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17844   { (case "(($ac_try" in
17845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846   *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849   (eval "$ac_try") 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; } &&
17853          { ac_try='test -s conftest.$ac_objext'
17854   { (case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859   (eval "$ac_try") 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; }; then
17863   ac_cv_have_decl_strerror_s=yes
17864 else
17865   echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868         ac_cv_have_decl_strerror_s=no
17869 fi
17870
17871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872 fi
17873 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17874 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17875 if test $ac_cv_have_decl_strerror_s = yes; then
17876
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_DECL_STRERROR_S 1
17879 _ACEOF
17880
17881
17882 else
17883   cat >>confdefs.h <<_ACEOF
17884 #define HAVE_DECL_STRERROR_S 0
17885 _ACEOF
17886
17887
17888 fi
17889
17890
17891
17892 if test "$llvm_cv_os_type" = "MingW" ; then
17893   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17894 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17895 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17896   echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17898   ac_check_lib_save_LIBS=$LIBS
17899 LIBS="-lgcc  $LIBS"
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h.  */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h.  */
17906
17907 /* Override any GCC internal prototype to avoid an error.
17908    Use char because int might match the return type of a GCC
17909    builtin and then its argument prototype would still apply.  */
17910 #ifdef __cplusplus
17911 extern "C"
17912 #endif
17913 char _alloca ();
17914 int
17915 main ()
17916 {
17917 return _alloca ();
17918   ;
17919   return 0;
17920 }
17921 _ACEOF
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (ac_try="$ac_link"
17924 case "(($ac_try" in
17925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926   *) ac_try_echo=$ac_try;;
17927 esac
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929   (eval "$ac_link") 2>conftest.er1
17930   ac_status=$?
17931   grep -v '^ *+' conftest.er1 >conftest.err
17932   rm -f conftest.er1
17933   cat conftest.err >&5
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } &&
17936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937   { (case "(($ac_try" in
17938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939   *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942   (eval "$ac_try") 2>&5
17943   ac_status=$?
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); }; } &&
17946          { ac_try='test -s conftest$ac_exeext'
17947   { (case "(($ac_try" in
17948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949   *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952   (eval "$ac_try") 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; }; then
17956   ac_cv_lib_gcc__alloca=yes
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961         ac_cv_lib_gcc__alloca=no
17962 fi
17963
17964 rm -f core conftest.err conftest.$ac_objext \
17965       conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17967 fi
17968 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17969 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17970 if test $ac_cv_lib_gcc__alloca = yes; then
17971
17972 cat >>confdefs.h <<\_ACEOF
17973 #define HAVE__ALLOCA 1
17974 _ACEOF
17975
17976 fi
17977
17978   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17979 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17980 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983   ac_check_lib_save_LIBS=$LIBS
17984 LIBS="-lgcc  $LIBS"
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h.  */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h.  */
17991
17992 /* Override any GCC internal prototype to avoid an error.
17993    Use char because int might match the return type of a GCC
17994    builtin and then its argument prototype would still apply.  */
17995 #ifdef __cplusplus
17996 extern "C"
17997 #endif
17998 char __alloca ();
17999 int
18000 main ()
18001 {
18002 return __alloca ();
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_link") 2>conftest.er1
18015   ac_status=$?
18016   grep -v '^ *+' conftest.er1 >conftest.err
18017   rm -f conftest.er1
18018   cat conftest.err >&5
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } &&
18021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022   { (case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_try") 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; } &&
18031          { ac_try='test -s conftest$ac_exeext'
18032   { (case "(($ac_try" in
18033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034   *) ac_try_echo=$ac_try;;
18035 esac
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037   (eval "$ac_try") 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041   ac_cv_lib_gcc___alloca=yes
18042 else
18043   echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046         ac_cv_lib_gcc___alloca=no
18047 fi
18048
18049 rm -f core conftest.err conftest.$ac_objext \
18050       conftest$ac_exeext conftest.$ac_ext
18051 LIBS=$ac_check_lib_save_LIBS
18052 fi
18053 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18054 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18055 if test $ac_cv_lib_gcc___alloca = yes; then
18056
18057 cat >>confdefs.h <<\_ACEOF
18058 #define HAVE___ALLOCA 1
18059 _ACEOF
18060
18061 fi
18062
18063   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18064 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18065 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18066   echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068   ac_check_lib_save_LIBS=$LIBS
18069 LIBS="-lgcc  $LIBS"
18070 cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076
18077 /* Override any GCC internal prototype to avoid an error.
18078    Use char because int might match the return type of a GCC
18079    builtin and then its argument prototype would still apply.  */
18080 #ifdef __cplusplus
18081 extern "C"
18082 #endif
18083 char __chkstk ();
18084 int
18085 main ()
18086 {
18087 return __chkstk ();
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_link") 2>conftest.er1
18100   ac_status=$?
18101   grep -v '^ *+' conftest.er1 >conftest.err
18102   rm -f conftest.er1
18103   cat conftest.err >&5
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); } &&
18106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18107   { (case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_try") 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; } &&
18116          { ac_try='test -s conftest$ac_exeext'
18117   { (case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_try") 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }; }; then
18126   ac_cv_lib_gcc___chkstk=yes
18127 else
18128   echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131         ac_cv_lib_gcc___chkstk=no
18132 fi
18133
18134 rm -f core conftest.err conftest.$ac_objext \
18135       conftest$ac_exeext conftest.$ac_ext
18136 LIBS=$ac_check_lib_save_LIBS
18137 fi
18138 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18139 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18140 if test $ac_cv_lib_gcc___chkstk = yes; then
18141
18142 cat >>confdefs.h <<\_ACEOF
18143 #define HAVE___CHKSTK 1
18144 _ACEOF
18145
18146 fi
18147
18148   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18149 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18150 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18151   echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153   ac_check_lib_save_LIBS=$LIBS
18154 LIBS="-lgcc  $LIBS"
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h.  */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h.  */
18161
18162 /* Override any GCC internal prototype to avoid an error.
18163    Use char because int might match the return type of a GCC
18164    builtin and then its argument prototype would still apply.  */
18165 #ifdef __cplusplus
18166 extern "C"
18167 #endif
18168 char ___chkstk ();
18169 int
18170 main ()
18171 {
18172 return ___chkstk ();
18173   ;
18174   return 0;
18175 }
18176 _ACEOF
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_link") 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } &&
18191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18192   { (case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_try") 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; } &&
18201          { ac_try='test -s conftest$ac_exeext'
18202   { (case "(($ac_try" in
18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204   *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207   (eval "$ac_try") 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; }; then
18211   ac_cv_lib_gcc____chkstk=yes
18212 else
18213   echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216         ac_cv_lib_gcc____chkstk=no
18217 fi
18218
18219 rm -f core conftest.err conftest.$ac_objext \
18220       conftest$ac_exeext conftest.$ac_ext
18221 LIBS=$ac_check_lib_save_LIBS
18222 fi
18223 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18224 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18225 if test $ac_cv_lib_gcc____chkstk = yes; then
18226
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE____CHKSTK 1
18229 _ACEOF
18230
18231 fi
18232
18233
18234   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18235 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18236 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239   ac_check_lib_save_LIBS=$LIBS
18240 LIBS="-lgcc  $LIBS"
18241 cat >conftest.$ac_ext <<_ACEOF
18242 /* confdefs.h.  */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h.  */
18247
18248 /* Override any GCC internal prototype to avoid an error.
18249    Use char because int might match the return type of a GCC
18250    builtin and then its argument prototype would still apply.  */
18251 #ifdef __cplusplus
18252 extern "C"
18253 #endif
18254 char __ashldi3 ();
18255 int
18256 main ()
18257 {
18258 return __ashldi3 ();
18259   ;
18260   return 0;
18261 }
18262 _ACEOF
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_link") 2>conftest.er1
18271   ac_status=$?
18272   grep -v '^ *+' conftest.er1 >conftest.err
18273   rm -f conftest.er1
18274   cat conftest.err >&5
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); } &&
18277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278   { (case "(($ac_try" in
18279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280   *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283   (eval "$ac_try") 2>&5
18284   ac_status=$?
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); }; } &&
18287          { ac_try='test -s conftest$ac_exeext'
18288   { (case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_try") 2>&5
18294   ac_status=$?
18295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296   (exit $ac_status); }; }; then
18297   ac_cv_lib_gcc___ashldi3=yes
18298 else
18299   echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302         ac_cv_lib_gcc___ashldi3=no
18303 fi
18304
18305 rm -f core conftest.err conftest.$ac_objext \
18306       conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18308 fi
18309 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18310 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18311 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18312
18313 cat >>confdefs.h <<\_ACEOF
18314 #define HAVE___ASHLDI3 1
18315 _ACEOF
18316
18317 fi
18318
18319   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18320 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18321 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18322   echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324   ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-lgcc  $LIBS"
18326 cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h.  */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h.  */
18332
18333 /* Override any GCC internal prototype to avoid an error.
18334    Use char because int might match the return type of a GCC
18335    builtin and then its argument prototype would still apply.  */
18336 #ifdef __cplusplus
18337 extern "C"
18338 #endif
18339 char __ashrdi3 ();
18340 int
18341 main ()
18342 {
18343 return __ashrdi3 ();
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_link") 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363   { (case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_try") 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; } &&
18372          { ac_try='test -s conftest$ac_exeext'
18373   { (case "(($ac_try" in
18374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375   *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378   (eval "$ac_try") 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; }; then
18382   ac_cv_lib_gcc___ashrdi3=yes
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387         ac_cv_lib_gcc___ashrdi3=no
18388 fi
18389
18390 rm -f core conftest.err conftest.$ac_objext \
18391       conftest$ac_exeext conftest.$ac_ext
18392 LIBS=$ac_check_lib_save_LIBS
18393 fi
18394 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18395 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18396 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18397
18398 cat >>confdefs.h <<\_ACEOF
18399 #define HAVE___ASHRDI3 1
18400 _ACEOF
18401
18402 fi
18403
18404   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18405 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18406 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   ac_check_lib_save_LIBS=$LIBS
18410 LIBS="-lgcc  $LIBS"
18411 cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417
18418 /* Override any GCC internal prototype to avoid an error.
18419    Use char because int might match the return type of a GCC
18420    builtin and then its argument prototype would still apply.  */
18421 #ifdef __cplusplus
18422 extern "C"
18423 #endif
18424 char __divdi3 ();
18425 int
18426 main ()
18427 {
18428 return __divdi3 ();
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_link") 2>conftest.er1
18441   ac_status=$?
18442   grep -v '^ *+' conftest.er1 >conftest.err
18443   rm -f conftest.er1
18444   cat conftest.err >&5
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); } &&
18447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18448   { (case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_try") 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); }; } &&
18457          { ac_try='test -s conftest$ac_exeext'
18458   { (case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_try") 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467   ac_cv_lib_gcc___divdi3=yes
18468 else
18469   echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472         ac_cv_lib_gcc___divdi3=no
18473 fi
18474
18475 rm -f core conftest.err conftest.$ac_objext \
18476       conftest$ac_exeext conftest.$ac_ext
18477 LIBS=$ac_check_lib_save_LIBS
18478 fi
18479 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18480 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18481 if test $ac_cv_lib_gcc___divdi3 = yes; then
18482
18483 cat >>confdefs.h <<\_ACEOF
18484 #define HAVE___DIVDI3 1
18485 _ACEOF
18486
18487 fi
18488
18489   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18490 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18491 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18492   echo $ECHO_N "(cached) $ECHO_C" >&6
18493 else
18494   ac_check_lib_save_LIBS=$LIBS
18495 LIBS="-lgcc  $LIBS"
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h.  */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h.  */
18502
18503 /* Override any GCC internal prototype to avoid an error.
18504    Use char because int might match the return type of a GCC
18505    builtin and then its argument prototype would still apply.  */
18506 #ifdef __cplusplus
18507 extern "C"
18508 #endif
18509 char __fixdfdi ();
18510 int
18511 main ()
18512 {
18513 return __fixdfdi ();
18514   ;
18515   return 0;
18516 }
18517 _ACEOF
18518 rm -f conftest.$ac_objext conftest$ac_exeext
18519 if { (ac_try="$ac_link"
18520 case "(($ac_try" in
18521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522   *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525   (eval "$ac_link") 2>conftest.er1
18526   ac_status=$?
18527   grep -v '^ *+' conftest.er1 >conftest.err
18528   rm -f conftest.er1
18529   cat conftest.err >&5
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); } &&
18532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18533   { (case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_try") 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; } &&
18542          { ac_try='test -s conftest$ac_exeext'
18543   { (case "(($ac_try" in
18544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545   *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548   (eval "$ac_try") 2>&5
18549   ac_status=$?
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); }; }; then
18552   ac_cv_lib_gcc___fixdfdi=yes
18553 else
18554   echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557         ac_cv_lib_gcc___fixdfdi=no
18558 fi
18559
18560 rm -f core conftest.err conftest.$ac_objext \
18561       conftest$ac_exeext conftest.$ac_ext
18562 LIBS=$ac_check_lib_save_LIBS
18563 fi
18564 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18565 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18566 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18567
18568 cat >>confdefs.h <<\_ACEOF
18569 #define HAVE___FIXDFDI 1
18570 _ACEOF
18571
18572 fi
18573
18574   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18575 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18576 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579   ac_check_lib_save_LIBS=$LIBS
18580 LIBS="-lgcc  $LIBS"
18581 cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h.  */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h.  */
18587
18588 /* Override any GCC internal prototype to avoid an error.
18589    Use char because int might match the return type of a GCC
18590    builtin and then its argument prototype would still apply.  */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 char __fixsfdi ();
18595 int
18596 main ()
18597 {
18598 return __fixsfdi ();
18599   ;
18600   return 0;
18601 }
18602 _ACEOF
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (ac_try="$ac_link"
18605 case "(($ac_try" in
18606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607   *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610   (eval "$ac_link") 2>conftest.er1
18611   ac_status=$?
18612   grep -v '^ *+' conftest.er1 >conftest.err
18613   rm -f conftest.er1
18614   cat conftest.err >&5
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } &&
18617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18618   { (case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_try") 2>&5
18624   ac_status=$?
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; } &&
18627          { ac_try='test -s conftest$ac_exeext'
18628   { (case "(($ac_try" in
18629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630   *) ac_try_echo=$ac_try;;
18631 esac
18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633   (eval "$ac_try") 2>&5
18634   ac_status=$?
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); }; }; then
18637   ac_cv_lib_gcc___fixsfdi=yes
18638 else
18639   echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642         ac_cv_lib_gcc___fixsfdi=no
18643 fi
18644
18645 rm -f core conftest.err conftest.$ac_objext \
18646       conftest$ac_exeext conftest.$ac_ext
18647 LIBS=$ac_check_lib_save_LIBS
18648 fi
18649 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18650 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18651 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18652
18653 cat >>confdefs.h <<\_ACEOF
18654 #define HAVE___FIXSFDI 1
18655 _ACEOF
18656
18657 fi
18658
18659   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18660 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18661 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lgcc  $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672
18673 /* Override any GCC internal prototype to avoid an error.
18674    Use char because int might match the return type of a GCC
18675    builtin and then its argument prototype would still apply.  */
18676 #ifdef __cplusplus
18677 extern "C"
18678 #endif
18679 char __floatdidf ();
18680 int
18681 main ()
18682 {
18683 return __floatdidf ();
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695   (eval "$ac_link") 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } &&
18702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18703   { (case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_try") 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; } &&
18712          { ac_try='test -s conftest$ac_exeext'
18713   { (case "(($ac_try" in
18714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715   *) ac_try_echo=$ac_try;;
18716 esac
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718   (eval "$ac_try") 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); }; }; then
18722   ac_cv_lib_gcc___floatdidf=yes
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727         ac_cv_lib_gcc___floatdidf=no
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext \
18731       conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18733 fi
18734 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18735 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18736 if test $ac_cv_lib_gcc___floatdidf = yes; then
18737
18738 cat >>confdefs.h <<\_ACEOF
18739 #define HAVE___FLOATDIDF 1
18740 _ACEOF
18741
18742 fi
18743
18744   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18745 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18746 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18747   echo $ECHO_N "(cached) $ECHO_C" >&6
18748 else
18749   ac_check_lib_save_LIBS=$LIBS
18750 LIBS="-lgcc  $LIBS"
18751 cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h.  */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h.  */
18757
18758 /* Override any GCC internal prototype to avoid an error.
18759    Use char because int might match the return type of a GCC
18760    builtin and then its argument prototype would still apply.  */
18761 #ifdef __cplusplus
18762 extern "C"
18763 #endif
18764 char __lshrdi3 ();
18765 int
18766 main ()
18767 {
18768 return __lshrdi3 ();
18769   ;
18770   return 0;
18771 }
18772 _ACEOF
18773 rm -f conftest.$ac_objext conftest$ac_exeext
18774 if { (ac_try="$ac_link"
18775 case "(($ac_try" in
18776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777   *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780   (eval "$ac_link") 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } &&
18787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18788   { (case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793   (eval "$ac_try") 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); }; } &&
18797          { ac_try='test -s conftest$ac_exeext'
18798   { (case "(($ac_try" in
18799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800   *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803   (eval "$ac_try") 2>&5
18804   ac_status=$?
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); }; }; then
18807   ac_cv_lib_gcc___lshrdi3=yes
18808 else
18809   echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812         ac_cv_lib_gcc___lshrdi3=no
18813 fi
18814
18815 rm -f core conftest.err conftest.$ac_objext \
18816       conftest$ac_exeext conftest.$ac_ext
18817 LIBS=$ac_check_lib_save_LIBS
18818 fi
18819 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18820 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18821 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18822
18823 cat >>confdefs.h <<\_ACEOF
18824 #define HAVE___LSHRDI3 1
18825 _ACEOF
18826
18827 fi
18828
18829   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18830 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18831 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-lgcc  $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842
18843 /* Override any GCC internal prototype to avoid an error.
18844    Use char because int might match the return type of a GCC
18845    builtin and then its argument prototype would still apply.  */
18846 #ifdef __cplusplus
18847 extern "C"
18848 #endif
18849 char __moddi3 ();
18850 int
18851 main ()
18852 {
18853 return __moddi3 ();
18854   ;
18855   return 0;
18856 }
18857 _ACEOF
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862   *) ac_try_echo=$ac_try;;
18863 esac
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865   (eval "$ac_link") 2>conftest.er1
18866   ac_status=$?
18867   grep -v '^ *+' conftest.er1 >conftest.err
18868   rm -f conftest.er1
18869   cat conftest.err >&5
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); } &&
18872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18873   { (case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_try") 2>&5
18879   ac_status=$?
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); }; } &&
18882          { ac_try='test -s conftest$ac_exeext'
18883   { (case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_try") 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; }; then
18892   ac_cv_lib_gcc___moddi3=yes
18893 else
18894   echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897         ac_cv_lib_gcc___moddi3=no
18898 fi
18899
18900 rm -f core conftest.err conftest.$ac_objext \
18901       conftest$ac_exeext conftest.$ac_ext
18902 LIBS=$ac_check_lib_save_LIBS
18903 fi
18904 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18905 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18906 if test $ac_cv_lib_gcc___moddi3 = yes; then
18907
18908 cat >>confdefs.h <<\_ACEOF
18909 #define HAVE___MODDI3 1
18910 _ACEOF
18911
18912 fi
18913
18914   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18915 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18916 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18917   echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919   ac_check_lib_save_LIBS=$LIBS
18920 LIBS="-lgcc  $LIBS"
18921 cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h.  */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h.  */
18927
18928 /* Override any GCC internal prototype to avoid an error.
18929    Use char because int might match the return type of a GCC
18930    builtin and then its argument prototype would still apply.  */
18931 #ifdef __cplusplus
18932 extern "C"
18933 #endif
18934 char __udivdi3 ();
18935 int
18936 main ()
18937 {
18938 return __udivdi3 ();
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947   *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950   (eval "$ac_link") 2>conftest.er1
18951   ac_status=$?
18952   grep -v '^ *+' conftest.er1 >conftest.err
18953   rm -f conftest.er1
18954   cat conftest.err >&5
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } &&
18957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18958   { (case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_try") 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; } &&
18967          { ac_try='test -s conftest$ac_exeext'
18968   { (case "(($ac_try" in
18969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970   *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973   (eval "$ac_try") 2>&5
18974   ac_status=$?
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); }; }; then
18977   ac_cv_lib_gcc___udivdi3=yes
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         ac_cv_lib_gcc___udivdi3=no
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext \
18986       conftest$ac_exeext conftest.$ac_ext
18987 LIBS=$ac_check_lib_save_LIBS
18988 fi
18989 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18990 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18991 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18992
18993 cat >>confdefs.h <<\_ACEOF
18994 #define HAVE___UDIVDI3 1
18995 _ACEOF
18996
18997 fi
18998
18999   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19000 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19001 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19002   echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19004   ac_check_lib_save_LIBS=$LIBS
19005 LIBS="-lgcc  $LIBS"
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012
19013 /* Override any GCC internal prototype to avoid an error.
19014    Use char because int might match the return type of a GCC
19015    builtin and then its argument prototype would still apply.  */
19016 #ifdef __cplusplus
19017 extern "C"
19018 #endif
19019 char __umoddi3 ();
19020 int
19021 main ()
19022 {
19023 return __umoddi3 ();
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_link") 2>conftest.er1
19036   ac_status=$?
19037   grep -v '^ *+' conftest.er1 >conftest.err
19038   rm -f conftest.er1
19039   cat conftest.err >&5
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); } &&
19042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043   { (case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_try") 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; } &&
19052          { ac_try='test -s conftest$ac_exeext'
19053   { (case "(($ac_try" in
19054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055   *) ac_try_echo=$ac_try;;
19056 esac
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058   (eval "$ac_try") 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; }; then
19062   ac_cv_lib_gcc___umoddi3=yes
19063 else
19064   echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067         ac_cv_lib_gcc___umoddi3=no
19068 fi
19069
19070 rm -f core conftest.err conftest.$ac_objext \
19071       conftest$ac_exeext conftest.$ac_ext
19072 LIBS=$ac_check_lib_save_LIBS
19073 fi
19074 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19075 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19076 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19077
19078 cat >>confdefs.h <<\_ACEOF
19079 #define HAVE___UMODDI3 1
19080 _ACEOF
19081
19082 fi
19083
19084
19085   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19086 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19087 if test "${ac_cv_lib_gcc___main+set}" = set; then
19088   echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090   ac_check_lib_save_LIBS=$LIBS
19091 LIBS="-lgcc  $LIBS"
19092 cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098
19099 /* Override any GCC internal prototype to avoid an error.
19100    Use char because int might match the return type of a GCC
19101    builtin and then its argument prototype would still apply.  */
19102 #ifdef __cplusplus
19103 extern "C"
19104 #endif
19105 char __main ();
19106 int
19107 main ()
19108 {
19109 return __main ();
19110   ;
19111   return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest.$ac_objext conftest$ac_exeext
19115 if { (ac_try="$ac_link"
19116 case "(($ac_try" in
19117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118   *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121   (eval "$ac_link") 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } &&
19128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19129   { (case "(($ac_try" in
19130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131   *) ac_try_echo=$ac_try;;
19132 esac
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134   (eval "$ac_try") 2>&5
19135   ac_status=$?
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); }; } &&
19138          { ac_try='test -s conftest$ac_exeext'
19139   { (case "(($ac_try" in
19140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141   *) ac_try_echo=$ac_try;;
19142 esac
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144   (eval "$ac_try") 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; }; then
19148   ac_cv_lib_gcc___main=yes
19149 else
19150   echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153         ac_cv_lib_gcc___main=no
19154 fi
19155
19156 rm -f core conftest.err conftest.$ac_objext \
19157       conftest$ac_exeext conftest.$ac_ext
19158 LIBS=$ac_check_lib_save_LIBS
19159 fi
19160 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19161 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19162 if test $ac_cv_lib_gcc___main = yes; then
19163
19164 cat >>confdefs.h <<\_ACEOF
19165 #define HAVE___MAIN 1
19166 _ACEOF
19167
19168 fi
19169
19170   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19171 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19172 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   ac_check_lib_save_LIBS=$LIBS
19176 LIBS="-lgcc  $LIBS"
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183
19184 /* Override any GCC internal prototype to avoid an error.
19185    Use char because int might match the return type of a GCC
19186    builtin and then its argument prototype would still apply.  */
19187 #ifdef __cplusplus
19188 extern "C"
19189 #endif
19190 char __cmpdi2 ();
19191 int
19192 main ()
19193 {
19194 return __cmpdi2 ();
19195   ;
19196   return 0;
19197 }
19198 _ACEOF
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (ac_try="$ac_link"
19201 case "(($ac_try" in
19202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203   *) ac_try_echo=$ac_try;;
19204 esac
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206   (eval "$ac_link") 2>conftest.er1
19207   ac_status=$?
19208   grep -v '^ *+' conftest.er1 >conftest.err
19209   rm -f conftest.er1
19210   cat conftest.err >&5
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); } &&
19213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19214   { (case "(($ac_try" in
19215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216   *) ac_try_echo=$ac_try;;
19217 esac
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219   (eval "$ac_try") 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; } &&
19223          { ac_try='test -s conftest$ac_exeext'
19224   { (case "(($ac_try" in
19225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226   *) ac_try_echo=$ac_try;;
19227 esac
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229   (eval "$ac_try") 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; }; then
19233   ac_cv_lib_gcc___cmpdi2=yes
19234 else
19235   echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19237
19238         ac_cv_lib_gcc___cmpdi2=no
19239 fi
19240
19241 rm -f core conftest.err conftest.$ac_objext \
19242       conftest$ac_exeext conftest.$ac_ext
19243 LIBS=$ac_check_lib_save_LIBS
19244 fi
19245 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19246 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19247 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19248
19249 cat >>confdefs.h <<\_ACEOF
19250 #define HAVE___CMPDI2 1
19251 _ACEOF
19252
19253 fi
19254
19255 fi
19256
19257 if test "$llvm_cv_os_type" = "MingW" ; then
19258   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19259 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19260   cat >conftest.$ac_ext <<_ACEOF
19261 #include <windows.h>
19262 #include <imagehlp.h>
19263 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19264 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19265 _ACEOF
19266 rm -f conftest.$ac_objext
19267 if { (ac_try="$ac_compile"
19268 case "(($ac_try" in
19269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270   *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273   (eval "$ac_compile") 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } &&
19280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19281   { (case "(($ac_try" in
19282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283   *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286   (eval "$ac_try") 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); }; } &&
19290          { ac_try='test -s conftest.$ac_objext'
19291   { (case "(($ac_try" in
19292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293   *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296   (eval "$ac_try") 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; }; then
19300
19301   { echo "$as_me:$LINENO: result: yes" >&5
19302 echo "${ECHO_T}yes" >&6; }
19303   llvm_cv_win32_elmcb_pcstr="PCSTR"
19304
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309
19310   { echo "$as_me:$LINENO: result: no" >&5
19311 echo "${ECHO_T}no" >&6; }
19312   llvm_cv_win32_elmcb_pcstr="PSTR"
19313
19314 fi
19315
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317
19318 cat >>confdefs.h <<_ACEOF
19319 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19320 _ACEOF
19321
19322 fi
19323
19324
19325 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19326 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19327 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19328   echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330   ac_ext=cpp
19331 ac_cpp='$CXXCPP $CPPFLAGS'
19332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19335
19336    cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342 #include <math.h>
19343 int
19344 main ()
19345 {
19346 float f; isnan(f);
19347   ;
19348   return 0;
19349 }
19350 _ACEOF
19351 rm -f conftest.$ac_objext
19352 if { (ac_try="$ac_compile"
19353 case "(($ac_try" in
19354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355   *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358   (eval "$ac_compile") 2>conftest.er1
19359   ac_status=$?
19360   grep -v '^ *+' conftest.er1 >conftest.err
19361   rm -f conftest.er1
19362   cat conftest.err >&5
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } &&
19365          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19366   { (case "(($ac_try" in
19367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368   *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371   (eval "$ac_try") 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; } &&
19375          { ac_try='test -s conftest.$ac_objext'
19376   { (case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_try") 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; }; then
19385   ac_cv_func_isnan_in_math_h=yes
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390         ac_cv_func_isnan_in_math_h=no
19391 fi
19392
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394   ac_ext=c
19395 ac_cpp='$CPP $CPPFLAGS'
19396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19399
19400 fi
19401 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19402 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19403
19404
19405 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19406
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_ISNAN_IN_MATH_H 1
19409 _ACEOF
19410
19411 fi
19412
19413 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19414 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19415 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418   ac_ext=cpp
19419 ac_cpp='$CXXCPP $CPPFLAGS'
19420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19423
19424    cat >conftest.$ac_ext <<_ACEOF
19425 /* confdefs.h.  */
19426 _ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h.  */
19430 #include <cmath>
19431 int
19432 main ()
19433 {
19434 float f; isnan(f);
19435   ;
19436   return 0;
19437 }
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_compile") 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } &&
19453          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19454   { (case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_try") 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest.$ac_objext'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469   (eval "$ac_try") 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; }; then
19473   ac_cv_func_isnan_in_cmath=yes
19474 else
19475   echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19477
19478         ac_cv_func_isnan_in_cmath=no
19479 fi
19480
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482   ac_ext=c
19483 ac_cpp='$CPP $CPPFLAGS'
19484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19487
19488 fi
19489 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19490 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19491
19492 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE_ISNAN_IN_CMATH 1
19496 _ACEOF
19497
19498 fi
19499
19500 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19501 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19502 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   ac_ext=cpp
19506 ac_cpp='$CXXCPP $CPPFLAGS'
19507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19510
19511    cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h.  */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h.  */
19517 #include <cmath>
19518 int
19519 main ()
19520 {
19521 float f; std::isnan(f);
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530   *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533   (eval "$ac_compile") 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } &&
19540          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19541   { (case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_try") 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; } &&
19550          { ac_try='test -s conftest.$ac_objext'
19551   { (case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556   (eval "$ac_try") 2>&5
19557   ac_status=$?
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); }; }; then
19560   ac_cv_func_std_isnan_in_cmath=yes
19561 else
19562   echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565         ac_cv_func_std_isnan_in_cmath=no
19566 fi
19567
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569   ac_ext=c
19570 ac_cpp='$CPP $CPPFLAGS'
19571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19574
19575 fi
19576 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19577 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19578
19579 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19580
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_STD_ISNAN_IN_CMATH 1
19583 _ACEOF
19584
19585 fi
19586
19587
19588 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19589 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   ac_ext=cpp
19594 ac_cpp='$CXXCPP $CPPFLAGS'
19595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19598
19599    cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605 #include <math.h>
19606 int
19607 main ()
19608 {
19609 float f; isinf(f);
19610   ;
19611   return 0;
19612 }
19613 _ACEOF
19614 rm -f conftest.$ac_objext
19615 if { (ac_try="$ac_compile"
19616 case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_compile") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } &&
19628          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19629   { (case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_try") 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; } &&
19638          { ac_try='test -s conftest.$ac_objext'
19639   { (case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_try") 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; }; then
19648   ac_cv_func_isinf_in_math_h=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653         ac_cv_func_isinf_in_math_h=no
19654 fi
19655
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657   ac_ext=c
19658 ac_cpp='$CPP $CPPFLAGS'
19659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19662
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19665 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19666
19667 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE_ISINF_IN_MATH_H 1
19671 _ACEOF
19672
19673 fi
19674
19675 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19676 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19677 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19678   echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680   ac_ext=cpp
19681 ac_cpp='$CXXCPP $CPPFLAGS'
19682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19685
19686    cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 #include <cmath>
19693 int
19694 main ()
19695 {
19696 float f; isinf(f);
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext
19702 if { (ac_try="$ac_compile"
19703 case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708   (eval "$ac_compile") 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } &&
19715          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19716   { (case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_try") 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; } &&
19725          { ac_try='test -s conftest.$ac_objext'
19726   { (case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_try") 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_cv_func_isinf_in_cmath=yes
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740         ac_cv_func_isinf_in_cmath=no
19741 fi
19742
19743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744   ac_ext=c
19745 ac_cpp='$CPP $CPPFLAGS'
19746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19749
19750 fi
19751 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19752 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19753
19754 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19755
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_ISINF_IN_CMATH 1
19758 _ACEOF
19759
19760 fi
19761
19762 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19763 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19764 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767   ac_ext=cpp
19768 ac_cpp='$CXXCPP $CPPFLAGS'
19769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19772
19773    cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779 #include <cmath>
19780 int
19781 main ()
19782 {
19783 float f; std::isinf(f)}
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_compile") 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19803   { (case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_try") 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); }; } &&
19812          { ac_try='test -s conftest.$ac_objext'
19813   { (case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_try") 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   ac_cv_func_std_isinf_in_cmath=yes
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827         ac_cv_func_std_isinf_in_cmath=no
19828 fi
19829
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831   ac_ext=c
19832 ac_cpp='$CPP $CPPFLAGS'
19833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19836
19837 fi
19838 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19839 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19840
19841 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19842
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE_STD_ISINF_IN_CMATH 1
19845 _ACEOF
19846
19847 fi
19848
19849 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19850 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19851 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854   ac_ext=cpp
19855 ac_cpp='$CXXCPP $CPPFLAGS'
19856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19859
19860    cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h.  */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h.  */
19866 #include <ieeefp.h>
19867 int
19868 main ()
19869 {
19870 float f; finite(f);
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_compile") 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } &&
19889          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19890   { (case "(($ac_try" in
19891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892   *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895   (eval "$ac_try") 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); }; } &&
19899          { ac_try='test -s conftest.$ac_objext'
19900   { (case "(($ac_try" in
19901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902   *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905   (eval "$ac_try") 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; }; then
19909   ac_cv_func_finite_in_ieeefp_h=yes
19910 else
19911   echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914         ac_cv_func_finite_in_ieeefp_h=no
19915 fi
19916
19917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19918   ac_ext=c
19919 ac_cpp='$CPP $CPPFLAGS'
19920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19923
19924 fi
19925 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19926 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19927
19928 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19929
19930 cat >>confdefs.h <<\_ACEOF
19931 #define HAVE_FINITE_IN_IEEEFP_H 1
19932 _ACEOF
19933
19934 fi
19935
19936
19937
19938 if test "$llvm_cv_platform_type" = "Unix" ; then
19939
19940
19941 for ac_header in stdlib.h unistd.h
19942 do
19943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19948   echo $ECHO_N "(cached) $ECHO_C" >&6
19949 fi
19950 ac_res=`eval echo '${'$as_ac_Header'}'`
19951                { echo "$as_me:$LINENO: result: $ac_res" >&5
19952 echo "${ECHO_T}$ac_res" >&6; }
19953 else
19954   # Is the header compilable?
19955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 $ac_includes_default
19964 #include <$ac_header>
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970   *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973   (eval "$ac_compile") 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981   { (case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_try") 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; } &&
19990          { ac_try='test -s conftest.$ac_objext'
19991   { (case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_try") 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   ac_header_compiler=yes
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005         ac_header_compiler=no
20006 fi
20007
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20010 echo "${ECHO_T}$ac_header_compiler" >&6; }
20011
20012 # Is the header present?
20013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20015 cat >conftest.$ac_ext <<_ACEOF
20016 /* confdefs.h.  */
20017 _ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h.  */
20021 #include <$ac_header>
20022 _ACEOF
20023 if { (ac_try="$ac_cpp conftest.$ac_ext"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } >/dev/null; then
20036   if test -s conftest.err; then
20037     ac_cpp_err=$ac_c_preproc_warn_flag
20038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20039   else
20040     ac_cpp_err=
20041   fi
20042 else
20043   ac_cpp_err=yes
20044 fi
20045 if test -z "$ac_cpp_err"; then
20046   ac_header_preproc=yes
20047 else
20048   echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051   ac_header_preproc=no
20052 fi
20053
20054 rm -f conftest.err conftest.$ac_ext
20055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20056 echo "${ECHO_T}$ac_header_preproc" >&6; }
20057
20058 # So?  What about this header?
20059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20060   yes:no: )
20061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20065     ac_header_preproc=yes
20066     ;;
20067   no:yes:* )
20068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20080     ( cat <<\_ASBOX
20081 ## ----------------------------------- ##
20082 ## Report this to llvmbugs@cs.uiuc.edu ##
20083 ## ----------------------------------- ##
20084 _ASBOX
20085      ) | sed "s/^/$as_me: WARNING:     /" >&2
20086     ;;
20087 esac
20088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   eval "$as_ac_Header=\$ac_header_preproc"
20094 fi
20095 ac_res=`eval echo '${'$as_ac_Header'}'`
20096                { echo "$as_me:$LINENO: result: $ac_res" >&5
20097 echo "${ECHO_T}$ac_res" >&6; }
20098
20099 fi
20100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20101   cat >>confdefs.h <<_ACEOF
20102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20103 _ACEOF
20104
20105 fi
20106
20107 done
20108
20109
20110 for ac_func in getpagesize
20111 do
20112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20116   echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20126 #define $ac_func innocuous_$ac_func
20127
20128 /* System header to define __stub macros and hopefully few prototypes,
20129     which can conflict with char $ac_func (); below.
20130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20131     <limits.h> exists even on freestanding compilers.  */
20132
20133 #ifdef __STDC__
20134 # include <limits.h>
20135 #else
20136 # include <assert.h>
20137 #endif
20138
20139 #undef $ac_func
20140
20141 /* Override any GCC internal prototype to avoid an error.
20142    Use char because int might match the return type of a GCC
20143    builtin and then its argument prototype would still apply.  */
20144 #ifdef __cplusplus
20145 extern "C"
20146 #endif
20147 char $ac_func ();
20148 /* The GNU C library defines this for functions which it implements
20149     to always fail with ENOSYS.  Some functions are actually named
20150     something starting with __ and the normal name is an alias.  */
20151 #if defined __stub_$ac_func || defined __stub___$ac_func
20152 choke me
20153 #endif
20154
20155 int
20156 main ()
20157 {
20158 return $ac_func ();
20159   ;
20160   return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_link") 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } &&
20177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20178   { (case "(($ac_try" in
20179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180   *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183   (eval "$ac_try") 2>&5
20184   ac_status=$?
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); }; } &&
20187          { ac_try='test -s conftest$ac_exeext'
20188   { (case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193   (eval "$ac_try") 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; }; then
20197   eval "$as_ac_var=yes"
20198 else
20199   echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202         eval "$as_ac_var=no"
20203 fi
20204
20205 rm -f core conftest.err conftest.$ac_objext \
20206       conftest$ac_exeext conftest.$ac_ext
20207 fi
20208 ac_res=`eval echo '${'$as_ac_var'}'`
20209                { echo "$as_me:$LINENO: result: $ac_res" >&5
20210 echo "${ECHO_T}$ac_res" >&6; }
20211 if test `eval echo '${'$as_ac_var'}'` = yes; then
20212   cat >>confdefs.h <<_ACEOF
20213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20214 _ACEOF
20215
20216 fi
20217 done
20218
20219 { echo "$as_me:$LINENO: checking for working mmap" >&5
20220 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20221 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20222   echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224   if test "$cross_compiling" = yes; then
20225   ac_cv_func_mmap_fixed_mapped=no
20226 else
20227   cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 $ac_includes_default
20234 /* malloc might have been renamed as rpl_malloc. */
20235 #undef malloc
20236
20237 /* Thanks to Mike Haertel and Jim Avera for this test.
20238    Here is a matrix of mmap possibilities:
20239         mmap private not fixed
20240         mmap private fixed at somewhere currently unmapped
20241         mmap private fixed at somewhere already mapped
20242         mmap shared not fixed
20243         mmap shared fixed at somewhere currently unmapped
20244         mmap shared fixed at somewhere already mapped
20245    For private mappings, we should verify that changes cannot be read()
20246    back from the file, nor mmap's back from the file at a different
20247    address.  (There have been systems where private was not correctly
20248    implemented like the infamous i386 svr4.0, and systems where the
20249    VM page cache was not coherent with the file system buffer cache
20250    like early versions of FreeBSD and possibly contemporary NetBSD.)
20251    For shared mappings, we should conversely verify that changes get
20252    propagated back to all the places they're supposed to be.
20253
20254    Grep wants private fixed already mapped.
20255    The main things grep needs to know about mmap are:
20256    * does it exist and is it safe to write into the mmap'd area
20257    * how to use it (BSD variants)  */
20258
20259 #include <fcntl.h>
20260 #include <sys/mman.h>
20261
20262 #if !STDC_HEADERS && !HAVE_STDLIB_H
20263 char *malloc ();
20264 #endif
20265
20266 /* This mess was copied from the GNU getpagesize.h.  */
20267 #if !HAVE_GETPAGESIZE
20268 /* Assume that all systems that can run configure have sys/param.h.  */
20269 # if !HAVE_SYS_PARAM_H
20270 #  define HAVE_SYS_PARAM_H 1
20271 # endif
20272
20273 # ifdef _SC_PAGESIZE
20274 #  define getpagesize() sysconf(_SC_PAGESIZE)
20275 # else /* no _SC_PAGESIZE */
20276 #  if HAVE_SYS_PARAM_H
20277 #   include <sys/param.h>
20278 #   ifdef EXEC_PAGESIZE
20279 #    define getpagesize() EXEC_PAGESIZE
20280 #   else /* no EXEC_PAGESIZE */
20281 #    ifdef NBPG
20282 #     define getpagesize() NBPG * CLSIZE
20283 #     ifndef CLSIZE
20284 #      define CLSIZE 1
20285 #     endif /* no CLSIZE */
20286 #    else /* no NBPG */
20287 #     ifdef NBPC
20288 #      define getpagesize() NBPC
20289 #     else /* no NBPC */
20290 #      ifdef PAGESIZE
20291 #       define getpagesize() PAGESIZE
20292 #      endif /* PAGESIZE */
20293 #     endif /* no NBPC */
20294 #    endif /* no NBPG */
20295 #   endif /* no EXEC_PAGESIZE */
20296 #  else /* no HAVE_SYS_PARAM_H */
20297 #   define getpagesize() 8192   /* punt totally */
20298 #  endif /* no HAVE_SYS_PARAM_H */
20299 # endif /* no _SC_PAGESIZE */
20300
20301 #endif /* no HAVE_GETPAGESIZE */
20302
20303 int
20304 main ()
20305 {
20306   char *data, *data2, *data3;
20307   int i, pagesize;
20308   int fd;
20309
20310   pagesize = getpagesize ();
20311
20312   /* First, make a file with some known garbage in it. */
20313   data = (char *) malloc (pagesize);
20314   if (!data)
20315     return 1;
20316   for (i = 0; i < pagesize; ++i)
20317     *(data + i) = rand ();
20318   umask (0);
20319   fd = creat ("conftest.mmap", 0600);
20320   if (fd < 0)
20321     return 1;
20322   if (write (fd, data, pagesize) != pagesize)
20323     return 1;
20324   close (fd);
20325
20326   /* Next, try to mmap the file at a fixed address which already has
20327      something else allocated at it.  If we can, also make sure that
20328      we see the same garbage.  */
20329   fd = open ("conftest.mmap", O_RDWR);
20330   if (fd < 0)
20331     return 1;
20332   data2 = (char *) malloc (2 * pagesize);
20333   if (!data2)
20334     return 1;
20335   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20336   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20337                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20338     return 1;
20339   for (i = 0; i < pagesize; ++i)
20340     if (*(data + i) != *(data2 + i))
20341       return 1;
20342
20343   /* Finally, make sure that changes to the mapped area do not
20344      percolate back to the file as seen by read().  (This is a bug on
20345      some variants of i386 svr4.0.)  */
20346   for (i = 0; i < pagesize; ++i)
20347     *(data2 + i) = *(data2 + i) + 1;
20348   data3 = (char *) malloc (pagesize);
20349   if (!data3)
20350     return 1;
20351   if (read (fd, data3, pagesize) != pagesize)
20352     return 1;
20353   for (i = 0; i < pagesize; ++i)
20354     if (*(data + i) != *(data3 + i))
20355       return 1;
20356   close (fd);
20357   return 0;
20358 }
20359 _ACEOF
20360 rm -f conftest$ac_exeext
20361 if { (ac_try="$ac_link"
20362 case "(($ac_try" in
20363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364   *) ac_try_echo=$ac_try;;
20365 esac
20366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367   (eval "$ac_link") 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20371   { (case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_try") 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; }; then
20380   ac_cv_func_mmap_fixed_mapped=yes
20381 else
20382   echo "$as_me: program exited with status $ac_status" >&5
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ( exit $ac_status )
20387 ac_cv_func_mmap_fixed_mapped=no
20388 fi
20389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20390 fi
20391
20392
20393 fi
20394 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20395 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20396 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20397
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_MMAP 1
20400 _ACEOF
20401
20402 fi
20403 rm -f conftest.mmap
20404
20405   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20406 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20407 if test "${ac_cv_func_mmap_file+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410    ac_ext=c
20411 ac_cpp='$CPP $CPPFLAGS'
20412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20415
20416   if test "$cross_compiling" = yes; then
20417   ac_cv_func_mmap_file=no
20418 else
20419   cat >conftest.$ac_ext <<_ACEOF
20420
20421     /* confdefs.h.  */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h.  */
20426
20427 #include <sys/types.h>
20428 #include <sys/mman.h>
20429 #include <fcntl.h>
20430
20431 int
20432 main ()
20433 {
20434
20435   int fd;
20436   fd = creat ("foo",0777);
20437   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20438   unlink ("foo");
20439   return (fd != (int) MAP_FAILED);
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448   *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451   (eval "$ac_link") 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20455   { (case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_try") 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; }; then
20464   ac_cv_func_mmap_file=yes
20465 else
20466   echo "$as_me: program exited with status $ac_status" >&5
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470 ( exit $ac_status )
20471 ac_cv_func_mmap_file=no
20472 fi
20473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20474 fi
20475
20476
20477   ac_ext=c
20478 ac_cpp='$CPP $CPPFLAGS'
20479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20482
20483
20484 fi
20485 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20486 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20487 if test "$ac_cv_func_mmap_file" = yes; then
20488
20489 cat >>confdefs.h <<\_ACEOF
20490 #define HAVE_MMAP_FILE
20491 _ACEOF
20492
20493    MMAP_FILE=yes
20494
20495 fi
20496
20497   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20498 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20499 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20500   echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502   if test "$llvm_cv_os_type" = "Interix" ; then
20503    ac_cv_need_dev_zero_for_mmap=yes
20504  else
20505    ac_cv_need_dev_zero_for_mmap=no
20506  fi
20507
20508 fi
20509 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20510 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20511 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20512
20513 cat >>confdefs.h <<\_ACEOF
20514 #define NEED_DEV_ZERO_FOR_MMAP 1
20515 _ACEOF
20516
20517 fi
20518
20519   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20520   then
20521     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20522 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20523   fi
20524   if test "$ac_cv_func_mmap_file" = "no"
20525   then
20526     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20527 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20528   fi
20529 fi
20530
20531 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20532 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20533 ac_ext=cpp
20534 ac_cpp='$CXXCPP $CPPFLAGS'
20535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20538
20539 cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545 int main() {
20546         volatile unsigned long val = 1;
20547         __sync_synchronize();
20548         __sync_val_compare_and_swap(&val, 1, 0);
20549         __sync_add_and_fetch(&val, 1);
20550         __sync_sub_and_fetch(&val, 1);
20551         return 0;
20552       }
20553
20554 _ACEOF
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_link") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } &&
20569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570   { (case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_try") 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; } &&
20579          { ac_try='test -s conftest$ac_exeext'
20580   { (case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_try") 2>&5
20586   ac_status=$?
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); }; }; then
20589   ac_ext=c
20590 ac_cpp='$CPP $CPPFLAGS'
20591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20594
20595   { echo "$as_me:$LINENO: result: yes" >&5
20596 echo "${ECHO_T}yes" >&6; }
20597
20598 cat >>confdefs.h <<\_ACEOF
20599 #define LLVM_HAS_ATOMICS 1
20600 _ACEOF
20601
20602 else
20603   echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606         { echo "$as_me:$LINENO: result: no" >&5
20607 echo "${ECHO_T}no" >&6; }
20608
20609 cat >>confdefs.h <<\_ACEOF
20610 #define LLVM_HAS_ATOMICS 0
20611 _ACEOF
20612
20613   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20614 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20615 fi
20616
20617 rm -f core conftest.err conftest.$ac_objext \
20618       conftest$ac_exeext conftest.$ac_ext
20619
20620
20621 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20622   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20623 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20624 if test "${llvm_cv_linux_mixed+set}" = set; then
20625   echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627    ac_ext=c
20628 ac_cpp='$CPP $CPPFLAGS'
20629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20632
20633   cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639 #ifndef __x86_64__
20640        error: Not x86-64 even if uname says so!
20641       #endif
20642
20643 int
20644 main ()
20645 {
20646
20647   ;
20648   return 0;
20649 }
20650 _ACEOF
20651 rm -f conftest.$ac_objext
20652 if { (ac_try="$ac_compile"
20653 case "(($ac_try" in
20654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655   *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658   (eval "$ac_compile") 2>conftest.er1
20659   ac_status=$?
20660   grep -v '^ *+' conftest.er1 >conftest.err
20661   rm -f conftest.er1
20662   cat conftest.err >&5
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); } &&
20665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20666   { (case "(($ac_try" in
20667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668   *) ac_try_echo=$ac_try;;
20669 esac
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671   (eval "$ac_try") 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; } &&
20675          { ac_try='test -s conftest.$ac_objext'
20676   { (case "(($ac_try" in
20677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678   *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681   (eval "$ac_try") 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; }; then
20685   llvm_cv_linux_mixed=no
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690         llvm_cv_linux_mixed=yes
20691 fi
20692
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694   ac_ext=c
20695 ac_cpp='$CPP $CPPFLAGS'
20696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20699
20700
20701 fi
20702 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20703 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20704
20705   if test "$llvm_cv_linux_mixed" = "yes"; then
20706     llvm_cv_target_arch="x86"
20707     ARCH="x86"
20708   fi
20709 fi
20710
20711
20712 for ac_func in __dso_handle
20713 do
20714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20718   echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720   cat >conftest.$ac_ext <<_ACEOF
20721 /* confdefs.h.  */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h.  */
20726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20728 #define $ac_func innocuous_$ac_func
20729
20730 /* System header to define __stub macros and hopefully few prototypes,
20731     which can conflict with char $ac_func (); below.
20732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20733     <limits.h> exists even on freestanding compilers.  */
20734
20735 #ifdef __STDC__
20736 # include <limits.h>
20737 #else
20738 # include <assert.h>
20739 #endif
20740
20741 #undef $ac_func
20742
20743 /* Override any GCC internal prototype to avoid an error.
20744    Use char because int might match the return type of a GCC
20745    builtin and then its argument prototype would still apply.  */
20746 #ifdef __cplusplus
20747 extern "C"
20748 #endif
20749 char $ac_func ();
20750 /* The GNU C library defines this for functions which it implements
20751     to always fail with ENOSYS.  Some functions are actually named
20752     something starting with __ and the normal name is an alias.  */
20753 #if defined __stub_$ac_func || defined __stub___$ac_func
20754 choke me
20755 #endif
20756
20757 int
20758 main ()
20759 {
20760 return $ac_func ();
20761   ;
20762   return 0;
20763 }
20764 _ACEOF
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772   (eval "$ac_link") 2>conftest.er1
20773   ac_status=$?
20774   grep -v '^ *+' conftest.er1 >conftest.err
20775   rm -f conftest.er1
20776   cat conftest.err >&5
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } &&
20779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780   { (case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_try") 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; } &&
20789          { ac_try='test -s conftest$ac_exeext'
20790   { (case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_try") 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; }; then
20799   eval "$as_ac_var=yes"
20800 else
20801   echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804         eval "$as_ac_var=no"
20805 fi
20806
20807 rm -f core conftest.err conftest.$ac_objext \
20808       conftest$ac_exeext conftest.$ac_ext
20809 fi
20810 ac_res=`eval echo '${'$as_ac_var'}'`
20811                { echo "$as_me:$LINENO: result: $ac_res" >&5
20812 echo "${ECHO_T}$ac_res" >&6; }
20813 if test `eval echo '${'$as_ac_var'}'` = yes; then
20814   cat >>confdefs.h <<_ACEOF
20815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20816 _ACEOF
20817
20818 fi
20819 done
20820
20821
20822 SHLIBEXT=$libltdl_cv_shlibext
20823
20824
20825 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20826
20827
20828 # Translate the various configuration directories and other basic
20829 # information into substitutions that will end up in Makefile.config.in
20830 # that these configured values can be used by the makefiles
20831 if test "${prefix}" = "NONE" ; then
20832   prefix="/usr/local"
20833 fi
20834 eval LLVM_PREFIX="${prefix}";
20835 eval LLVM_BINDIR="${prefix}/bin";
20836 eval LLVM_LIBDIR="${prefix}/lib";
20837 eval LLVM_DATADIR="${prefix}/share/llvm";
20838 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20839 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20840 eval LLVM_INCLUDEDIR="${prefix}/include";
20841 eval LLVM_INFODIR="${prefix}/info";
20842 eval LLVM_MANDIR="${prefix}/man";
20843 LLVM_CONFIGTIME=`date`
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855 # Place the various directores into the config.h file as #defines so that we
20856 # can know about the installation paths within LLVM.
20857
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_PREFIX "$LLVM_PREFIX"
20860 _ACEOF
20861
20862
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_BINDIR "$LLVM_BINDIR"
20865 _ACEOF
20866
20867
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20870 _ACEOF
20871
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_DATADIR "$LLVM_DATADIR"
20875 _ACEOF
20876
20877
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20880 _ACEOF
20881
20882
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20885 _ACEOF
20886
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20890 _ACEOF
20891
20892
20893 cat >>confdefs.h <<_ACEOF
20894 #define LLVM_INFODIR "$LLVM_INFODIR"
20895 _ACEOF
20896
20897
20898 cat >>confdefs.h <<_ACEOF
20899 #define LLVM_MANDIR "$LLVM_MANDIR"
20900 _ACEOF
20901
20902
20903 cat >>confdefs.h <<_ACEOF
20904 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20905 _ACEOF
20906
20907
20908 cat >>confdefs.h <<_ACEOF
20909 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20910 _ACEOF
20911
20912
20913 # Determine which bindings to build.
20914 if test "$BINDINGS_TO_BUILD" = auto ; then
20915   BINDINGS_TO_BUILD=""
20916   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20917     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20918   fi
20919 fi
20920 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20921
20922
20923 # This isn't really configurey, but it avoids having to repeat the list in
20924 # other files.
20925 ALL_BINDINGS=ocaml
20926
20927
20928 # Do any work necessary to ensure that bindings have what they need.
20929 binding_prereqs_failed=0
20930 for a_binding in $BINDINGS_TO_BUILD ; do
20931   case "$a_binding" in
20932   ocaml)
20933     if test "x$OCAMLC" = x ; then
20934       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20935 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20936       binding_prereqs_failed=1
20937     fi
20938     if test "x$OCAMLDEP" = x ; then
20939       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20940 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20941       binding_prereqs_failed=1
20942     fi
20943     if test "x$OCAMLOPT" = x ; then
20944       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20946           fi
20947     if test "x$with_ocaml_libdir" != xauto ; then
20948       OCAML_LIBDIR=$with_ocaml_libdir
20949
20950     else
20951       ocaml_stdlib="`"$OCAMLC" -where`"
20952       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20953       then
20954         # ocaml stdlib is beneath our prefix; use stdlib
20955         OCAML_LIBDIR=$ocaml_stdlib
20956
20957       else
20958         # ocaml stdlib is outside our prefix; use libdir/ocaml
20959         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20960
20961       fi
20962     fi
20963     ;;
20964   esac
20965 done
20966 if test "$binding_prereqs_failed" = 1 ; then
20967   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20968 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20969    { (exit 1); exit 1; }; }
20970 fi
20971
20972 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20973 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20974 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977    ac_ext=cpp
20978 ac_cpp='$CXXCPP $CPPFLAGS'
20979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20982
20983   oldcxxflags="$CXXFLAGS"
20984   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20985   cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h.  */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h.  */
20991
20992 int
20993 main ()
20994 {
20995
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004   *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007   (eval "$ac_compile") 2>conftest.er1
21008   ac_status=$?
21009   grep -v '^ *+' conftest.er1 >conftest.err
21010   rm -f conftest.er1
21011   cat conftest.err >&5
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); } &&
21014          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21015   { (case "(($ac_try" in
21016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017   *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020   (eval "$ac_try") 2>&5
21021   ac_status=$?
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); }; } &&
21024          { ac_try='test -s conftest.$ac_objext'
21025   { (case "(($ac_try" in
21026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027   *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030   (eval "$ac_try") 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); }; }; then
21034   llvm_cv_cxx_visibility_inlines_hidden=yes
21035 else
21036   echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039         llvm_cv_cxx_visibility_inlines_hidden=no
21040 fi
21041
21042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043   CXXFLAGS="$oldcxxflags"
21044   ac_ext=c
21045 ac_cpp='$CPP $CPPFLAGS'
21046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21049
21050
21051 fi
21052 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21053 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21054 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21055   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21056
21057 else
21058   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21059
21060 fi
21061
21062
21063 if test "$llvm_cv_link_use_r" = "yes" ; then
21064   RPATH="-Wl,-R"
21065 else
21066   RPATH="-Wl,-rpath"
21067 fi
21068
21069
21070 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21071   RDYNAMIC="-Wl,-export-dynamic"
21072 else
21073   RDYNAMIC=""
21074 fi
21075
21076
21077
21078 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21079
21080
21081
21082
21083
21084
21085 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21086
21087 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21088
21089 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21090
21091 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21092
21093 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21094
21095
21096 ac_config_files="$ac_config_files Makefile.config"
21097
21098
21099 ac_config_files="$ac_config_files llvm.spec"
21100
21101
21102 ac_config_files="$ac_config_files docs/doxygen.cfg"
21103
21104 if test -f ${srcdir}/tools/clang/README.txt; then
21105   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21106
21107 fi
21108
21109 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21110
21111
21112 ac_config_commands="$ac_config_commands setup"
21113
21114 ac_config_commands="$ac_config_commands Makefile"
21115
21116
21117 ac_config_commands="$ac_config_commands Makefile.common"
21118
21119
21120 ac_config_commands="$ac_config_commands examples/Makefile"
21121
21122
21123 ac_config_commands="$ac_config_commands lib/Makefile"
21124
21125
21126 ac_config_commands="$ac_config_commands runtime/Makefile"
21127
21128
21129 ac_config_commands="$ac_config_commands test/Makefile"
21130
21131
21132 ac_config_commands="$ac_config_commands test/Makefile.tests"
21133
21134
21135 ac_config_commands="$ac_config_commands unittests/Makefile"
21136
21137
21138 ac_config_commands="$ac_config_commands tools/Makefile"
21139
21140
21141 ac_config_commands="$ac_config_commands utils/Makefile"
21142
21143
21144 ac_config_commands="$ac_config_commands projects/Makefile"
21145
21146
21147 ac_config_commands="$ac_config_commands bindings/Makefile"
21148
21149
21150 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21151
21152
21153
21154 cat >confcache <<\_ACEOF
21155 # This file is a shell script that caches the results of configure
21156 # tests run on this system so they can be shared between configure
21157 # scripts and configure runs, see configure's option --config-cache.
21158 # It is not useful on other systems.  If it contains results you don't
21159 # want to keep, you may remove or edit it.
21160 #
21161 # config.status only pays attention to the cache file if you give it
21162 # the --recheck option to rerun configure.
21163 #
21164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21166 # following values.
21167
21168 _ACEOF
21169
21170 # The following way of writing the cache mishandles newlines in values,
21171 # but we know of no workaround that is simple, portable, and efficient.
21172 # So, we kill variables containing newlines.
21173 # Ultrix sh set writes to stderr and can't be redirected directly,
21174 # and sets the high bit in the cache file unless we assign to the vars.
21175 (
21176   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21177     eval ac_val=\$$ac_var
21178     case $ac_val in #(
21179     *${as_nl}*)
21180       case $ac_var in #(
21181       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21182 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21183       esac
21184       case $ac_var in #(
21185       _ | IFS | as_nl) ;; #(
21186       *) $as_unset $ac_var ;;
21187       esac ;;
21188     esac
21189   done
21190
21191   (set) 2>&1 |
21192     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21193     *${as_nl}ac_space=\ *)
21194       # `set' does not quote correctly, so add quotes (double-quote
21195       # substitution turns \\\\ into \\, and sed turns \\ into \).
21196       sed -n \
21197         "s/'/'\\\\''/g;
21198           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21199       ;; #(
21200     *)
21201       # `set' quotes correctly as required by POSIX, so do not add quotes.
21202       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21203       ;;
21204     esac |
21205     sort
21206 ) |
21207   sed '
21208      /^ac_cv_env_/b end
21209      t clear
21210      :clear
21211      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21212      t end
21213      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21214      :end' >>confcache
21215 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21216   if test -w "$cache_file"; then
21217     test "x$cache_file" != "x/dev/null" &&
21218       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21219 echo "$as_me: updating cache $cache_file" >&6;}
21220     cat confcache >$cache_file
21221   else
21222     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21223 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21224   fi
21225 fi
21226 rm -f confcache
21227
21228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21229 # Let make expand exec_prefix.
21230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21231
21232 DEFS=-DHAVE_CONFIG_H
21233
21234 ac_libobjs=
21235 ac_ltlibobjs=
21236 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21237   # 1. Remove the extension, and $U if already installed.
21238   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21239   ac_i=`echo "$ac_i" | sed "$ac_script"`
21240   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21241   #    will be set to the directory where LIBOBJS objects are built.
21242   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21243   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21244 done
21245 LIBOBJS=$ac_libobjs
21246
21247 LTLIBOBJS=$ac_ltlibobjs
21248
21249
21250 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21251   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21252 Usually this means the macro was only invoked conditionally." >&5
21253 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21254 Usually this means the macro was only invoked conditionally." >&2;}
21255    { (exit 1); exit 1; }; }
21256 fi
21257 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21258   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21259 Usually this means the macro was only invoked conditionally." >&5
21260 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21261 Usually this means the macro was only invoked conditionally." >&2;}
21262    { (exit 1); exit 1; }; }
21263 fi
21264
21265 : ${CONFIG_STATUS=./config.status}
21266 ac_clean_files_save=$ac_clean_files
21267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21270 cat >$CONFIG_STATUS <<_ACEOF
21271 #! $SHELL
21272 # Generated by $as_me.
21273 # Run this file to recreate the current configuration.
21274 # Compiler output produced by configure, useful for debugging
21275 # configure, is in config.log if it exists.
21276
21277 debug=false
21278 ac_cs_recheck=false
21279 ac_cs_silent=false
21280 SHELL=\${CONFIG_SHELL-$SHELL}
21281 _ACEOF
21282
21283 cat >>$CONFIG_STATUS <<\_ACEOF
21284 ## --------------------- ##
21285 ## M4sh Initialization.  ##
21286 ## --------------------- ##
21287
21288 # Be Bourne compatible
21289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21290   emulate sh
21291   NULLCMD=:
21292   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21293   # is contrary to our usage.  Disable this feature.
21294   alias -g '${1+"$@"}'='"$@"'
21295   setopt NO_GLOB_SUBST
21296 else
21297   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21298 fi
21299 BIN_SH=xpg4; export BIN_SH # for Tru64
21300 DUALCASE=1; export DUALCASE # for MKS sh
21301
21302
21303 # PATH needs CR
21304 # Avoid depending upon Character Ranges.
21305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21308 as_cr_digits='0123456789'
21309 as_cr_alnum=$as_cr_Letters$as_cr_digits
21310
21311 # The user is always right.
21312 if test "${PATH_SEPARATOR+set}" != set; then
21313   echo "#! /bin/sh" >conf$$.sh
21314   echo  "exit 0"   >>conf$$.sh
21315   chmod +x conf$$.sh
21316   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21317     PATH_SEPARATOR=';'
21318   else
21319     PATH_SEPARATOR=:
21320   fi
21321   rm -f conf$$.sh
21322 fi
21323
21324 # Support unset when possible.
21325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21326   as_unset=unset
21327 else
21328   as_unset=false
21329 fi
21330
21331
21332 # IFS
21333 # We need space, tab and new line, in precisely that order.  Quoting is
21334 # there to prevent editors from complaining about space-tab.
21335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21336 # splitting by setting IFS to empty value.)
21337 as_nl='
21338 '
21339 IFS=" ""        $as_nl"
21340
21341 # Find who we are.  Look in the path if we contain no directory separator.
21342 case $0 in
21343   *[\\/]* ) as_myself=$0 ;;
21344   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21345 for as_dir in $PATH
21346 do
21347   IFS=$as_save_IFS
21348   test -z "$as_dir" && as_dir=.
21349   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21350 done
21351 IFS=$as_save_IFS
21352
21353      ;;
21354 esac
21355 # We did not find ourselves, most probably we were run as `sh COMMAND'
21356 # in which case we are not to be found in the path.
21357 if test "x$as_myself" = x; then
21358   as_myself=$0
21359 fi
21360 if test ! -f "$as_myself"; then
21361   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21362   { (exit 1); exit 1; }
21363 fi
21364
21365 # Work around bugs in pre-3.0 UWIN ksh.
21366 for as_var in ENV MAIL MAILPATH
21367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21368 done
21369 PS1='$ '
21370 PS2='> '
21371 PS4='+ '
21372
21373 # NLS nuisances.
21374 for as_var in \
21375   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21376   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21377   LC_TELEPHONE LC_TIME
21378 do
21379   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21380     eval $as_var=C; export $as_var
21381   else
21382     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21383   fi
21384 done
21385
21386 # Required to use basename.
21387 if expr a : '\(a\)' >/dev/null 2>&1 &&
21388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21389   as_expr=expr
21390 else
21391   as_expr=false
21392 fi
21393
21394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21395   as_basename=basename
21396 else
21397   as_basename=false
21398 fi
21399
21400
21401 # Name of the executable.
21402 as_me=`$as_basename -- "$0" ||
21403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21404          X"$0" : 'X\(//\)$' \| \
21405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21406 echo X/"$0" |
21407     sed '/^.*\/\([^/][^/]*\)\/*$/{
21408             s//\1/
21409             q
21410           }
21411           /^X\/\(\/\/\)$/{
21412             s//\1/
21413             q
21414           }
21415           /^X\/\(\/\).*/{
21416             s//\1/
21417             q
21418           }
21419           s/.*/./; q'`
21420
21421 # CDPATH.
21422 $as_unset CDPATH
21423
21424
21425
21426   as_lineno_1=$LINENO
21427   as_lineno_2=$LINENO
21428   test "x$as_lineno_1" != "x$as_lineno_2" &&
21429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21430
21431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21432   # uniformly replaced by the line number.  The first 'sed' inserts a
21433   # line-number line after each line using $LINENO; the second 'sed'
21434   # does the real work.  The second script uses 'N' to pair each
21435   # line-number line with the line containing $LINENO, and appends
21436   # trailing '-' during substitution so that $LINENO is not a special
21437   # case at line end.
21438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21440   # E. McMahon (1931-1989) for sed's syntax.  :-)
21441   sed -n '
21442     p
21443     /[$]LINENO/=
21444   ' <$as_myself |
21445     sed '
21446       s/[$]LINENO.*/&-/
21447       t lineno
21448       b
21449       :lineno
21450       N
21451       :loop
21452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21453       t loop
21454       s/-\n.*//
21455     ' >$as_me.lineno &&
21456   chmod +x "$as_me.lineno" ||
21457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21458    { (exit 1); exit 1; }; }
21459
21460   # Don't try to exec as it changes $[0], causing all sort of problems
21461   # (the dirname of $[0] is not the place where we might find the
21462   # original and so on.  Autoconf is especially sensitive to this).
21463   . "./$as_me.lineno"
21464   # Exit status is that of the last command.
21465   exit
21466 }
21467
21468
21469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21470   as_dirname=dirname
21471 else
21472   as_dirname=false
21473 fi
21474
21475 ECHO_C= ECHO_N= ECHO_T=
21476 case `echo -n x` in
21477 -n*)
21478   case `echo 'x\c'` in
21479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21480   *)   ECHO_C='\c';;
21481   esac;;
21482 *)
21483   ECHO_N='-n';;
21484 esac
21485
21486 if expr a : '\(a\)' >/dev/null 2>&1 &&
21487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21488   as_expr=expr
21489 else
21490   as_expr=false
21491 fi
21492
21493 rm -f conf$$ conf$$.exe conf$$.file
21494 if test -d conf$$.dir; then
21495   rm -f conf$$.dir/conf$$.file
21496 else
21497   rm -f conf$$.dir
21498   mkdir conf$$.dir
21499 fi
21500 echo >conf$$.file
21501 if ln -s conf$$.file conf$$ 2>/dev/null; then
21502   as_ln_s='ln -s'
21503   # ... but there are two gotchas:
21504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21506   # In both cases, we have to default to `cp -p'.
21507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21508     as_ln_s='cp -p'
21509 elif ln conf$$.file conf$$ 2>/dev/null; then
21510   as_ln_s=ln
21511 else
21512   as_ln_s='cp -p'
21513 fi
21514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21515 rmdir conf$$.dir 2>/dev/null
21516
21517 if mkdir -p . 2>/dev/null; then
21518   as_mkdir_p=:
21519 else
21520   test -d ./-p && rmdir ./-p
21521   as_mkdir_p=false
21522 fi
21523
21524 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21525 # systems may use methods other than mode bits to determine executability.
21526 cat >conf$$.file <<_ASEOF
21527 #! /bin/sh
21528 exit 0
21529 _ASEOF
21530 chmod +x conf$$.file
21531 if test -x conf$$.file >/dev/null 2>&1; then
21532   as_executable_p="test -x"
21533 else
21534   as_executable_p=:
21535 fi
21536 rm -f conf$$.file
21537
21538 # Sed expression to map a string onto a valid CPP name.
21539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21540
21541 # Sed expression to map a string onto a valid variable name.
21542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21543
21544
21545 exec 6>&1
21546
21547 # Save the log message, to keep $[0] and so on meaningful, and to
21548 # report actual input values of CONFIG_FILES etc. instead of their
21549 # values after options handling.
21550 ac_log="
21551 This file was extended by llvm $as_me 3.1svn, which was
21552 generated by GNU Autoconf 2.60.  Invocation command line was
21553
21554   CONFIG_FILES    = $CONFIG_FILES
21555   CONFIG_HEADERS  = $CONFIG_HEADERS
21556   CONFIG_LINKS    = $CONFIG_LINKS
21557   CONFIG_COMMANDS = $CONFIG_COMMANDS
21558   $ $0 $@
21559
21560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21561 "
21562
21563 _ACEOF
21564
21565 cat >>$CONFIG_STATUS <<_ACEOF
21566 # Files that config.status was made for.
21567 config_files="$ac_config_files"
21568 config_headers="$ac_config_headers"
21569 config_commands="$ac_config_commands"
21570
21571 _ACEOF
21572
21573 cat >>$CONFIG_STATUS <<\_ACEOF
21574 ac_cs_usage="\
21575 \`$as_me' instantiates files from templates according to the
21576 current configuration.
21577
21578 Usage: $0 [OPTIONS] [FILE]...
21579
21580   -h, --help       print this help, then exit
21581   -V, --version    print version number, then exit
21582   -q, --quiet      do not print progress messages
21583   -d, --debug      don't remove temporary files
21584       --recheck    update $as_me by reconfiguring in the same conditions
21585   --file=FILE[:TEMPLATE]
21586                    instantiate the configuration file FILE
21587   --header=FILE[:TEMPLATE]
21588                    instantiate the configuration header FILE
21589
21590 Configuration files:
21591 $config_files
21592
21593 Configuration headers:
21594 $config_headers
21595
21596 Configuration commands:
21597 $config_commands
21598
21599 Report bugs to <bug-autoconf@gnu.org>."
21600
21601 _ACEOF
21602 cat >>$CONFIG_STATUS <<_ACEOF
21603 ac_cs_version="\\
21604 llvm config.status 3.1svn
21605 configured by $0, generated by GNU Autoconf 2.60,
21606   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21607
21608 Copyright (C) 2006 Free Software Foundation, Inc.
21609 This config.status script is free software; the Free Software Foundation
21610 gives unlimited permission to copy, distribute and modify it."
21611
21612 ac_pwd='$ac_pwd'
21613 srcdir='$srcdir'
21614 INSTALL='$INSTALL'
21615 _ACEOF
21616
21617 cat >>$CONFIG_STATUS <<\_ACEOF
21618 # If no file are specified by the user, then we need to provide default
21619 # value.  By we need to know if files were specified by the user.
21620 ac_need_defaults=:
21621 while test $# != 0
21622 do
21623   case $1 in
21624   --*=*)
21625     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21626     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21627     ac_shift=:
21628     ;;
21629   *)
21630     ac_option=$1
21631     ac_optarg=$2
21632     ac_shift=shift
21633     ;;
21634   esac
21635
21636   case $ac_option in
21637   # Handling of the options.
21638   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21639     ac_cs_recheck=: ;;
21640   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21641     echo "$ac_cs_version"; exit ;;
21642   --debug | --debu | --deb | --de | --d | -d )
21643     debug=: ;;
21644   --file | --fil | --fi | --f )
21645     $ac_shift
21646     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21647     ac_need_defaults=false;;
21648   --header | --heade | --head | --hea )
21649     $ac_shift
21650     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21651     ac_need_defaults=false;;
21652   --he | --h)
21653     # Conflict between --help and --header
21654     { echo "$as_me: error: ambiguous option: $1
21655 Try \`$0 --help' for more information." >&2
21656    { (exit 1); exit 1; }; };;
21657   --help | --hel | -h )
21658     echo "$ac_cs_usage"; exit ;;
21659   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21660   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21661     ac_cs_silent=: ;;
21662
21663   # This is an error.
21664   -*) { echo "$as_me: error: unrecognized option: $1
21665 Try \`$0 --help' for more information." >&2
21666    { (exit 1); exit 1; }; } ;;
21667
21668   *) ac_config_targets="$ac_config_targets $1"
21669      ac_need_defaults=false ;;
21670
21671   esac
21672   shift
21673 done
21674
21675 ac_configure_extra_args=
21676
21677 if $ac_cs_silent; then
21678   exec 6>/dev/null
21679   ac_configure_extra_args="$ac_configure_extra_args --silent"
21680 fi
21681
21682 _ACEOF
21683 cat >>$CONFIG_STATUS <<_ACEOF
21684 if \$ac_cs_recheck; then
21685   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21686   CONFIG_SHELL=$SHELL
21687   export CONFIG_SHELL
21688   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21689 fi
21690
21691 _ACEOF
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21693 exec 5>>config.log
21694 {
21695   echo
21696   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21697 ## Running $as_me. ##
21698 _ASBOX
21699   echo "$ac_log"
21700 } >&5
21701
21702 _ACEOF
21703 cat >>$CONFIG_STATUS <<_ACEOF
21704 #
21705 # INIT-COMMANDS
21706 #
21707 llvm_src="${srcdir}"
21708
21709 _ACEOF
21710
21711 cat >>$CONFIG_STATUS <<\_ACEOF
21712
21713 # Handling of arguments.
21714 for ac_config_target in $ac_config_targets
21715 do
21716   case $ac_config_target in
21717     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21718     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21719     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21720     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21721     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21722     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21723     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21724     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21725     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21726     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21727     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21728     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21729     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21730     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21731     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21732     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21733     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21734     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21735     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21736     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21737     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21738     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21739     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21740     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21741     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21742     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21743
21744   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21745 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21746    { (exit 1); exit 1; }; };;
21747   esac
21748 done
21749
21750
21751 # If the user did not use the arguments to specify the items to instantiate,
21752 # then the envvar interface is used.  Set only those that are not.
21753 # We use the long form for the default assignment because of an extremely
21754 # bizarre bug on SunOS 4.1.3.
21755 if $ac_need_defaults; then
21756   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21757   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21758   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21759 fi
21760
21761 # Have a temporary directory for convenience.  Make it in the build tree
21762 # simply because there is no reason against having it here, and in addition,
21763 # creating and moving files from /tmp can sometimes cause problems.
21764 # Hook for its removal unless debugging.
21765 # Note that there is a small window in which the directory will not be cleaned:
21766 # after its creation but before its name has been assigned to `$tmp'.
21767 $debug ||
21768 {
21769   tmp=
21770   trap 'exit_status=$?
21771   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21772 ' 0
21773   trap '{ (exit 1); exit 1; }' 1 2 13 15
21774 }
21775 # Create a (secure) tmp directory for tmp files.
21776
21777 {
21778   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21779   test -n "$tmp" && test -d "$tmp"
21780 }  ||
21781 {
21782   tmp=./conf$$-$RANDOM
21783   (umask 077 && mkdir "$tmp")
21784 } ||
21785 {
21786    echo "$me: cannot create a temporary directory in ." >&2
21787    { (exit 1); exit 1; }
21788 }
21789
21790 #
21791 # Set up the sed scripts for CONFIG_FILES section.
21792 #
21793
21794 # No need to generate the scripts if there are no CONFIG_FILES.
21795 # This happens for instance when ./config.status config.h
21796 if test -n "$CONFIG_FILES"; then
21797
21798 _ACEOF
21799
21800
21801
21802 ac_delim='%!_!# '
21803 for ac_last_try in false false false false false :; do
21804   cat >conf$$subs.sed <<_ACEOF
21805 SHELL!$SHELL$ac_delim
21806 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21807 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21808 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21809 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21810 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21811 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21812 exec_prefix!$exec_prefix$ac_delim
21813 prefix!$prefix$ac_delim
21814 program_transform_name!$program_transform_name$ac_delim
21815 bindir!$bindir$ac_delim
21816 sbindir!$sbindir$ac_delim
21817 libexecdir!$libexecdir$ac_delim
21818 datarootdir!$datarootdir$ac_delim
21819 datadir!$datadir$ac_delim
21820 sysconfdir!$sysconfdir$ac_delim
21821 sharedstatedir!$sharedstatedir$ac_delim
21822 localstatedir!$localstatedir$ac_delim
21823 includedir!$includedir$ac_delim
21824 oldincludedir!$oldincludedir$ac_delim
21825 docdir!$docdir$ac_delim
21826 infodir!$infodir$ac_delim
21827 htmldir!$htmldir$ac_delim
21828 dvidir!$dvidir$ac_delim
21829 pdfdir!$pdfdir$ac_delim
21830 psdir!$psdir$ac_delim
21831 libdir!$libdir$ac_delim
21832 localedir!$localedir$ac_delim
21833 mandir!$mandir$ac_delim
21834 DEFS!$DEFS$ac_delim
21835 ECHO_C!$ECHO_C$ac_delim
21836 ECHO_N!$ECHO_N$ac_delim
21837 ECHO_T!$ECHO_T$ac_delim
21838 LIBS!$LIBS$ac_delim
21839 build_alias!$build_alias$ac_delim
21840 host_alias!$host_alias$ac_delim
21841 target_alias!$target_alias$ac_delim
21842 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21843 CC!$CC$ac_delim
21844 CFLAGS!$CFLAGS$ac_delim
21845 LDFLAGS!$LDFLAGS$ac_delim
21846 CPPFLAGS!$CPPFLAGS$ac_delim
21847 ac_ct_CC!$ac_ct_CC$ac_delim
21848 EXEEXT!$EXEEXT$ac_delim
21849 OBJEXT!$OBJEXT$ac_delim
21850 CXX!$CXX$ac_delim
21851 CXXFLAGS!$CXXFLAGS$ac_delim
21852 ac_ct_CXX!$ac_ct_CXX$ac_delim
21853 CPP!$CPP$ac_delim
21854 subdirs!$subdirs$ac_delim
21855 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21856 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21857 build!$build$ac_delim
21858 build_cpu!$build_cpu$ac_delim
21859 build_vendor!$build_vendor$ac_delim
21860 build_os!$build_os$ac_delim
21861 host!$host$ac_delim
21862 host_cpu!$host_cpu$ac_delim
21863 host_vendor!$host_vendor$ac_delim
21864 host_os!$host_os$ac_delim
21865 target!$target$ac_delim
21866 target_cpu!$target_cpu$ac_delim
21867 target_vendor!$target_vendor$ac_delim
21868 target_os!$target_os$ac_delim
21869 OS!$OS$ac_delim
21870 HOST_OS!$HOST_OS$ac_delim
21871 TARGET_OS!$TARGET_OS$ac_delim
21872 LINKALL!$LINKALL$ac_delim
21873 NOLINKALL!$NOLINKALL$ac_delim
21874 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21875 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21876 ARCH!$ARCH$ac_delim
21877 ENDIAN!$ENDIAN$ac_delim
21878 GREP!$GREP$ac_delim
21879 EGREP!$EGREP$ac_delim
21880 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21881 BUILD_CC!$BUILD_CC$ac_delim
21882 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21883 BUILD_CXX!$BUILD_CXX$ac_delim
21884 CVSBUILD!$CVSBUILD$ac_delim
21885 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21886 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21887 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21888 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21889 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21890 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21891 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21892 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21893 JIT!$JIT$ac_delim
21894 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21895 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21896 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21897 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21898 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21899 ENABLE_PIC!$ENABLE_PIC$ac_delim
21900 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21901 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21902 _ACEOF
21903
21904   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21905     break
21906   elif $ac_last_try; then
21907     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21909    { (exit 1); exit 1; }; }
21910   else
21911     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21912   fi
21913 done
21914
21915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21916 if test -n "$ac_eof"; then
21917   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21918   ac_eof=`expr $ac_eof + 1`
21919 fi
21920
21921 cat >>$CONFIG_STATUS <<_ACEOF
21922 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21924 _ACEOF
21925 sed '
21926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21927 s/^/s,@/; s/!/@,|#_!!_#|/
21928 :n
21929 t n
21930 s/'"$ac_delim"'$/,g/; t
21931 s/$/\\/; p
21932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21933 ' >>$CONFIG_STATUS <conf$$subs.sed
21934 rm -f conf$$subs.sed
21935 cat >>$CONFIG_STATUS <<_ACEOF
21936 CEOF$ac_eof
21937 _ACEOF
21938
21939
21940 ac_delim='%!_!# '
21941 for ac_last_try in false false false false false :; do
21942   cat >conf$$subs.sed <<_ACEOF
21943 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21944 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21945 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21946 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21947 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21948 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21949 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21950 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21951 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21952 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21953 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21954 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21955 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21956 NM!$NM$ac_delim
21957 ifGNUmake!$ifGNUmake$ac_delim
21958 LN_S!$LN_S$ac_delim
21959 CMP!$CMP$ac_delim
21960 CP!$CP$ac_delim
21961 DATE!$DATE$ac_delim
21962 FIND!$FIND$ac_delim
21963 MKDIR!$MKDIR$ac_delim
21964 MV!$MV$ac_delim
21965 RANLIB!$RANLIB$ac_delim
21966 AR!$AR$ac_delim
21967 RM!$RM$ac_delim
21968 SED!$SED$ac_delim
21969 TAR!$TAR$ac_delim
21970 BINPWD!$BINPWD$ac_delim
21971 GRAPHVIZ!$GRAPHVIZ$ac_delim
21972 DOT!$DOT$ac_delim
21973 FDP!$FDP$ac_delim
21974 NEATO!$NEATO$ac_delim
21975 TWOPI!$TWOPI$ac_delim
21976 CIRCO!$CIRCO$ac_delim
21977 GV!$GV$ac_delim
21978 DOTTY!$DOTTY$ac_delim
21979 XDOT_PY!$XDOT_PY$ac_delim
21980 PERL!$PERL$ac_delim
21981 HAVE_PERL!$HAVE_PERL$ac_delim
21982 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21983 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21984 INSTALL_DATA!$INSTALL_DATA$ac_delim
21985 BZIP2!$BZIP2$ac_delim
21986 CAT!$CAT$ac_delim
21987 DOXYGEN!$DOXYGEN$ac_delim
21988 GROFF!$GROFF$ac_delim
21989 GZIPBIN!$GZIPBIN$ac_delim
21990 POD2HTML!$POD2HTML$ac_delim
21991 POD2MAN!$POD2MAN$ac_delim
21992 PDFROFF!$PDFROFF$ac_delim
21993 RUNTEST!$RUNTEST$ac_delim
21994 TCLSH!$TCLSH$ac_delim
21995 ZIP!$ZIP$ac_delim
21996 OCAMLC!$OCAMLC$ac_delim
21997 OCAMLOPT!$OCAMLOPT$ac_delim
21998 OCAMLDEP!$OCAMLDEP$ac_delim
21999 OCAMLDOC!$OCAMLDOC$ac_delim
22000 GAS!$GAS$ac_delim
22001 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22002 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22003 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22004 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22005 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22006 LIBADD_DL!$LIBADD_DL$ac_delim
22007 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22008 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22009 USE_UDIS86!$USE_UDIS86$ac_delim
22010 USE_OPROFILE!$USE_OPROFILE$ac_delim
22011 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22012 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22013 MMAP_FILE!$MMAP_FILE$ac_delim
22014 SHLIBEXT!$SHLIBEXT$ac_delim
22015 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22016 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22017 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22018 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22019 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22020 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22021 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22022 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22023 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22024 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22025 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22026 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22027 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22028 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22029 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22030 RPATH!$RPATH$ac_delim
22031 RDYNAMIC!$RDYNAMIC$ac_delim
22032 LIBOBJS!$LIBOBJS$ac_delim
22033 LTLIBOBJS!$LTLIBOBJS$ac_delim
22034 _ACEOF
22035
22036   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22037     break
22038   elif $ac_last_try; then
22039     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22041    { (exit 1); exit 1; }; }
22042   else
22043     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22044   fi
22045 done
22046
22047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22048 if test -n "$ac_eof"; then
22049   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22050   ac_eof=`expr $ac_eof + 1`
22051 fi
22052
22053 cat >>$CONFIG_STATUS <<_ACEOF
22054 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22056 _ACEOF
22057 sed '
22058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22059 s/^/s,@/; s/!/@,|#_!!_#|/
22060 :n
22061 t n
22062 s/'"$ac_delim"'$/,g/; t
22063 s/$/\\/; p
22064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22065 ' >>$CONFIG_STATUS <conf$$subs.sed
22066 rm -f conf$$subs.sed
22067 cat >>$CONFIG_STATUS <<_ACEOF
22068 :end
22069 s/|#_!!_#|//g
22070 CEOF$ac_eof
22071 _ACEOF
22072
22073
22074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22076 # trailing colons and then remove the whole line if VPATH becomes empty
22077 # (actually we leave an empty line to preserve line numbers).
22078 if test "x$srcdir" = x.; then
22079   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22080 s/:*\$(srcdir):*/:/
22081 s/:*\${srcdir}:*/:/
22082 s/:*@srcdir@:*/:/
22083 s/^\([^=]*=[     ]*\):*/\1/
22084 s/:*$//
22085 s/^[^=]*=[       ]*$//
22086 }'
22087 fi
22088
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22090 fi # test -n "$CONFIG_FILES"
22091
22092
22093 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22094 do
22095   case $ac_tag in
22096   :[FHLC]) ac_mode=$ac_tag; continue;;
22097   esac
22098   case $ac_mode$ac_tag in
22099   :[FHL]*:*);;
22100   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22101 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22102    { (exit 1); exit 1; }; };;
22103   :[FH]-) ac_tag=-:-;;
22104   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22105   esac
22106   ac_save_IFS=$IFS
22107   IFS=:
22108   set x $ac_tag
22109   IFS=$ac_save_IFS
22110   shift
22111   ac_file=$1
22112   shift
22113
22114   case $ac_mode in
22115   :L) ac_source=$1;;
22116   :[FH])
22117     ac_file_inputs=
22118     for ac_f
22119     do
22120       case $ac_f in
22121       -) ac_f="$tmp/stdin";;
22122       *) # Look for the file first in the build tree, then in the source tree
22123          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22124          # because $ac_f cannot contain `:'.
22125          test -f "$ac_f" ||
22126            case $ac_f in
22127            [\\/$]*) false;;
22128            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22129            esac ||
22130            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22131 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22132    { (exit 1); exit 1; }; };;
22133       esac
22134       ac_file_inputs="$ac_file_inputs $ac_f"
22135     done
22136
22137     # Let's still pretend it is `configure' which instantiates (i.e., don't
22138     # use $as_me), people would be surprised to read:
22139     #    /* config.h.  Generated by config.status.  */
22140     configure_input="Generated from "`IFS=:
22141           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22142     if test x"$ac_file" != x-; then
22143       configure_input="$ac_file.  $configure_input"
22144       { echo "$as_me:$LINENO: creating $ac_file" >&5
22145 echo "$as_me: creating $ac_file" >&6;}
22146     fi
22147
22148     case $ac_tag in
22149     *:-:* | *:-) cat >"$tmp/stdin";;
22150     esac
22151     ;;
22152   esac
22153
22154   ac_dir=`$as_dirname -- "$ac_file" ||
22155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156          X"$ac_file" : 'X\(//\)[^/]' \| \
22157          X"$ac_file" : 'X\(//\)$' \| \
22158          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22159 echo X"$ac_file" |
22160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161             s//\1/
22162             q
22163           }
22164           /^X\(\/\/\)[^/].*/{
22165             s//\1/
22166             q
22167           }
22168           /^X\(\/\/\)$/{
22169             s//\1/
22170             q
22171           }
22172           /^X\(\/\).*/{
22173             s//\1/
22174             q
22175           }
22176           s/.*/./; q'`
22177   { as_dir="$ac_dir"
22178   case $as_dir in #(
22179   -*) as_dir=./$as_dir;;
22180   esac
22181   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22182     as_dirs=
22183     while :; do
22184       case $as_dir in #(
22185       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186       *) as_qdir=$as_dir;;
22187       esac
22188       as_dirs="'$as_qdir' $as_dirs"
22189       as_dir=`$as_dirname -- "$as_dir" ||
22190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191          X"$as_dir" : 'X\(//\)[^/]' \| \
22192          X"$as_dir" : 'X\(//\)$' \| \
22193          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22194 echo X"$as_dir" |
22195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196             s//\1/
22197             q
22198           }
22199           /^X\(\/\/\)[^/].*/{
22200             s//\1/
22201             q
22202           }
22203           /^X\(\/\/\)$/{
22204             s//\1/
22205             q
22206           }
22207           /^X\(\/\).*/{
22208             s//\1/
22209             q
22210           }
22211           s/.*/./; q'`
22212       test -d "$as_dir" && break
22213     done
22214     test -z "$as_dirs" || eval "mkdir $as_dirs"
22215   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217    { (exit 1); exit 1; }; }; }
22218   ac_builddir=.
22219
22220 case "$ac_dir" in
22221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222 *)
22223   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22224   # A ".." for each directory in $ac_dir_suffix.
22225   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22226   case $ac_top_builddir_sub in
22227   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22229   esac ;;
22230 esac
22231 ac_abs_top_builddir=$ac_pwd
22232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22233 # for backward compatibility:
22234 ac_top_builddir=$ac_top_build_prefix
22235
22236 case $srcdir in
22237   .)  # We are building in place.
22238     ac_srcdir=.
22239     ac_top_srcdir=$ac_top_builddir_sub
22240     ac_abs_top_srcdir=$ac_pwd ;;
22241   [\\/]* | ?:[\\/]* )  # Absolute name.
22242     ac_srcdir=$srcdir$ac_dir_suffix;
22243     ac_top_srcdir=$srcdir
22244     ac_abs_top_srcdir=$srcdir ;;
22245   *) # Relative name.
22246     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22247     ac_top_srcdir=$ac_top_build_prefix$srcdir
22248     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22249 esac
22250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22251
22252
22253   case $ac_mode in
22254   :F)
22255   #
22256   # CONFIG_FILE
22257   #
22258
22259   case $INSTALL in
22260   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22261   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22262   esac
22263 _ACEOF
22264
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22266 # If the template does not know about datarootdir, expand it.
22267 # FIXME: This hack should be removed a few years after 2.60.
22268 ac_datarootdir_hack=; ac_datarootdir_seen=
22269
22270 case `sed -n '/datarootdir/ {
22271   p
22272   q
22273 }
22274 /@datadir@/p
22275 /@docdir@/p
22276 /@infodir@/p
22277 /@localedir@/p
22278 /@mandir@/p
22279 ' $ac_file_inputs` in
22280 *datarootdir*) ac_datarootdir_seen=yes;;
22281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22282   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22284 _ACEOF
22285 cat >>$CONFIG_STATUS <<_ACEOF
22286   ac_datarootdir_hack='
22287   s&@datadir@&$datadir&g
22288   s&@docdir@&$docdir&g
22289   s&@infodir@&$infodir&g
22290   s&@localedir@&$localedir&g
22291   s&@mandir@&$mandir&g
22292     s&\\\${datarootdir}&$datarootdir&g' ;;
22293 esac
22294 _ACEOF
22295
22296 # Neutralize VPATH when `$srcdir' = `.'.
22297 # Shell code in configure.ac might set extrasub.
22298 # FIXME: do we really want to maintain this feature?
22299 cat >>$CONFIG_STATUS <<_ACEOF
22300   sed "$ac_vpsub
22301 $extrasub
22302 _ACEOF
22303 cat >>$CONFIG_STATUS <<\_ACEOF
22304 :t
22305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22306 s&@configure_input@&$configure_input&;t t
22307 s&@top_builddir@&$ac_top_builddir_sub&;t t
22308 s&@srcdir@&$ac_srcdir&;t t
22309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22310 s&@top_srcdir@&$ac_top_srcdir&;t t
22311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22312 s&@builddir@&$ac_builddir&;t t
22313 s&@abs_builddir@&$ac_abs_builddir&;t t
22314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22315 s&@INSTALL@&$ac_INSTALL&;t t
22316 $ac_datarootdir_hack
22317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22318
22319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22322   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined.  Please make sure it is defined." >&5
22324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22325 which seems to be undefined.  Please make sure it is defined." >&2;}
22326
22327   rm -f "$tmp/stdin"
22328   case $ac_file in
22329   -) cat "$tmp/out"; rm -f "$tmp/out";;
22330   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22331   esac
22332  ;;
22333   :H)
22334   #
22335   # CONFIG_HEADER
22336   #
22337 _ACEOF
22338
22339 # Transform confdefs.h into a sed script `conftest.defines', that
22340 # substitutes the proper values into config.h.in to produce config.h.
22341 rm -f conftest.defines conftest.tail
22342 # First, append a space to every undef/define line, to ease matching.
22343 echo 's/$/ /' >conftest.defines
22344 # Then, protect against being on the right side of a sed subst, or in
22345 # an unquoted here document, in config.status.  If some macros were
22346 # called several times there might be several #defines for the same
22347 # symbol, which is useless.  But do not sort them, since the last
22348 # AC_DEFINE must be honored.
22349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22350 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22351 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22352 # PARAMS is the parameter list in the macro definition--in most cases, it's
22353 # just an empty string.
22354 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22355 ac_dB='\\)[      (].*,\\1define\\2'
22356 ac_dC=' '
22357 ac_dD=' ,'
22358
22359 uniq confdefs.h |
22360   sed -n '
22361         t rset
22362         :rset
22363         s/^[     ]*#[    ]*define[       ][      ]*//
22364         t ok
22365         d
22366         :ok
22367         s/[\\&,]/\\&/g
22368         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22369         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22370   ' >>conftest.defines
22371
22372 # Remove the space that was appended to ease matching.
22373 # Then replace #undef with comments.  This is necessary, for
22374 # example, in the case of _POSIX_SOURCE, which is predefined and required
22375 # on some systems where configure will not decide to define it.
22376 # (The regexp can be short, since the line contains either #define or #undef.)
22377 echo 's/ $//
22378 s,^[     #]*u.*,/* & */,' >>conftest.defines
22379
22380 # Break up conftest.defines:
22381 ac_max_sed_lines=50
22382
22383 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22384 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22385 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22386 # et cetera.
22387 ac_in='$ac_file_inputs'
22388 ac_out='"$tmp/out1"'
22389 ac_nxt='"$tmp/out2"'
22390
22391 while :
22392 do
22393   # Write a here document:
22394     cat >>$CONFIG_STATUS <<_ACEOF
22395     # First, check the format of the line:
22396     cat >"\$tmp/defines.sed" <<\\CEOF
22397 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22398 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22399 b
22400 :def
22401 _ACEOF
22402   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22403   echo 'CEOF
22404     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22405   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22406   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22407   grep . conftest.tail >/dev/null || break
22408   rm -f conftest.defines
22409   mv conftest.tail conftest.defines
22410 done
22411 rm -f conftest.defines conftest.tail
22412
22413 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22414 cat >>$CONFIG_STATUS <<\_ACEOF
22415   if test x"$ac_file" != x-; then
22416     echo "/* $configure_input  */" >"$tmp/config.h"
22417     cat "$ac_result" >>"$tmp/config.h"
22418     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22419       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22420 echo "$as_me: $ac_file is unchanged" >&6;}
22421     else
22422       rm -f $ac_file
22423       mv "$tmp/config.h" $ac_file
22424     fi
22425   else
22426     echo "/* $configure_input  */"
22427     cat "$ac_result"
22428   fi
22429   rm -f "$tmp/out12"
22430  ;;
22431
22432   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22433 echo "$as_me: executing $ac_file commands" >&6;}
22434  ;;
22435   esac
22436
22437
22438   case $ac_file$ac_mode in
22439     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22440    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22441     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22442    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22443     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22444    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22445     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22446    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22447     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22448    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22449     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22450    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22451     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22452    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22453     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22454    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22455     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22456    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22457     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22458    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22459     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22460    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22461     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22462    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22463     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22464    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22465
22466   esac
22467 done # for ac_tag
22468
22469
22470 { (exit 0); exit 0; }
22471 _ACEOF
22472 chmod +x $CONFIG_STATUS
22473 ac_clean_files=$ac_clean_files_save
22474
22475
22476 # configure is writing to config.log, and then calls config.status.
22477 # config.status does its own redirection, appending to config.log.
22478 # Unfortunately, on DOS this fails, as config.log is still kept open
22479 # by configure, so config.status won't be able to write to it; its
22480 # output is simply discarded.  So we exec the FD to /dev/null,
22481 # effectively closing config.log, so it can be properly (re)opened and
22482 # appended to by config.status.  When coming back to configure, we
22483 # need to make the FD available again.
22484 if test "$no_create" != yes; then
22485   ac_cs_success=:
22486   ac_config_status_args=
22487   test "$silent" = yes &&
22488     ac_config_status_args="$ac_config_status_args --quiet"
22489   exec 5>/dev/null
22490   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22491   exec 5>>config.log
22492   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22493   # would make configure fail if this is the last instruction.
22494   $ac_cs_success || { (exit 1); exit 1; }
22495 fi
22496
22497 #
22498 # CONFIG_SUBDIRS section.
22499 #
22500 if test "$no_recursion" != yes; then
22501
22502   # Remove --cache-file and --srcdir arguments so they do not pile up.
22503   ac_sub_configure_args=
22504   ac_prev=
22505   eval "set x $ac_configure_args"
22506   shift
22507   for ac_arg
22508   do
22509     if test -n "$ac_prev"; then
22510       ac_prev=
22511       continue
22512     fi
22513     case $ac_arg in
22514     -cache-file | --cache-file | --cache-fil | --cache-fi \
22515     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22516       ac_prev=cache_file ;;
22517     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22518     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22519     | --c=*)
22520       ;;
22521     --config-cache | -C)
22522       ;;
22523     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22524       ac_prev=srcdir ;;
22525     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22526       ;;
22527     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22528       ac_prev=prefix ;;
22529     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22530       ;;
22531     *)
22532       case $ac_arg in
22533       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22534       esac
22535       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22536     esac
22537   done
22538
22539   # Always prepend --prefix to ensure using the same prefix
22540   # in subdir configurations.
22541   ac_arg="--prefix=$prefix"
22542   case $ac_arg in
22543   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22544   esac
22545   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22546
22547   ac_popdir=`pwd`
22548   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22549
22550     # Do not complain, so a configure script can configure whichever
22551     # parts of a large source tree are present.
22552     test -d "$srcdir/$ac_dir" || continue
22553
22554     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22555     echo "$as_me:$LINENO: $ac_msg" >&5
22556     echo "$ac_msg" >&6
22557     { as_dir="$ac_dir"
22558   case $as_dir in #(
22559   -*) as_dir=./$as_dir;;
22560   esac
22561   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22562     as_dirs=
22563     while :; do
22564       case $as_dir in #(
22565       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22566       *) as_qdir=$as_dir;;
22567       esac
22568       as_dirs="'$as_qdir' $as_dirs"
22569       as_dir=`$as_dirname -- "$as_dir" ||
22570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571          X"$as_dir" : 'X\(//\)[^/]' \| \
22572          X"$as_dir" : 'X\(//\)$' \| \
22573          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22574 echo X"$as_dir" |
22575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22576             s//\1/
22577             q
22578           }
22579           /^X\(\/\/\)[^/].*/{
22580             s//\1/
22581             q
22582           }
22583           /^X\(\/\/\)$/{
22584             s//\1/
22585             q
22586           }
22587           /^X\(\/\).*/{
22588             s//\1/
22589             q
22590           }
22591           s/.*/./; q'`
22592       test -d "$as_dir" && break
22593     done
22594     test -z "$as_dirs" || eval "mkdir $as_dirs"
22595   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22596 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22597    { (exit 1); exit 1; }; }; }
22598     ac_builddir=.
22599
22600 case "$ac_dir" in
22601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602 *)
22603   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22604   # A ".." for each directory in $ac_dir_suffix.
22605   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22606   case $ac_top_builddir_sub in
22607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22609   esac ;;
22610 esac
22611 ac_abs_top_builddir=$ac_pwd
22612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22613 # for backward compatibility:
22614 ac_top_builddir=$ac_top_build_prefix
22615
22616 case $srcdir in
22617   .)  # We are building in place.
22618     ac_srcdir=.
22619     ac_top_srcdir=$ac_top_builddir_sub
22620     ac_abs_top_srcdir=$ac_pwd ;;
22621   [\\/]* | ?:[\\/]* )  # Absolute name.
22622     ac_srcdir=$srcdir$ac_dir_suffix;
22623     ac_top_srcdir=$srcdir
22624     ac_abs_top_srcdir=$srcdir ;;
22625   *) # Relative name.
22626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22627     ac_top_srcdir=$ac_top_build_prefix$srcdir
22628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22629 esac
22630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22631
22632
22633     cd "$ac_dir"
22634
22635     # Check for guested configure; otherwise get Cygnus style configure.
22636     if test -f "$ac_srcdir/configure.gnu"; then
22637       ac_sub_configure=$ac_srcdir/configure.gnu
22638     elif test -f "$ac_srcdir/configure"; then
22639       ac_sub_configure=$ac_srcdir/configure
22640     elif test -f "$ac_srcdir/configure.in"; then
22641       # This should be Cygnus configure.
22642       ac_sub_configure=$ac_aux_dir/configure
22643     else
22644       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22645 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22646       ac_sub_configure=
22647     fi
22648
22649     # The recursion is here.
22650     if test -n "$ac_sub_configure"; then
22651       # Make the cache file name correct relative to the subdirectory.
22652       case $cache_file in
22653       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22654       *) # Relative name.
22655         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22656       esac
22657
22658       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22659 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22660       # The eval makes quoting arguments work.
22661       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22662            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22663         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22664 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22665    { (exit 1); exit 1; }; }
22666     fi
22667
22668     cd "$ac_popdir"
22669   done
22670 fi
22671