llvm-config: Replace with C++ version (was llvm-config-2).
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 NM
714 ifGNUmake
715 LN_S
716 CMP
717 CP
718 DATE
719 FIND
720 MKDIR
721 MV
722 RANLIB
723 AR
724 RM
725 SED
726 TAR
727 BINPWD
728 GRAPHVIZ
729 DOT
730 FDP
731 NEATO
732 TWOPI
733 CIRCO
734 GV
735 DOTTY
736 XDOT_PY
737 PERL
738 HAVE_PERL
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='projects/llvm-gcc
804 projects/test-suite
805 projects/llvm-test
806 projects/poolalloc
807 projects/llvm-poolalloc
808 projects/sample
809 projects/privbracket
810 projects/llvm-stacker
811 projects/llvm-reopt
812 projects/llvm-java
813 projects/llvm-tv
814 projects/safecode
815 projects/llvm-kernel
816 tools/polly'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of llvm 3.1svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-polly          Use polly if available (default is YES)
1392   --enable-optimized      Compile with optimizations enabled (default is NO)
1393   --enable-profiling      Compile with profiling enabled (default is NO)
1394   --enable-assertions     Compile with assertion checks enabled (default is
1395                           YES)
1396   --enable-expensive-checks
1397                           Compile with expensive debug checks enabled (default
1398                           is NO)
1399   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1400                           NO)
1401   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1402                           optimization is on and YES if it's off)
1403   --enable-jit            Enable Just In Time Compiling (default is YES)
1404   --enable-docs           Build documents (default is YES)
1405   --enable-doxygen        Build doxygen documentation (default is NO)
1406   --enable-threads        Use threads if available (default is YES)
1407   --enable-pthreads       Use pthreads if available (default is YES)
1408   --enable-pic            Build LLVM with Position Independent Code (default
1409                           is YES)
1410   --enable-shared         Build a shared library and link tools against it
1411                           (default is NO)
1412   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1413                           Win32 DLL (default is NO)
1414   --enable-timestamps     Enable embedding timestamp information in build
1415                           (default is YES)
1416   --enable-targets        Build specific host targets: all or
1417                           target1,target2,... Valid targets are: host, x86,
1418                           x86_64, sparc, powerpc, arm, mips, spu,
1419                           xcore, msp430, ptx, cbe, and cpp (default=all)
1420   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1421                           %a (default is YES)
1422   --enable-bindings       Build specific language bindings:
1423                           all,auto,none,{binding-name} (default=auto)
1424   --enable-libffi         Check for the presence of libffi (default is NO)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-optimize-option  Select the compiler options to use for optimized
1431                           builds
1432   --with-extra-options    Specify additional options to compile LLVM with
1433   --with-extra-ld-options Specify additional options to link LLVM with
1434   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1435                           is stdlib)
1436   --with-clang-srcdir     Directory to the out-of-tree Clang source
1437   --with-clang-resource-dir
1438                           Relative directory from the Clang binary for
1439                           resource files
1440   --with-c-include-dirs   Colon separated list of directories clang will
1441                           search for headers
1442   --with-cxx-include-root Directory with the libstdc++ headers.
1443   --with-cxx-include-arch Architecture of the libstdc++ headers.
1444   --with-cxx-include-32bit-dir
1445                           32 bit multilib dir.
1446   --with-cxx-include-64bit-dir
1447                           64 bit multilib directory.
1448   --with-binutils-include Specify path to binutils/include/ containing
1449                           plugin-api.h file for gold plugin.
1450   --with-bug-report-url   Specify the URL where bug reports should be
1451                           submitted (default=http://llvm.org/bugs/)
1452   --with-tclinclude       directory where tcl headers are
1453   --with-udis86=<path>    Use udis86 external x86 disassembler library
1454   --with-oprofile=<prefix>
1455                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1456
1457 Some influential environment variables:
1458   CC          C compiler command
1459   CFLAGS      C compiler flags
1460   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461               nonstandard directory <lib dir>
1462   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   CXX         C++ compiler command
1465   CXXFLAGS    C++ compiler flags
1466   CPP         C preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <llvmbugs@cs.uiuc.edu>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" || continue
1480     ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486   # A ".." for each directory in $ac_dir_suffix.
1487   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488   case $ac_top_builddir_sub in
1489   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491   esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499   .)  # We are building in place.
1500     ac_srcdir=.
1501     ac_top_srcdir=$ac_top_builddir_sub
1502     ac_abs_top_srcdir=$ac_pwd ;;
1503   [\\/]* | ?:[\\/]* )  # Absolute name.
1504     ac_srcdir=$srcdir$ac_dir_suffix;
1505     ac_top_srcdir=$srcdir
1506     ac_abs_top_srcdir=$srcdir ;;
1507   *) # Relative name.
1508     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509     ac_top_srcdir=$ac_top_build_prefix$srcdir
1510     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514     cd "$ac_dir" || { ac_status=$?; continue; }
1515     # Check for guested configure.
1516     if test -f "$ac_srcdir/configure.gnu"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519     elif test -f "$ac_srcdir/configure"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure" --help=recursive
1522     else
1523       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524     fi || ac_status=$?
1525     cd "$ac_pwd" || { ac_status=$?; break; }
1526   done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531   cat <<\_ACEOF
1532 llvm configure 3.1svn
1533 generated by GNU Autoconf 2.60
1534
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539
1540 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1541 _ACEOF
1542   exit
1543 fi
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1547
1548 It was created by llvm $as_me 3.1svn, which was
1549 generated by GNU Autoconf 2.60.  Invocation command line was
1550
1551   $ $0 $@
1552
1553 _ACEOF
1554 exec 5>>config.log
1555 {
1556 cat <<_ASUNAME
1557 ## --------- ##
1558 ## Platform. ##
1559 ## --------- ##
1560
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1569
1570 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1571 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1574 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1575 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1576 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1577
1578 _ASUNAME
1579
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583   IFS=$as_save_IFS
1584   test -z "$as_dir" && as_dir=.
1585   echo "PATH: $as_dir"
1586 done
1587 IFS=$as_save_IFS
1588
1589 } >&5
1590
1591 cat >&5 <<_ACEOF
1592
1593
1594 ## ----------- ##
1595 ## Core tests. ##
1596 ## ----------- ##
1597
1598 _ACEOF
1599
1600
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1606 ac_configure_args=
1607 ac_configure_args0=
1608 ac_configure_args1=
1609 ac_must_keep_next=false
1610 for ac_pass in 1 2
1611 do
1612   for ac_arg
1613   do
1614     case $ac_arg in
1615     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617     | -silent | --silent | --silen | --sile | --sil)
1618       continue ;;
1619     *\'*)
1620       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621     esac
1622     case $ac_pass in
1623     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624     2)
1625       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626       if test $ac_must_keep_next = true; then
1627         ac_must_keep_next=false # Got value, back to normal.
1628       else
1629         case $ac_arg in
1630           *=* | --config-cache | -C | -disable-* | --disable-* \
1631           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633           | -with-* | --with-* | -without-* | --without-* | --x)
1634             case "$ac_configure_args0 " in
1635               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636             esac
1637             ;;
1638           -* ) ac_must_keep_next=true ;;
1639         esac
1640       fi
1641       ac_configure_args="$ac_configure_args '$ac_arg'"
1642       ;;
1643     esac
1644   done
1645 done
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log.  We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655   # Save into config.log some information that might help in debugging.
1656   {
1657     echo
1658
1659     cat <<\_ASBOX
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1663 _ASBOX
1664     echo
1665     # The following way of writing the cache mishandles newlines in values,
1666 (
1667   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668     eval ac_val=\$$ac_var
1669     case $ac_val in #(
1670     *${as_nl}*)
1671       case $ac_var in #(
1672       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1674       esac
1675       case $ac_var in #(
1676       _ | IFS | as_nl) ;; #(
1677       *) $as_unset $ac_var ;;
1678       esac ;;
1679     esac
1680   done
1681   (set) 2>&1 |
1682     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683     *${as_nl}ac_space=\ *)
1684       sed -n \
1685         "s/'\''/'\''\\\\'\'''\''/g;
1686           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687       ;; #(
1688     *)
1689       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1690       ;;
1691     esac |
1692     sort
1693 )
1694     echo
1695
1696     cat <<\_ASBOX
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1700 _ASBOX
1701     echo
1702     for ac_var in $ac_subst_vars
1703     do
1704       eval ac_val=\$$ac_var
1705       case $ac_val in
1706       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707       esac
1708       echo "$ac_var='\''$ac_val'\''"
1709     done | sort
1710     echo
1711
1712     if test -n "$ac_subst_files"; then
1713       cat <<\_ASBOX
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1717 _ASBOX
1718       echo
1719       for ac_var in $ac_subst_files
1720       do
1721         eval ac_val=\$$ac_var
1722         case $ac_val in
1723         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724         esac
1725         echo "$ac_var='\''$ac_val'\''"
1726       done | sort
1727       echo
1728     fi
1729
1730     if test -s confdefs.h; then
1731       cat <<\_ASBOX
1732 ## ----------- ##
1733 ## confdefs.h. ##
1734 ## ----------- ##
1735 _ASBOX
1736       echo
1737       cat confdefs.h
1738       echo
1739     fi
1740     test "$ac_signal" != 0 &&
1741       echo "$as_me: caught signal $ac_signal"
1742     echo "$as_me: exit $exit_status"
1743   } >&5
1744   rm -f core *.core core.conftest.* &&
1745     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1746     exit $exit_status
1747 ' 0
1748 for ac_signal in 1 2 13 15; do
1749   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1750 done
1751 ac_signal=0
1752
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1755
1756 # Predefined preprocessor variables.
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1760 _ACEOF
1761
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780 _ACEOF
1781
1782
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786   set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 else
1790   set x "$ac_default_prefix/share/config.site" \
1791         "$ac_default_prefix/etc/config.site"
1792 fi
1793 shift
1794 for ac_site_file
1795 do
1796   if test -r "$ac_site_file"; then
1797     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799     sed 's/^/| /' "$ac_site_file" >&5
1800     . "$ac_site_file"
1801   fi
1802 done
1803
1804 if test -r "$cache_file"; then
1805   # Some versions of bash will fail to source /dev/null (special
1806   # files actually), so we avoid doing that.
1807   if test -f "$cache_file"; then
1808     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1810     case $cache_file in
1811       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812       *)                      . "./$cache_file";;
1813     esac
1814   fi
1815 else
1816   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1818   >$cache_file
1819 fi
1820
1821 # Check that the precious variables saved in the cache have kept the same
1822 # value.
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826   eval ac_new_set=\$ac_env_${ac_var}_set
1827   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828   eval ac_new_val=\$ac_env_${ac_var}_value
1829   case $ac_old_set,$ac_new_set in
1830     set,)
1831       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833       ac_cache_corrupted=: ;;
1834     ,set)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,);;
1839     *)
1840       if test "x$ac_old_val" != "x$ac_new_val"; then
1841         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1844 echo "$as_me:   former value:  $ac_old_val" >&2;}
1845         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1846 echo "$as_me:   current value: $ac_new_val" >&2;}
1847         ac_cache_corrupted=:
1848       fi;;
1849   esac
1850   # Pass precious variables to config.status.
1851   if test "$ac_new_set" = set; then
1852     case $ac_new_val in
1853     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854     *) ac_arg=$ac_var=$ac_new_val ;;
1855     esac
1856     case " $ac_configure_args " in
1857       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1858       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1859     esac
1860   fi
1861 done
1862 if $ac_cache_corrupted; then
1863   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867    { (exit 1); exit 1; }; }
1868 fi
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894 ac_ext=c
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
1902 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1903
1904
1905
1906
1907
1908
1909
1910 ac_aux_dir=
1911 for ac_dir in autoconf "$srcdir"/autoconf; do
1912   if test -f "$ac_dir/install-sh"; then
1913     ac_aux_dir=$ac_dir
1914     ac_install_sh="$ac_aux_dir/install-sh -c"
1915     break
1916   elif test -f "$ac_dir/install.sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install.sh -c"
1919     break
1920   elif test -f "$ac_dir/shtool"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/shtool install -c"
1923     break
1924   fi
1925 done
1926 if test -z "$ac_aux_dir"; then
1927   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1928 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1929    { (exit 1); exit 1; }; }
1930 fi
1931
1932 # These three variables are undocumented and unsupported,
1933 # and are intended to be withdrawn in a future Autoconf release.
1934 # They can cause serious problems if a builder's source tree is in a directory
1935 # whose full name contains unusual characters.
1936 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1937 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1938 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1939
1940
1941
1942 if test ${srcdir} != "." ; then
1943   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1944     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1945 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1946    { (exit 1); exit 1; }; }
1947   fi
1948 fi
1949
1950 ac_ext=c
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956   for ac_prog in clang llvm-gcc gcc
1957   do
1958     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   if test -n "$CC"; then
1966   ac_cv_prog_CC="$CC" # Let the user override the test.
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971   IFS=$as_save_IFS
1972   test -z "$as_dir" && as_dir=.
1973   for ac_exec_ext in '' $ac_executable_extensions; do
1974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1975     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977     break 2
1978   fi
1979 done
1980 done
1981 IFS=$as_save_IFS
1982
1983 fi
1984 fi
1985 CC=$ac_cv_prog_CC
1986 if test -n "$CC"; then
1987   { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1989 else
1990   { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1992 fi
1993
1994
1995     test -n "$CC" && break
1996   done
1997 fi
1998 if test -z "$CC"; then
1999   ac_ct_CC=$CC
2000   for ac_prog in clang llvm-gcc gcc
2001 do
2002   # Extract the first word of "$ac_prog", so it can be a program name with args.
2003 set dummy $ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$ac_ct_CC"; then
2010   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019     ac_cv_prog_ac_ct_CC="$ac_prog"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025 IFS=$as_save_IFS
2026
2027 fi
2028 fi
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6; }
2033 else
2034   { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036 fi
2037
2038
2039   test -n "$ac_ct_CC" && break
2040 done
2041
2042   if test "x$ac_ct_CC" = x; then
2043     CC=""
2044   else
2045     case $cross_compiling:$ac_tool_warned in
2046 yes:)
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet.  If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet.  If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2054 esac
2055     CC=$ac_ct_CC
2056   fi
2057 fi
2058
2059
2060 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: no acceptable C compiler found in \$PATH
2063 See \`config.log' for more details." >&2;}
2064    { (exit 1); exit 1; }; }
2065
2066 # Provide some information about the compiler.
2067 echo "$as_me:$LINENO: checking for C compiler version" >&5
2068 ac_compiler=`set X $ac_compile; echo $2`
2069 { (ac_try="$ac_compiler --version >&5"
2070 case "(($ac_try" in
2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072   *) ac_try_echo=$ac_try;;
2073 esac
2074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2075   (eval "$ac_compiler --version >&5") 2>&5
2076   ac_status=$?
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); }
2079 { (ac_try="$ac_compiler -v >&5"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085   (eval "$ac_compiler -v >&5") 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }
2089 { (ac_try="$ac_compiler -V >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler -V >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106
2107 int
2108 main ()
2109 {
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 ac_clean_files_save=$ac_clean_files
2116 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2117 # Try to create an executable without -o first, disregard a.out.
2118 # It will help us diagnose broken compilers, and finding out an intuition
2119 # of exeext.
2120 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2121 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2122 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123 #
2124 # List of possible output files, starting from the most likely.
2125 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2126 # only as a last resort.  b.out is created by i960 compilers.
2127 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2128 #
2129 # The IRIX 6 linker writes into existing files which may not be
2130 # executable, retaining their permissions.  Remove them first so a
2131 # subsequent execution test works.
2132 ac_rmfiles=
2133 for ac_file in $ac_files
2134 do
2135   case $ac_file in
2136     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2137     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2138   esac
2139 done
2140 rm -f $ac_rmfiles
2141
2142 if { (ac_try="$ac_link_default"
2143 case "(($ac_try" in
2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145   *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148   (eval "$ac_link_default") 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }; then
2152   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2153 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2154 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2155 # so that the user can short-circuit this test for compilers unknown to
2156 # Autoconf.
2157 for ac_file in $ac_files
2158 do
2159   test -f "$ac_file" || continue
2160   case $ac_file in
2161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2162         ;;
2163     [ab].out )
2164         # We found the default executable, but exeext='' is most
2165         # certainly right.
2166         break;;
2167     *.* )
2168         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2169         then :; else
2170            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171         fi
2172         # We set ac_cv_exeext here because the later test for it is not
2173         # safe: cross compilers may not add the suffix if given an `-o'
2174         # argument, so we may need to know it at that point already.
2175         # Even if this section looks crufty: it has the advantage of
2176         # actually working.
2177         break;;
2178     * )
2179         break;;
2180   esac
2181 done
2182 test "$ac_cv_exeext" = no && ac_cv_exeext=
2183
2184 else
2185   echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&2;}
2192    { (exit 77); exit 77; }; }
2193 fi
2194
2195 ac_exeext=$ac_cv_exeext
2196 { echo "$as_me:$LINENO: result: $ac_file" >&5
2197 echo "${ECHO_T}$ac_file" >&6; }
2198
2199 # Check that the compiler produces executables we can run.  If not, either
2200 # the compiler is broken, or we cross compile.
2201 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2202 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2203 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2204 # If not cross compiling, check that we can run a simple program.
2205 if test "$cross_compiling" != yes; then
2206   if { ac_try='./$ac_file'
2207   { (case "(($ac_try" in
2208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209   *) ac_try_echo=$ac_try;;
2210 esac
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212   (eval "$ac_try") 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }; }; then
2216     cross_compiling=no
2217   else
2218     if test "$cross_compiling" = maybe; then
2219         cross_compiling=yes
2220     else
2221         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&2;}
2227    { (exit 1); exit 1; }; }
2228     fi
2229   fi
2230 fi
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2233
2234 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2235 ac_clean_files=$ac_clean_files_save
2236 # Check that the compiler produces executables we can run.  If not, either
2237 # the compiler is broken, or we cross compile.
2238 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2240 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241 echo "${ECHO_T}$cross_compiling" >&6; }
2242
2243 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2245 if { (ac_try="$ac_link"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251   (eval "$ac_link") 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; then
2255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260   test -f "$ac_file" || continue
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264           break;;
2265     * ) break;;
2266   esac
2267 done
2268 else
2269   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273    { (exit 1); exit 1; }; }
2274 fi
2275
2276 rm -f conftest$ac_cv_exeext
2277 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2279
2280 rm -f conftest.$ac_ext
2281 EXEEXT=$ac_cv_exeext
2282 ac_exeext=$EXEEXT
2283 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2285 if test "${ac_cv_objext+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   cat >conftest.$ac_ext <<_ACEOF
2289 /* confdefs.h.  */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h.  */
2294
2295 int
2296 main ()
2297 {
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 rm -f conftest.o conftest.obj
2304 if { (ac_try="$ac_compile"
2305 case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310   (eval "$ac_compile") 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; then
2314   for ac_file in conftest.o conftest.obj conftest.*; do
2315   test -f "$ac_file" || continue;
2316   case $ac_file in
2317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2318     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319        break;;
2320   esac
2321 done
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334 fi
2335 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6; }
2337 OBJEXT=$ac_cv_objext
2338 ac_objext=$OBJEXT
2339 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h.  */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h.  */
2350
2351 int
2352 main ()
2353 {
2354 #ifndef __GNUC__
2355        choke me
2356 #endif
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (ac_try="$ac_compile"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369   (eval "$ac_compile") 2>conftest.er1
2370   ac_status=$?
2371   grep -v '^ *+' conftest.er1 >conftest.err
2372   rm -f conftest.er1
2373   cat conftest.err >&5
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); } &&
2376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2377   { (case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382   (eval "$ac_try") 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_try") 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; }; then
2396   ac_compiler_gnu=yes
2397 else
2398   echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401         ac_compiler_gnu=no
2402 fi
2403
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406
2407 fi
2408 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_cc_g+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   ac_save_c_werror_flag=$ac_c_werror_flag
2419    ac_c_werror_flag=yes
2420    ac_cv_prog_cc_g=no
2421    CFLAGS="-g"
2422    cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h.  */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428
2429 int
2430 main ()
2431 {
2432
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (ac_try="$ac_compile"
2439 case "(($ac_try" in
2440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441   *) ac_try_echo=$ac_try;;
2442 esac
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444   (eval "$ac_compile") 2>conftest.er1
2445   ac_status=$?
2446   grep -v '^ *+' conftest.er1 >conftest.err
2447   rm -f conftest.er1
2448   cat conftest.err >&5
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); } &&
2451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452   { (case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_try") 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; } &&
2461          { ac_try='test -s conftest.$ac_objext'
2462   { (case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467   (eval "$ac_try") 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; }; then
2471   ac_cv_prog_cc_g=yes
2472 else
2473   echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476         CFLAGS=""
2477       cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h.  */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h.  */
2483
2484 int
2485 main ()
2486 {
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2494 case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499   (eval "$ac_compile") 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507   { (case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_try") 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_try") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; }; then
2526   :
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531         ac_c_werror_flag=$ac_save_c_werror_flag
2532          CFLAGS="-g"
2533          cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539
2540 int
2541 main ()
2542 {
2543
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2550 case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_compile") 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563   { (case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_try") 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; } &&
2572          { ac_try='test -s conftest.$ac_objext'
2573   { (case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578   (eval "$ac_try") 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   ac_cv_prog_cc_g=yes
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
2588 fi
2589
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 fi
2592
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 fi
2595
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597    ac_c_werror_flag=$ac_save_c_werror_flag
2598 fi
2599 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601 if test "$ac_test_CFLAGS" = set; then
2602   CFLAGS=$ac_save_CFLAGS
2603 elif test $ac_cv_prog_cc_g = yes; then
2604   if test "$GCC" = yes; then
2605     CFLAGS="-g -O2"
2606   else
2607     CFLAGS="-g"
2608   fi
2609 else
2610   if test "$GCC" = yes; then
2611     CFLAGS="-O2"
2612   else
2613     CFLAGS=
2614   fi
2615 fi
2616 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_cc_c89+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   ac_cv_prog_cc_c89=no
2622 ac_save_CC=$CC
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 #include <stdarg.h>
2630 #include <stdio.h>
2631 #include <sys/types.h>
2632 #include <sys/stat.h>
2633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2634 struct buf { int x; };
2635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636 static char *e (p, i)
2637      char **p;
2638      int i;
2639 {
2640   return p[i];
2641 }
2642 static char *f (char * (*g) (char **, int), char **p, ...)
2643 {
2644   char *s;
2645   va_list v;
2646   va_start (v,p);
2647   s = g (p, va_arg (v,int));
2648   va_end (v);
2649   return s;
2650 }
2651
2652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2653    function prototypes and stuff, but not '\xHH' hex character constants.
2654    These don't provoke an error unfortunately, instead are silently treated
2655    as 'x'.  The following induces an error, until -std is added to get
2656    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2657    array size at least.  It's necessary to write '\x00'==0 to get something
2658    that's true only with -std.  */
2659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662    inside strings and character constants.  */
2663 #define FOO(x) 'x'
2664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 int argc;
2671 char **argv;
2672 int
2673 main ()
2674 {
2675 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682 do
2683   CC="$ac_save_CC $ac_arg"
2684   rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compile") 2>conftest.er1
2692   ac_status=$?
2693   grep -v '^ *+' conftest.er1 >conftest.err
2694   rm -f conftest.er1
2695   cat conftest.err >&5
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); } &&
2698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2699   { (case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_try") 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest.$ac_objext'
2709   { (case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_try") 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   ac_cv_prog_cc_c89=$ac_arg
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723
2724 fi
2725
2726 rm -f core conftest.err conftest.$ac_objext
2727   test "x$ac_cv_prog_cc_c89" != "xno" && break
2728 done
2729 rm -f conftest.$ac_ext
2730 CC=$ac_save_CC
2731
2732 fi
2733 # AC_CACHE_VAL
2734 case "x$ac_cv_prog_cc_c89" in
2735   x)
2736     { echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6; } ;;
2738   xno)
2739     { echo "$as_me:$LINENO: result: unsupported" >&5
2740 echo "${ECHO_T}unsupported" >&6; } ;;
2741   *)
2742     CC="$CC $ac_cv_prog_cc_c89"
2743     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2745 esac
2746
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754 ac_ext=cpp
2755 ac_cpp='$CXXCPP $CPPFLAGS'
2756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2759 if test -z "$CXX"; then
2760   if test -n "$CCC"; then
2761     CXX=$CCC
2762   else
2763     if test -n "$ac_tool_prefix"; then
2764   for ac_prog in clang++ llvm-g++ g++
2765   do
2766     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CXX+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   if test -n "$CXX"; then
2774   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781   for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CXX=$ac_cv_prog_CXX
2794 if test -n "$CXX"; then
2795   { echo "$as_me:$LINENO: result: $CXX" >&5
2796 echo "${ECHO_T}$CXX" >&6; }
2797 else
2798   { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2800 fi
2801
2802
2803     test -n "$CXX" && break
2804   done
2805 fi
2806 if test -z "$CXX"; then
2807   ac_ct_CXX=$CXX
2808   for ac_prog in clang++ llvm-g++ g++
2809 do
2810   # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$ac_ct_CXX"; then
2818   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_ac_ct_CXX="$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2838 if test -n "$ac_ct_CXX"; then
2839   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2840 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2841 else
2842   { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847   test -n "$ac_ct_CXX" && break
2848 done
2849
2850   if test "x$ac_ct_CXX" = x; then
2851     CXX="g++"
2852   else
2853     case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet.  If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet.  If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     CXX=$ac_ct_CXX
2864   fi
2865 fi
2866
2867   fi
2868 fi
2869 # Provide some information about the compiler.
2870 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2871 ac_compiler=`set X $ac_compile; echo $2`
2872 { (ac_try="$ac_compiler --version >&5"
2873 case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_compiler --version >&5") 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }
2882 { (ac_try="$ac_compiler -v >&5"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compiler -v >&5") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler -V >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914
2915 int
2916 main ()
2917 {
2918 #ifndef __GNUC__
2919        choke me
2920 #endif
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compile") 2>conftest.er1
2934   ac_status=$?
2935   grep -v '^ *+' conftest.er1 >conftest.err
2936   rm -f conftest.er1
2937   cat conftest.err >&5
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); } &&
2940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2941   { (case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_try") 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; } &&
2950          { ac_try='test -s conftest.$ac_objext'
2951   { (case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_try") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   ac_compiler_gnu=yes
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965         ac_compiler_gnu=no
2966 fi
2967
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2970
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2974 GXX=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CXXFLAGS=${CXXFLAGS+set}
2976 ac_save_CXXFLAGS=$CXXFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2978 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cxx_g+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2983    ac_cxx_werror_flag=yes
2984    ac_cv_prog_cxx_g=no
2985    CXXFLAGS="-g"
2986    cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992
2993 int
2994 main ()
2995 {
2996
2997   ;
2998   return 0;
2999 }
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } &&
3015          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3016   { (case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_try") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; } &&
3025          { ac_try='test -s conftest.$ac_objext'
3026   { (case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_try") 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; }; then
3035   ac_cv_prog_cxx_g=yes
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040         CXXFLAGS=""
3041       cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } &&
3070          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_try") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; }; then
3090   :
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3096          CXXFLAGS="-g"
3097          cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h.  */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h.  */
3103
3104 int
3105 main ()
3106 {
3107
3108   ;
3109   return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3114 case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_compile") 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3127   { (case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_try") 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; } &&
3136          { ac_try='test -s conftest.$ac_objext'
3137   { (case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_try") 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   ac_cv_prog_cxx_g=yes
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 fi
3159
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162 fi
3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3165 if test "$ac_test_CXXFLAGS" = set; then
3166   CXXFLAGS=$ac_save_CXXFLAGS
3167 elif test $ac_cv_prog_cxx_g = yes; then
3168   if test "$GXX" = yes; then
3169     CXXFLAGS="-g -O2"
3170   else
3171     CXXFLAGS="-g"
3172   fi
3173 else
3174   if test "$GXX" = yes; then
3175     CXXFLAGS="-O2"
3176   else
3177     CXXFLAGS=
3178   fi
3179 fi
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3193 # On Suns, sometimes $CPP names a directory.
3194 if test -n "$CPP" && test -d "$CPP"; then
3195   CPP=
3196 fi
3197 if test -z "$CPP"; then
3198   if test "${ac_cv_prog_CPP+set}" = set; then
3199   echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201       # Double quotes because CPP needs to be expanded
3202     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3203     do
3204       ac_preproc_ok=false
3205 for ac_c_preproc_warn_flag in '' yes
3206 do
3207   # Use a header file that comes with gcc, so configuring glibc
3208   # with a fresh cross-compiler works.
3209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210   # <limits.h> exists even on freestanding compilers.
3211   # On the NeXT, cc -E runs the code through the compiler's parser,
3212   # not just through cpp. "Syntax error" is here to catch this case.
3213   cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219 #ifdef __STDC__
3220 # include <limits.h>
3221 #else
3222 # include <assert.h>
3223 #endif
3224                      Syntax error
3225 _ACEOF
3226 if { (ac_try="$ac_cpp conftest.$ac_ext"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } >/dev/null; then
3239   if test -s conftest.err; then
3240     ac_cpp_err=$ac_c_preproc_warn_flag
3241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242   else
3243     ac_cpp_err=
3244   fi
3245 else
3246   ac_cpp_err=yes
3247 fi
3248 if test -z "$ac_cpp_err"; then
3249   :
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254   # Broken: fails on valid input.
3255 continue
3256 fi
3257
3258 rm -f conftest.err conftest.$ac_ext
3259
3260   # OK, works on sane cases.  Now check whether nonexistent headers
3261   # can be detected and how.
3262   cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #include <ac_nonexistent.h>
3269 _ACEOF
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   # Broken: success on invalid input.
3294 continue
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299   # Passes both tests.
3300 ac_preproc_ok=:
3301 break
3302 fi
3303
3304 rm -f conftest.err conftest.$ac_ext
3305
3306 done
3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308 rm -f conftest.err conftest.$ac_ext
3309 if $ac_preproc_ok; then
3310   break
3311 fi
3312
3313     done
3314     ac_cv_prog_CPP=$CPP
3315
3316 fi
3317   CPP=$ac_cv_prog_CPP
3318 else
3319   ac_cv_prog_CPP=$CPP
3320 fi
3321 { echo "$as_me:$LINENO: result: $CPP" >&5
3322 echo "${ECHO_T}$CPP" >&6; }
3323 ac_preproc_ok=false
3324 for ac_c_preproc_warn_flag in '' yes
3325 do
3326   # Use a header file that comes with gcc, so configuring glibc
3327   # with a fresh cross-compiler works.
3328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329   # <limits.h> exists even on freestanding compilers.
3330   # On the NeXT, cc -E runs the code through the compiler's parser,
3331   # not just through cpp. "Syntax error" is here to catch this case.
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #ifdef __STDC__
3339 # include <limits.h>
3340 #else
3341 # include <assert.h>
3342 #endif
3343                      Syntax error
3344 _ACEOF
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352   ac_status=$?
3353   grep -v '^ *+' conftest.er1 >conftest.err
3354   rm -f conftest.er1
3355   cat conftest.err >&5
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } >/dev/null; then
3358   if test -s conftest.err; then
3359     ac_cpp_err=$ac_c_preproc_warn_flag
3360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361   else
3362     ac_cpp_err=
3363   fi
3364 else
3365   ac_cpp_err=yes
3366 fi
3367 if test -z "$ac_cpp_err"; then
3368   :
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373   # Broken: fails on valid input.
3374 continue
3375 fi
3376
3377 rm -f conftest.err conftest.$ac_ext
3378
3379   # OK, works on sane cases.  Now check whether nonexistent headers
3380   # can be detected and how.
3381   cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 #include <ac_nonexistent.h>
3388 _ACEOF
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } >/dev/null; then
3402   if test -s conftest.err; then
3403     ac_cpp_err=$ac_c_preproc_warn_flag
3404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405   else
3406     ac_cpp_err=
3407   fi
3408 else
3409   ac_cpp_err=yes
3410 fi
3411 if test -z "$ac_cpp_err"; then
3412   # Broken: success on invalid input.
3413 continue
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418   # Passes both tests.
3419 ac_preproc_ok=:
3420 break
3421 fi
3422
3423 rm -f conftest.err conftest.$ac_ext
3424
3425 done
3426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427 rm -f conftest.err conftest.$ac_ext
3428 if $ac_preproc_ok; then
3429   :
3430 else
3431   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445
3446
3447 if test -d ${srcdir}/projects/llvm-gcc ; then
3448   subdirs="$subdirs projects/llvm-gcc"
3449
3450 fi
3451
3452 if test -d ${srcdir}/projects/test-suite ; then
3453   subdirs="$subdirs projects/test-suite"
3454
3455 fi
3456
3457 if test -d ${srcdir}/projects/llvm-test ; then
3458   subdirs="$subdirs projects/llvm-test"
3459
3460 fi
3461
3462 if test -d ${srcdir}/projects/poolalloc ; then
3463   subdirs="$subdirs projects/poolalloc"
3464
3465 fi
3466
3467 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3468   subdirs="$subdirs projects/llvm-poolalloc"
3469
3470 fi
3471
3472 for i in `ls ${srcdir}/projects`
3473 do
3474   if test -d ${srcdir}/projects/${i} ; then
3475     case ${i} in
3476       sample)       subdirs="$subdirs projects/sample"
3477     ;;
3478       privbracket)  subdirs="$subdirs projects/privbracket"
3479  ;;
3480       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3481  ;;
3482       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3483 ;;
3484       llvm-java)    subdirs="$subdirs projects/llvm-java"
3485  ;;
3486       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3487    ;;
3488       safecode)     subdirs="$subdirs projects/safecode"
3489  ;;
3490       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3491  ;;
3492       llvm-gcc)       ;;
3493       test-suite)     ;;
3494       llvm-test)      ;;
3495       poolalloc)      ;;
3496       llvm-poolalloc) ;;
3497       *)
3498         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3499 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3500         ;;
3501     esac
3502   fi
3503 done
3504
3505 # Check whether --enable-polly was given.
3506 if test "${enable_polly+set}" = set; then
3507   enableval=$enable_polly;
3508 else
3509   enableval=default
3510 fi
3511
3512 case "$enableval" in
3513   yes) ENABLE_POLLY=1
3514  ;;
3515   no)  ENABLE_POLLY=0
3516  ;;
3517   default) ENABLE_POLLY=1
3518  ;;
3519   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3520 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3521    { (exit 1); exit 1; }; } ;;
3522 esac
3523
3524
3525 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3526   LLVM_HAS_POLLY=1
3527
3528   subdirs="$subdirs tools/polly"
3529
3530 fi
3531
3532
3533 # Make sure we can run config.sub.
3534 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3536 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3537    { (exit 1); exit 1; }; }
3538
3539 { echo "$as_me:$LINENO: checking build system type" >&5
3540 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3541 if test "${ac_cv_build+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   ac_build_alias=$build_alias
3545 test "x$ac_build_alias" = x &&
3546   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547 test "x$ac_build_alias" = x &&
3548   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3549 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3550    { (exit 1); exit 1; }; }
3551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3552   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3553 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3554    { (exit 1); exit 1; }; }
3555
3556 fi
3557 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3558 echo "${ECHO_T}$ac_cv_build" >&6; }
3559 case $ac_cv_build in
3560 *-*-*) ;;
3561 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3562 echo "$as_me: error: invalid value of canonical build" >&2;}
3563    { (exit 1); exit 1; }; };;
3564 esac
3565 build=$ac_cv_build
3566 ac_save_IFS=$IFS; IFS='-'
3567 set x $ac_cv_build
3568 shift
3569 build_cpu=$1
3570 build_vendor=$2
3571 shift; shift
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3574 build_os=$*
3575 IFS=$ac_save_IFS
3576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
3579 { echo "$as_me:$LINENO: checking host system type" >&5
3580 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3581 if test "${ac_cv_host+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test "x$host_alias" = x; then
3585   ac_cv_host=$ac_cv_build
3586 else
3587   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3589 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3590    { (exit 1); exit 1; }; }
3591 fi
3592
3593 fi
3594 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3595 echo "${ECHO_T}$ac_cv_host" >&6; }
3596 case $ac_cv_host in
3597 *-*-*) ;;
3598 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3599 echo "$as_me: error: invalid value of canonical host" >&2;}
3600    { (exit 1); exit 1; }; };;
3601 esac
3602 host=$ac_cv_host
3603 ac_save_IFS=$IFS; IFS='-'
3604 set x $ac_cv_host
3605 shift
3606 host_cpu=$1
3607 host_vendor=$2
3608 shift; shift
3609 # Remember, the first character of IFS is used to create $*,
3610 # except with old shells:
3611 host_os=$*
3612 IFS=$ac_save_IFS
3613 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614
3615
3616 { echo "$as_me:$LINENO: checking target system type" >&5
3617 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3618 if test "${ac_cv_target+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   if test "x$target_alias" = x; then
3622   ac_cv_target=$ac_cv_host
3623 else
3624   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3625     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3626 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3627    { (exit 1); exit 1; }; }
3628 fi
3629
3630 fi
3631 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3632 echo "${ECHO_T}$ac_cv_target" >&6; }
3633 case $ac_cv_target in
3634 *-*-*) ;;
3635 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3636 echo "$as_me: error: invalid value of canonical target" >&2;}
3637    { (exit 1); exit 1; }; };;
3638 esac
3639 target=$ac_cv_target
3640 ac_save_IFS=$IFS; IFS='-'
3641 set x $ac_cv_target
3642 shift
3643 target_cpu=$1
3644 target_vendor=$2
3645 shift; shift
3646 # Remember, the first character of IFS is used to create $*,
3647 # except with old shells:
3648 target_os=$*
3649 IFS=$ac_save_IFS
3650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653 # The aliases save the names the user supplied, while $host etc.
3654 # will get canonicalized.
3655 test -n "$target_alias" &&
3656   test "$program_prefix$program_suffix$program_transform_name" = \
3657     NONENONEs,x,x, &&
3658   program_prefix=${target_alias}-
3659
3660 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3661 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3662 if test "${llvm_cv_os_type+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $host in
3666   *-*-aix*)
3667     llvm_cv_link_all_option="-Wl,--whole-archive"
3668     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669     llvm_cv_os_type="AIX"
3670     llvm_cv_platform_type="Unix" ;;
3671   *-*-irix*)
3672     llvm_cv_link_all_option="-Wl,--whole-archive"
3673     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674     llvm_cv_os_type="IRIX"
3675     llvm_cv_platform_type="Unix" ;;
3676   *-*-cygwin*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="Cygwin"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-darwin*)
3682     llvm_cv_link_all_option="-Wl,-all_load"
3683     llvm_cv_no_link_all_option="-Wl,-noall_load"
3684     llvm_cv_os_type="Darwin"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-minix*)
3687     llvm_cv_link_all_option="-Wl,-all_load"
3688     llvm_cv_no_link_all_option="-Wl,-noall_load"
3689     llvm_cv_os_type="Minix"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-freebsd*)
3692     llvm_cv_link_all_option="-Wl,--whole-archive"
3693     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694     llvm_cv_os_type="FreeBSD"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-openbsd*)
3697     llvm_cv_link_all_option="-Wl,--whole-archive"
3698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699     llvm_cv_os_type="OpenBSD"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-netbsd*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="NetBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-dragonfly*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="DragonFly"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-hpux*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="HP-UX"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-interix*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="Interix"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-linux*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="Linux"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-solaris*)
3727     llvm_cv_link_all_option="-Wl,-z,allextract"
3728     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3729     llvm_cv_os_type="SunOS"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-auroraux*)
3732     llvm_cv_link_all_option="-Wl,-z,allextract"
3733     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3734     llvm_cv_os_type="AuroraUX"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-win32*)
3737     llvm_cv_link_all_option="-Wl,--whole-archive"
3738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739     llvm_cv_os_type="Win32"
3740     llvm_cv_platform_type="Win32" ;;
3741   *-*-mingw*)
3742     llvm_cv_link_all_option="-Wl,--whole-archive"
3743     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744     llvm_cv_os_type="MingW"
3745     llvm_cv_platform_type="Win32" ;;
3746   *-*-haiku*)
3747     llvm_cv_link_all_option="-Wl,--whole-archive"
3748     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749     llvm_cv_os_type="Haiku"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-unknown-eabi*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="Freestanding"
3755     llvm_cv_platform_type="Unix" ;;
3756   *-unknown-elf*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="Freestanding"
3760     llvm_cv_platform_type="Unix" ;;
3761   *)
3762     llvm_cv_link_all_option=""
3763     llvm_cv_no_link_all_option=""
3764     llvm_cv_os_type="Unknown"
3765     llvm_cv_platform_type="Unknown" ;;
3766 esac
3767 fi
3768 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3769 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3770
3771 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3772 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3773 if test "${llvm_cv_target_os_type+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $target in
3777   *-*-aix*)
3778     llvm_cv_target_os_type="AIX" ;;
3779   *-*-irix*)
3780     llvm_cv_target_os_type="IRIX" ;;
3781   *-*-cygwin*)
3782     llvm_cv_target_os_type="Cygwin" ;;
3783   *-*-darwin*)
3784     llvm_cv_target_os_type="Darwin" ;;
3785   *-*-minix*)
3786     llvm_cv_target_os_type="Minix" ;;
3787   *-*-freebsd*)
3788     llvm_cv_target_os_type="FreeBSD" ;;
3789   *-*-openbsd*)
3790     llvm_cv_target_os_type="OpenBSD" ;;
3791   *-*-netbsd*)
3792     llvm_cv_target_os_type="NetBSD" ;;
3793   *-*-dragonfly*)
3794     llvm_cv_target_os_type="DragonFly" ;;
3795   *-*-hpux*)
3796     llvm_cv_target_os_type="HP-UX" ;;
3797   *-*-interix*)
3798     llvm_cv_target_os_type="Interix" ;;
3799   *-*-linux*)
3800     llvm_cv_target_os_type="Linux" ;;
3801   *-*-solaris*)
3802     llvm_cv_target_os_type="SunOS" ;;
3803   *-*-auroraux*)
3804     llvm_cv_target_os_type="AuroraUX" ;;
3805   *-*-win32*)
3806     llvm_cv_target_os_type="Win32" ;;
3807   *-*-mingw*)
3808     llvm_cv_target_os_type="MingW" ;;
3809   *-*-haiku*)
3810     llvm_cv_target_os_type="Haiku" ;;
3811   *-*-rtems*)
3812     llvm_cv_target_os_type="RTEMS" ;;
3813   *-*-nacl*)
3814     llvm_cv_target_os_type="NativeClient" ;;
3815   *-unknown-eabi*)
3816     llvm_cv_target_os_type="Freestanding" ;;
3817   *)
3818     llvm_cv_target_os_type="Unknown" ;;
3819 esac
3820 fi
3821 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3822 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3823
3824 if test "$llvm_cv_os_type" = "Unknown" ; then
3825   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3826 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3827    { (exit 1); exit 1; }; }
3828 fi
3829
3830 OS=$llvm_cv_os_type
3831
3832 HOST_OS=$llvm_cv_os_type
3833
3834 TARGET_OS=$llvm_cv_target_os_type
3835
3836
3837 LINKALL=$llvm_cv_link_all_option
3838
3839 NOLINKALL=$llvm_cv_no_link_all_option
3840
3841
3842 case $llvm_cv_platform_type in
3843   Unix)
3844
3845 cat >>confdefs.h <<\_ACEOF
3846 #define LLVM_ON_UNIX 1
3847 _ACEOF
3848
3849     LLVM_ON_UNIX=1
3850
3851     LLVM_ON_WIN32=0
3852
3853     ;;
3854   Win32)
3855
3856 cat >>confdefs.h <<\_ACEOF
3857 #define LLVM_ON_WIN32 1
3858 _ACEOF
3859
3860     LLVM_ON_UNIX=0
3861
3862     LLVM_ON_WIN32=1
3863
3864     ;;
3865 esac
3866
3867 { echo "$as_me:$LINENO: checking target architecture" >&5
3868 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3869 if test "${llvm_cv_target_arch+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   case $target in
3873   i?86-*)                 llvm_cv_target_arch="x86" ;;
3874   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3875   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3876   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3877   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3878   mips-*)                 llvm_cv_target_arch="Mips" ;;
3879   xcore-*)                llvm_cv_target_arch="XCore" ;;
3880   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3881   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3882   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3883   *)                      llvm_cv_target_arch="Unknown" ;;
3884 esac
3885 fi
3886 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3887 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3888
3889 if test "$llvm_cv_target_arch" = "Unknown" ; then
3890   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3891 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3892 fi
3893
3894 # Determine the LLVM native architecture for the target
3895 case "$llvm_cv_target_arch" in
3896     x86)     LLVM_NATIVE_ARCH="X86" ;;
3897     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3898     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3899 esac
3900
3901 ARCH=$llvm_cv_target_arch
3902
3903
3904
3905
3906 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3908 if test "${ac_cv_path_GREP+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   # Extract the first word of "grep ggrep" to use in msg output
3912 if test -z "$GREP"; then
3913 set dummy grep ggrep; ac_prog_name=$2
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   ac_path_GREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924   for ac_prog in grep ggrep; do
3925   for ac_exec_ext in '' $ac_executable_extensions; do
3926     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3928     # Check for GNU ac_path_GREP and select it if it is found.
3929   # Check for GNU $ac_path_GREP
3930 case `"$ac_path_GREP" --version 2>&1` in
3931 *GNU*)
3932   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3933 *)
3934   ac_count=0
3935   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3936   while :
3937   do
3938     cat "conftest.in" "conftest.in" >"conftest.tmp"
3939     mv "conftest.tmp" "conftest.in"
3940     cp "conftest.in" "conftest.nl"
3941     echo 'GREP' >> "conftest.nl"
3942     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944     ac_count=`expr $ac_count + 1`
3945     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946       # Best one so far, save it but keep looking for a better one
3947       ac_cv_path_GREP="$ac_path_GREP"
3948       ac_path_GREP_max=$ac_count
3949     fi
3950     # 10*(2^10) chars as input seems more than enough
3951     test $ac_count -gt 10 && break
3952   done
3953   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 esac
3955
3956
3957     $ac_path_GREP_found && break 3
3958   done
3959 done
3960
3961 done
3962 IFS=$as_save_IFS
3963
3964
3965 fi
3966
3967 GREP="$ac_cv_path_GREP"
3968 if test -z "$GREP"; then
3969   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3970 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3971    { (exit 1); exit 1; }; }
3972 fi
3973
3974 else
3975   ac_cv_path_GREP=$GREP
3976 fi
3977
3978
3979 fi
3980 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3982  GREP="$ac_cv_path_GREP"
3983
3984
3985 { echo "$as_me:$LINENO: checking for egrep" >&5
3986 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3987 if test "${ac_cv_path_EGREP+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991    then ac_cv_path_EGREP="$GREP -E"
3992    else
3993      # Extract the first word of "egrep" to use in msg output
3994 if test -z "$EGREP"; then
3995 set dummy egrep; ac_prog_name=$2
3996 if test "${ac_cv_path_EGREP+set}" = set; then
3997   echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999   ac_path_EGREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_prog in egrep; do
4007   for ac_exec_ext in '' $ac_executable_extensions; do
4008     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4010     # Check for GNU ac_path_EGREP and select it if it is found.
4011   # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4013 *GNU*)
4014   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4015 *)
4016   ac_count=0
4017   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4018   while :
4019   do
4020     cat "conftest.in" "conftest.in" >"conftest.tmp"
4021     mv "conftest.tmp" "conftest.in"
4022     cp "conftest.in" "conftest.nl"
4023     echo 'EGREP' >> "conftest.nl"
4024     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026     ac_count=`expr $ac_count + 1`
4027     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028       # Best one so far, save it but keep looking for a better one
4029       ac_cv_path_EGREP="$ac_path_EGREP"
4030       ac_path_EGREP_max=$ac_count
4031     fi
4032     # 10*(2^10) chars as input seems more than enough
4033     test $ac_count -gt 10 && break
4034   done
4035   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4037
4038
4039     $ac_path_EGREP_found && break 3
4040   done
4041 done
4042
4043 done
4044 IFS=$as_save_IFS
4045
4046
4047 fi
4048
4049 EGREP="$ac_cv_path_EGREP"
4050 if test -z "$EGREP"; then
4051   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053    { (exit 1); exit 1; }; }
4054 fi
4055
4056 else
4057   ac_cv_path_EGREP=$EGREP
4058 fi
4059
4060
4061    fi
4062 fi
4063 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4064 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4065  EGREP="$ac_cv_path_EGREP"
4066
4067
4068 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4070 if test "${ac_cv_header_stdc+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #include <stdlib.h>
4080 #include <stdarg.h>
4081 #include <string.h>
4082 #include <float.h>
4083
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (ac_try="$ac_compile"
4094 case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099   (eval "$ac_compile") 2>conftest.er1
4100   ac_status=$?
4101   grep -v '^ *+' conftest.er1 >conftest.err
4102   rm -f conftest.er1
4103   cat conftest.err >&5
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); } &&
4106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4107   { (case "(($ac_try" in
4108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109   *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112   (eval "$ac_try") 2>&5
4113   ac_status=$?
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); }; } &&
4116          { ac_try='test -s conftest.$ac_objext'
4117   { (case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122   (eval "$ac_try") 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; }; then
4126   ac_cv_header_stdc=yes
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131         ac_cv_header_stdc=no
4132 fi
4133
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135
4136 if test $ac_cv_header_stdc = yes; then
4137   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4138   cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 #include <string.h>
4145
4146 _ACEOF
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148   $EGREP "memchr" >/dev/null 2>&1; then
4149   :
4150 else
4151   ac_cv_header_stdc=no
4152 fi
4153 rm -f conftest*
4154
4155 fi
4156
4157 if test $ac_cv_header_stdc = yes; then
4158   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4159   cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h.  */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h.  */
4165 #include <stdlib.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169   $EGREP "free" >/dev/null 2>&1; then
4170   :
4171 else
4172   ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4180   if test "$cross_compiling" = yes; then
4181   :
4182 else
4183   cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 #include <ctype.h>
4190 #include <stdlib.h>
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4194 #else
4195 # define ISLOWER(c) \
4196                    (('a' <= (c) && (c) <= 'i') \
4197                      || ('j' <= (c) && (c) <= 'r') \
4198                      || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4200 #endif
4201
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4203 int
4204 main ()
4205 {
4206   int i;
4207   for (i = 0; i < 256; i++)
4208     if (XOR (islower (i), ISLOWER (i))
4209         || toupper (i) != TOUPPER (i))
4210       return 2;
4211   return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest$ac_exeext
4215 if { (ac_try="$ac_link"
4216 case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221   (eval "$ac_link") 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225   { (case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230   (eval "$ac_try") 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   :
4235 else
4236   echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ( exit $ac_status )
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 fi
4245
4246
4247 fi
4248 fi
4249 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4250 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4251 if test $ac_cv_header_stdc = yes; then
4252
4253 cat >>confdefs.h <<\_ACEOF
4254 #define STDC_HEADERS 1
4255 _ACEOF
4256
4257 fi
4258
4259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4270                   inttypes.h stdint.h unistd.h
4271 do
4272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284 $ac_includes_default
4285
4286 #include <$ac_header>
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295   (eval "$ac_compile") 2>conftest.er1
4296   ac_status=$?
4297   grep -v '^ *+' conftest.er1 >conftest.err
4298   rm -f conftest.er1
4299   cat conftest.err >&5
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); } &&
4302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4303   { (case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_try") 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; } &&
4312          { ac_try='test -s conftest.$ac_objext'
4313   { (case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318   (eval "$ac_try") 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); }; }; then
4322   eval "$as_ac_Header=yes"
4323 else
4324   echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327         eval "$as_ac_Header=no"
4328 fi
4329
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 ac_res=`eval echo '${'$as_ac_Header'}'`
4333                { echo "$as_me:$LINENO: result: $ac_res" >&5
4334 echo "${ECHO_T}$ac_res" >&6; }
4335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4336   cat >>confdefs.h <<_ACEOF
4337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 _ACEOF
4339
4340 fi
4341
4342 done
4343
4344
4345 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4346 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4347 if test "${ac_cv_c_bigendian+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   # See if sys/param.h defines the BYTE_ORDER macro.
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h.  */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h.  */
4357 #include <sys/types.h>
4358 #include <sys/param.h>
4359
4360 int
4361 main ()
4362 {
4363 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4364  bogus endian macros
4365 #endif
4366
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (ac_try="$ac_compile"
4373 case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378   (eval "$ac_compile") 2>conftest.er1
4379   ac_status=$?
4380   grep -v '^ *+' conftest.er1 >conftest.err
4381   rm -f conftest.er1
4382   cat conftest.err >&5
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); } &&
4385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4386   { (case "(($ac_try" in
4387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388   *) ac_try_echo=$ac_try;;
4389 esac
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391   (eval "$ac_try") 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; } &&
4395          { ac_try='test -s conftest.$ac_objext'
4396   { (case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_try") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; }; then
4405   # It does; now see whether it defined to BIG_ENDIAN or not.
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412 #include <sys/types.h>
4413 #include <sys/param.h>
4414
4415 int
4416 main ()
4417 {
4418 #if BYTE_ORDER != BIG_ENDIAN
4419  not big endian
4420 #endif
4421
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 rm -f conftest.$ac_objext
4427 if { (ac_try="$ac_compile"
4428 case "(($ac_try" in
4429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430   *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433   (eval "$ac_compile") 2>conftest.er1
4434   ac_status=$?
4435   grep -v '^ *+' conftest.er1 >conftest.err
4436   rm -f conftest.er1
4437   cat conftest.err >&5
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); } &&
4440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4441   { (case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446   (eval "$ac_try") 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; } &&
4450          { ac_try='test -s conftest.$ac_objext'
4451   { (case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456   (eval "$ac_try") 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460   ac_cv_c_bigendian=yes
4461 else
4462   echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465         ac_cv_c_bigendian=no
4466 fi
4467
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473         # It does not; compile a test program.
4474 if test "$cross_compiling" = yes; then
4475   # try to guess the endianness by grepping values into an object file
4476   ac_cv_c_bigendian=unknown
4477   cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4484 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4485 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4486 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4487 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4488 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4489 int
4490 main ()
4491 {
4492  _ascii (); _ebcdic ();
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_compile") 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } &&
4511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4512   { (case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_try") 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; } &&
4521          { ac_try='test -s conftest.$ac_objext'
4522   { (case "(($ac_try" in
4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524   *) ac_try_echo=$ac_try;;
4525 esac
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527   (eval "$ac_try") 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; }; then
4531   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4532   ac_cv_c_bigendian=yes
4533 fi
4534 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4535   if test "$ac_cv_c_bigendian" = unknown; then
4536     ac_cv_c_bigendian=no
4537   else
4538     # finding both strings is unlikely to happen, but who knows?
4539     ac_cv_c_bigendian=unknown
4540   fi
4541 fi
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546
4547 fi
4548
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 else
4551   cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557 $ac_includes_default
4558 int
4559 main ()
4560 {
4561
4562   /* Are we little or big endian?  From Harbison&Steele.  */
4563   union
4564   {
4565     long int l;
4566     char c[sizeof (long int)];
4567   } u;
4568   u.l = 1;
4569   return u.c[sizeof (long int) - 1] == 1;
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest$ac_exeext
4576 if { (ac_try="$ac_link"
4577 case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582   (eval "$ac_link") 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4586   { (case "(($ac_try" in
4587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588   *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591   (eval "$ac_try") 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; }; then
4595   ac_cv_c_bigendian=no
4596 else
4597   echo "$as_me: program exited with status $ac_status" >&5
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601 ( exit $ac_status )
4602 ac_cv_c_bigendian=yes
4603 fi
4604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 fi
4606
4607
4608 fi
4609
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4613 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4614 case $ac_cv_c_bigendian in
4615   yes)
4616     ENDIAN=big
4617  ;;
4618   no)
4619     ENDIAN=little
4620  ;;
4621   *)
4622     { { echo "$as_me:$LINENO: error: unknown endianness
4623 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4624 echo "$as_me: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4626    { (exit 1); exit 1; }; } ;;
4627 esac
4628
4629
4630 if test "$cross_compiling" = yes; then
4631   LLVM_CROSS_COMPILING=1
4632
4633
4634 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4635 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4636 if test "${ac_cv_build_exeext+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4640   ac_cv_build_exeext=.exe
4641 else
4642   ac_build_prefix=${build_alias}-
4643
4644   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4645 set dummy ${ac_build_prefix}gcc; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   if test -n "$BUILD_CC"; then
4652   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659   for ac_exec_ext in '' $ac_executable_extensions; do
4660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4661     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 BUILD_CC=$ac_cv_prog_BUILD_CC
4672 if test -n "$BUILD_CC"; then
4673   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4674 echo "${ECHO_T}$BUILD_CC" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681   if test -z "$BUILD_CC"; then
4682      # Extract the first word of "gcc", so it can be a program name with args.
4683 set dummy gcc; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$BUILD_CC"; then
4690   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699     ac_cv_prog_BUILD_CC="gcc"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 BUILD_CC=$ac_cv_prog_BUILD_CC
4710 if test -n "$BUILD_CC"; then
4711   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4712 echo "${ECHO_T}$BUILD_CC" >&6; }
4713 else
4714   { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4716 fi
4717
4718
4719      if test -z "$BUILD_CC"; then
4720        # Extract the first word of "cc", so it can be a program name with args.
4721 set dummy cc; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   if test -n "$BUILD_CC"; then
4728   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4729 else
4730   ac_prog_rejected=no
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4738     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4739        ac_prog_rejected=yes
4740        continue
4741      fi
4742     ac_cv_prog_BUILD_CC="cc"
4743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744     break 2
4745   fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 if test $ac_prog_rejected = yes; then
4751   # We found a bogon in the path, so make sure we never use it.
4752   set dummy $ac_cv_prog_BUILD_CC
4753   shift
4754   if test $# != 0; then
4755     # We chose a different compiler from the bogus one.
4756     # However, it has the same basename, so the bogon will be chosen
4757     # first if we set BUILD_CC to just the basename; use the full file name.
4758     shift
4759     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4760   fi
4761 fi
4762 fi
4763 fi
4764 BUILD_CC=$ac_cv_prog_BUILD_CC
4765 if test -n "$BUILD_CC"; then
4766   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4767 echo "${ECHO_T}$BUILD_CC" >&6; }
4768 else
4769   { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4771 fi
4772
4773
4774      fi
4775   fi
4776   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4777 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4778    { (exit 1); exit 1; }; }
4779   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4780   rm -f conftest*
4781   echo 'int main () { return 0; }' > conftest.$ac_ext
4782   ac_cv_build_exeext=
4783   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4784   (eval $ac_build_link) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; then
4788     for file in conftest.*; do
4789       case $file in
4790       *.c | *.o | *.obj | *.dSYM) ;;
4791       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4792       esac
4793     done
4794   else
4795     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4796 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4797    { (exit 1); exit 1; }; }
4798   fi
4799   rm -f conftest*
4800   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4801 fi
4802 fi
4803
4804 BUILD_EXEEXT=""
4805 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4806 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4807 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4808 ac_build_exeext=$BUILD_EXEEXT
4809
4810   ac_build_prefix=${build_alias}-
4811   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4812 set dummy ${ac_build_prefix}g++; ac_word=$2
4813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -n "$BUILD_CXX"; then
4819   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4828     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4839 if test -n "$BUILD_CXX"; then
4840   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4841 echo "${ECHO_T}$BUILD_CXX" >&6; }
4842 else
4843   { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4845 fi
4846
4847
4848   if test -z "$BUILD_CXX"; then
4849      # Extract the first word of "g++", so it can be a program name with args.
4850 set dummy g++; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$BUILD_CXX"; then
4857   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4866     ac_cv_prog_BUILD_CXX="g++"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4877 if test -n "$BUILD_CXX"; then
4878   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4879 echo "${ECHO_T}$BUILD_CXX" >&6; }
4880 else
4881   { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4883 fi
4884
4885
4886      if test -z "$BUILD_CXX"; then
4887        # Extract the first word of "c++", so it can be a program name with args.
4888 set dummy c++; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   if test -n "$BUILD_CXX"; then
4895   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4896 else
4897   ac_prog_rejected=no
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903   for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4906        ac_prog_rejected=yes
4907        continue
4908      fi
4909     ac_cv_prog_BUILD_CXX="c++"
4910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 if test $ac_prog_rejected = yes; then
4918   # We found a bogon in the path, so make sure we never use it.
4919   set dummy $ac_cv_prog_BUILD_CXX
4920   shift
4921   if test $# != 0; then
4922     # We chose a different compiler from the bogus one.
4923     # However, it has the same basename, so the bogon will be chosen
4924     # first if we set BUILD_CXX to just the basename; use the full file name.
4925     shift
4926     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4927   fi
4928 fi
4929 fi
4930 fi
4931 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4932 if test -n "$BUILD_CXX"; then
4933   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4934 echo "${ECHO_T}$BUILD_CXX" >&6; }
4935 else
4936   { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4938 fi
4939
4940
4941      fi
4942   fi
4943 else
4944   LLVM_CROSS_COMPILING=0
4945
4946 fi
4947
4948 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4949   cvsbuild="yes"
4950   optimize="no"
4951   CVSBUILD=CVSBUILD=1
4952
4953 else
4954   cvsbuild="no"
4955   optimize="yes"
4956 fi
4957
4958
4959 # Check whether --enable-optimized was given.
4960 if test "${enable_optimized+set}" = set; then
4961   enableval=$enable_optimized;
4962 else
4963   enableval=$optimize
4964 fi
4965
4966 if test ${enableval} = "no" ; then
4967   ENABLE_OPTIMIZED=
4968
4969 else
4970   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4971
4972 fi
4973
4974 # Check whether --enable-profiling was given.
4975 if test "${enable_profiling+set}" = set; then
4976   enableval=$enable_profiling;
4977 else
4978   enableval="no"
4979 fi
4980
4981 if test ${enableval} = "no" ; then
4982   ENABLE_PROFILING=
4983
4984 else
4985   ENABLE_PROFILING=ENABLE_PROFILING=1
4986
4987 fi
4988
4989 # Check whether --enable-assertions was given.
4990 if test "${enable_assertions+set}" = set; then
4991   enableval=$enable_assertions;
4992 else
4993   enableval="yes"
4994 fi
4995
4996 if test ${enableval} = "yes" ; then
4997   DISABLE_ASSERTIONS=
4998
4999 else
5000   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5001
5002 fi
5003
5004 # Check whether --enable-expensive-checks was given.
5005 if test "${enable_expensive_checks+set}" = set; then
5006   enableval=$enable_expensive_checks;
5007 else
5008   enableval="no"
5009 fi
5010
5011 if test ${enableval} = "yes" ; then
5012   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5013
5014   EXPENSIVE_CHECKS=yes
5015
5016 else
5017   ENABLE_EXPENSIVE_CHECKS=
5018
5019   EXPENSIVE_CHECKS=no
5020
5021 fi
5022
5023 # Check whether --enable-debug-runtime was given.
5024 if test "${enable_debug_runtime+set}" = set; then
5025   enableval=$enable_debug_runtime;
5026 else
5027   enableval=no
5028 fi
5029
5030 if test ${enableval} = "no" ; then
5031   DEBUG_RUNTIME=
5032
5033 else
5034   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5035
5036 fi
5037
5038 # Check whether --enable-debug-symbols was given.
5039 if test "${enable_debug_symbols+set}" = set; then
5040   enableval=$enable_debug_symbols;
5041 else
5042   enableval=no
5043 fi
5044
5045 if test ${enableval} = "no" ; then
5046   DEBUG_SYMBOLS=
5047
5048 else
5049   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5050
5051 fi
5052
5053 # Check whether --enable-jit was given.
5054 if test "${enable_jit+set}" = set; then
5055   enableval=$enable_jit;
5056 else
5057   enableval=default
5058 fi
5059
5060 if test ${enableval} = "no"
5061 then
5062   JIT=
5063
5064 else
5065   case "$llvm_cv_target_arch" in
5066     x86)         TARGET_HAS_JIT=1
5067  ;;
5068     Sparc)       TARGET_HAS_JIT=0
5069  ;;
5070     PowerPC)     TARGET_HAS_JIT=1
5071  ;;
5072     x86_64)      TARGET_HAS_JIT=1
5073  ;;
5074     ARM)         TARGET_HAS_JIT=1
5075  ;;
5076     Mips)        TARGET_HAS_JIT=1
5077  ;;
5078     XCore)       TARGET_HAS_JIT=0
5079  ;;
5080     MSP430)      TARGET_HAS_JIT=0
5081  ;;
5082     MBlaze)      TARGET_HAS_JIT=0
5083  ;;
5084     PTX)         TARGET_HAS_JIT=0
5085  ;;
5086     *)           TARGET_HAS_JIT=0
5087  ;;
5088   esac
5089 fi
5090
5091 # Check whether --enable-docs was given.
5092 if test "${enable_docs+set}" = set; then
5093   enableval=$enable_docs;
5094 else
5095   enableval=default
5096 fi
5097
5098 case "$enableval" in
5099   yes) ENABLE_DOCS=1
5100  ;;
5101   no)  ENABLE_DOCS=0
5102  ;;
5103   default) ENABLE_DOCS=1
5104  ;;
5105   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5106 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5107    { (exit 1); exit 1; }; } ;;
5108 esac
5109
5110 # Check whether --enable-doxygen was given.
5111 if test "${enable_doxygen+set}" = set; then
5112   enableval=$enable_doxygen;
5113 else
5114   enableval=default
5115 fi
5116
5117 case "$enableval" in
5118   yes) ENABLE_DOXYGEN=1
5119  ;;
5120   no)  ENABLE_DOXYGEN=0
5121  ;;
5122   default) ENABLE_DOXYGEN=0
5123  ;;
5124   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5125 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5126    { (exit 1); exit 1; }; } ;;
5127 esac
5128
5129 # Check whether --enable-threads was given.
5130 if test "${enable_threads+set}" = set; then
5131   enableval=$enable_threads;
5132 else
5133   enableval=default
5134 fi
5135
5136 case "$enableval" in
5137   yes) ENABLE_THREADS=1
5138  ;;
5139   no)  ENABLE_THREADS=0
5140  ;;
5141   default) ENABLE_THREADS=1
5142  ;;
5143   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5145    { (exit 1); exit 1; }; } ;;
5146 esac
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define ENABLE_THREADS $ENABLE_THREADS
5150 _ACEOF
5151
5152
5153 # Check whether --enable-pthreads was given.
5154 if test "${enable_pthreads+set}" = set; then
5155   enableval=$enable_pthreads;
5156 else
5157   enableval=default
5158 fi
5159
5160 case "$enableval" in
5161   yes) ENABLE_PTHREADS=1
5162  ;;
5163   no)  ENABLE_PTHREADS=0
5164  ;;
5165   default) ENABLE_PTHREADS=1
5166  ;;
5167   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5169    { (exit 1); exit 1; }; } ;;
5170 esac
5171
5172 # Check whether --enable-pic was given.
5173 if test "${enable_pic+set}" = set; then
5174   enableval=$enable_pic;
5175 else
5176   enableval=default
5177 fi
5178
5179 case "$enableval" in
5180   yes) ENABLE_PIC=1
5181  ;;
5182   no)  ENABLE_PIC=0
5183  ;;
5184   default) ENABLE_PIC=1
5185  ;;
5186   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5188    { (exit 1); exit 1; }; } ;;
5189 esac
5190
5191 cat >>confdefs.h <<_ACEOF
5192 #define ENABLE_PIC $ENABLE_PIC
5193 _ACEOF
5194
5195
5196 # Check whether --enable-shared was given.
5197 if test "${enable_shared+set}" = set; then
5198   enableval=$enable_shared;
5199 else
5200   enableval=default
5201 fi
5202
5203 case "$enableval" in
5204   yes) ENABLE_SHARED=1
5205  ;;
5206   no)  ENABLE_SHARED=0
5207  ;;
5208   default) ENABLE_SHARED=0
5209  ;;
5210   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5212    { (exit 1); exit 1; }; } ;;
5213 esac
5214
5215 # Check whether --enable-embed-stdcxx was given.
5216 if test "${enable_embed_stdcxx+set}" = set; then
5217   enableval=$enable_embed_stdcxx;
5218 else
5219   enableval=default
5220 fi
5221
5222 case "$enableval" in
5223   yes) ENABLE_EMBED_STDCXX=1
5224  ;;
5225   no)  ENABLE_EMBED_STDCXX=0
5226  ;;
5227   default) ENABLE_EMBED_STDCXX=0
5228  ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-timestamps was given.
5235 if test "${enable_timestamps+set}" = set; then
5236   enableval=$enable_timestamps;
5237 else
5238   enableval=default
5239 fi
5240
5241 case "$enableval" in
5242   yes) ENABLE_TIMESTAMPS=1
5243  ;;
5244   no)  ENABLE_TIMESTAMPS=0
5245  ;;
5246   default) ENABLE_TIMESTAMPS=1
5247  ;;
5248   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5250    { (exit 1); exit 1; }; } ;;
5251 esac
5252
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5255 _ACEOF
5256
5257
5258 TARGETS_TO_BUILD=""
5259 # Check whether --enable-targets was given.
5260 if test "${enable_targets+set}" = set; then
5261   enableval=$enable_targets;
5262 else
5263   enableval=all
5264 fi
5265
5266 if test "$enableval" = host-only ; then
5267   enableval=host
5268 fi
5269 case "$enableval" in
5270   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5271   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5272       case "$a_target" in
5273         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5274         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5275         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5276         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5277         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5278         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5279         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5280         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5281         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5282         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5283         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5284         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5285         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5286         host) case "$llvm_cv_target_arch" in
5287             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5288             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5289             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5290             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5291             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5292             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5293             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5294             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5295             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5296             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5297             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5298             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5299 echo "$as_me: error: Can not set target to build" >&2;}
5300    { (exit 1); exit 1; }; } ;;
5301           esac ;;
5302         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5303 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5304    { (exit 1); exit 1; }; } ;;
5305       esac
5306   done
5307   ;;
5308 esac
5309 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5310
5311
5312 # Determine whether we are building LLVM support for the native architecture.
5313 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5314 for a_target in $TARGETS_TO_BUILD; do
5315   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5316
5317 cat >>confdefs.h <<_ACEOF
5318 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5319 _ACEOF
5320
5321     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5322     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5323     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5324     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5325     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5326       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5327     fi
5328
5329 cat >>confdefs.h <<_ACEOF
5330 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5331 _ACEOF
5332
5333
5334 cat >>confdefs.h <<_ACEOF
5335 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5336 _ACEOF
5337
5338
5339 cat >>confdefs.h <<_ACEOF
5340 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5341 _ACEOF
5342
5343
5344 cat >>confdefs.h <<_ACEOF
5345 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5346 _ACEOF
5347
5348     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5352 _ACEOF
5353
5354     fi
5355   fi
5356 done
5357
5358 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5359 # target feature def files.
5360 LLVM_ENUM_TARGETS=""
5361 LLVM_ENUM_ASM_PRINTERS=""
5362 LLVM_ENUM_ASM_PARSERS=""
5363 LLVM_ENUM_DISASSEMBLERS=""
5364 for target_to_build in $TARGETS_TO_BUILD; do
5365   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5366   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5367     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5368   fi
5369   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5370     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5371   fi
5372   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5373     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5374   fi
5375 done
5376
5377
5378
5379
5380
5381 # Check whether --enable-cbe-printf-a was given.
5382 if test "${enable_cbe_printf_a+set}" = set; then
5383   enableval=$enable_cbe_printf_a;
5384 else
5385   enableval=default
5386 fi
5387
5388 case "$enableval" in
5389   yes) ENABLE_CBE_PRINTF_A=1
5390  ;;
5391   no)  ENABLE_CBE_PRINTF_A=0
5392  ;;
5393   default)  ENABLE_CBE_PRINTF_A=1
5394  ;;
5395   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5396 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5397    { (exit 1); exit 1; }; } ;;
5398 esac
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5402 _ACEOF
5403
5404
5405
5406 # Check whether --with-optimize-option was given.
5407 if test "${with_optimize_option+set}" = set; then
5408   withval=$with_optimize_option;
5409 else
5410   withval=default
5411 fi
5412
5413 { echo "$as_me:$LINENO: checking optimization flags" >&5
5414 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5415 case "$withval" in
5416   default)
5417     case "$llvm_cv_os_type" in
5418     FreeBSD) optimize_option=-O2 ;;
5419     MingW) optimize_option=-O2 ;;
5420     *)     optimize_option=-O3 ;;
5421     esac ;;
5422   *) optimize_option="$withval" ;;
5423 esac
5424 OPTIMIZE_OPTION=$optimize_option
5425
5426 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5427 echo "${ECHO_T}$optimize_option" >&6; }
5428
5429
5430 # Check whether --with-extra-options was given.
5431 if test "${with_extra_options+set}" = set; then
5432   withval=$with_extra_options;
5433 else
5434   withval=default
5435 fi
5436
5437 case "$withval" in
5438   default) EXTRA_OPTIONS= ;;
5439   *) EXTRA_OPTIONS=$withval ;;
5440 esac
5441 EXTRA_OPTIONS=$EXTRA_OPTIONS
5442
5443
5444
5445 # Check whether --with-extra-ld-options was given.
5446 if test "${with_extra_ld_options+set}" = set; then
5447   withval=$with_extra_ld_options;
5448 else
5449   withval=default
5450 fi
5451
5452 case "$withval" in
5453   default) EXTRA_LD_OPTIONS= ;;
5454   *) EXTRA_LD_OPTIONS=$withval ;;
5455 esac
5456 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5457
5458
5459 # Check whether --enable-bindings was given.
5460 if test "${enable_bindings+set}" = set; then
5461   enableval=$enable_bindings;
5462 else
5463   enableval=default
5464 fi
5465
5466 BINDINGS_TO_BUILD=""
5467 case "$enableval" in
5468   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5469   all ) BINDINGS_TO_BUILD="ocaml" ;;
5470   none | no) BINDINGS_TO_BUILD="" ;;
5471   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5472       case "$a_binding" in
5473         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5474         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5475 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477       esac
5478   done
5479   ;;
5480 esac
5481
5482
5483 # Check whether --with-ocaml-libdir was given.
5484 if test "${with_ocaml_libdir+set}" = set; then
5485   withval=$with_ocaml_libdir;
5486 else
5487   withval=auto
5488 fi
5489
5490 case "$withval" in
5491   auto) with_ocaml_libdir="$withval" ;;
5492   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5494 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498
5499 # Check whether --with-clang-srcdir was given.
5500 if test "${with_clang_srcdir+set}" = set; then
5501   withval=$with_clang_srcdir;
5502 else
5503   withval="-"
5504 fi
5505
5506 case "$withval" in
5507   -) clang_src_root="" ;;
5508   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5509   *) clang_src_root="$ac_pwd/$withval" ;;
5510 esac
5511 CLANG_SRC_ROOT=$clang_src_root
5512
5513
5514
5515 # Check whether --with-clang-resource-dir was given.
5516 if test "${with_clang_resource_dir+set}" = set; then
5517   withval=$with_clang_resource_dir;
5518 else
5519   withval=""
5520 fi
5521
5522
5523 cat >>confdefs.h <<_ACEOF
5524 #define CLANG_RESOURCE_DIR "$withval"
5525 _ACEOF
5526
5527
5528
5529 # Check whether --with-c-include-dirs was given.
5530 if test "${with_c_include_dirs+set}" = set; then
5531   withval=$with_c_include_dirs;
5532 else
5533   withval=""
5534 fi
5535
5536
5537 cat >>confdefs.h <<_ACEOF
5538 #define C_INCLUDE_DIRS "$withval"
5539 _ACEOF
5540
5541
5542
5543 # Check whether --with-cxx-include-root was given.
5544 if test "${with_cxx_include_root+set}" = set; then
5545   withval=$with_cxx_include_root;
5546 else
5547   withval=""
5548 fi
5549
5550
5551 cat >>confdefs.h <<_ACEOF
5552 #define CXX_INCLUDE_ROOT "$withval"
5553 _ACEOF
5554
5555
5556
5557 # Check whether --with-cxx-include-arch was given.
5558 if test "${with_cxx_include_arch+set}" = set; then
5559   withval=$with_cxx_include_arch;
5560 else
5561   withval=""
5562 fi
5563
5564
5565 cat >>confdefs.h <<_ACEOF
5566 #define CXX_INCLUDE_ARCH "$withval"
5567 _ACEOF
5568
5569
5570
5571 # Check whether --with-cxx-include-32bit-dir was given.
5572 if test "${with_cxx_include_32bit_dir+set}" = set; then
5573   withval=$with_cxx_include_32bit_dir;
5574 else
5575   withval=""
5576 fi
5577
5578
5579 cat >>confdefs.h <<_ACEOF
5580 #define CXX_INCLUDE_32BIT_DIR "$withval"
5581 _ACEOF
5582
5583
5584
5585 # Check whether --with-cxx-include-64bit-dir was given.
5586 if test "${with_cxx_include_64bit_dir+set}" = set; then
5587   withval=$with_cxx_include_64bit_dir;
5588 else
5589   withval=""
5590 fi
5591
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define CXX_INCLUDE_64BIT_DIR "$withval"
5595 _ACEOF
5596
5597
5598
5599 # Check whether --with-binutils-include was given.
5600 if test "${with_binutils_include+set}" = set; then
5601   withval=$with_binutils_include;
5602 else
5603   withval=default
5604 fi
5605
5606 case "$withval" in
5607   default) WITH_BINUTILS_INCDIR=default ;;
5608   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5609   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5610 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5611    { (exit 1); exit 1; }; } ;;
5612 esac
5613 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5614   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5615
5616   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5617      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5618      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5619 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5620    { (exit 1); exit 1; }; };
5621   fi
5622 fi
5623
5624
5625 # Check whether --with-bug-report-url was given.
5626 if test "${with_bug_report_url+set}" = set; then
5627   withval=$with_bug_report_url;
5628 else
5629   withval="http://llvm.org/bugs/"
5630 fi
5631
5632
5633 cat >>confdefs.h <<_ACEOF
5634 #define BUG_REPORT_URL "$withval"
5635 _ACEOF
5636
5637
5638 # Check whether --enable-libffi was given.
5639 if test "${enable_libffi+set}" = set; then
5640   enableval=$enable_libffi; case "$enableval" in
5641     yes) llvm_cv_enable_libffi="yes" ;;
5642     no)  llvm_cv_enable_libffi="no"  ;;
5643     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5644 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5645    { (exit 1); exit 1; }; } ;;
5646   esac
5647 else
5648   llvm_cv_enable_libffi=no
5649 fi
5650
5651
5652
5653 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5654 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5655 if test "${lt_cv_path_NM+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   if test -n "$NM"; then
5659   # Let the user override the test.
5660   lt_cv_path_NM="$NM"
5661 else
5662   lt_nm_to_check="${ac_tool_prefix}nm"
5663   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5664     lt_nm_to_check="$lt_nm_to_check nm"
5665   fi
5666   for lt_tmp_nm in $lt_nm_to_check; do
5667     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5668     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5669       IFS="$lt_save_ifs"
5670       test -z "$ac_dir" && ac_dir=.
5671       tmp_nm="$ac_dir/$lt_tmp_nm"
5672       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5673         # Check to see if the nm accepts a BSD-compat flag.
5674         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5675         #   nm: unknown option "B" ignored
5676         # Tru64's nm complains that /dev/null is an invalid object file
5677         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5678         */dev/null* | *'Invalid file or object type'*)
5679           lt_cv_path_NM="$tmp_nm -B"
5680           break
5681           ;;
5682         *)
5683           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5684           */dev/null*)
5685             lt_cv_path_NM="$tmp_nm -p"
5686             break
5687             ;;
5688           *)
5689             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5690             continue # so that we can try to find one that supports BSD flags
5691             ;;
5692           esac
5693           ;;
5694         esac
5695       fi
5696     done
5697     IFS="$lt_save_ifs"
5698   done
5699   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5700 fi
5701 fi
5702 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5703 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5704 NM="$lt_cv_path_NM"
5705
5706
5707
5708 { echo "$as_me:$LINENO: checking for GNU make" >&5
5709 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5710 if test "${llvm_cv_gnu_make_command+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   llvm_cv_gnu_make_command=''
5714  for a in "$MAKE" make gmake gnumake ; do
5715   if test -z "$a" ; then continue ; fi ;
5716   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5717   then
5718    llvm_cv_gnu_make_command=$a ;
5719    break;
5720   fi
5721  done
5722 fi
5723 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5724 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5725  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5726    ifGNUmake='' ;
5727  else
5728    ifGNUmake='#' ;
5729    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5730 echo "${ECHO_T}\"Not found\"" >&6; };
5731  fi
5732
5733
5734 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5735 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5736 LN_S=$as_ln_s
5737 if test "$LN_S" = "ln -s"; then
5738   { echo "$as_me:$LINENO: result: yes" >&5
5739 echo "${ECHO_T}yes" >&6; }
5740 else
5741   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5742 echo "${ECHO_T}no, using $LN_S" >&6; }
5743 fi
5744
5745 # Extract the first word of "cmp", so it can be a program name with args.
5746 set dummy cmp; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_path_CMP+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   case $CMP in
5753   [\\/]* | ?:[\\/]*)
5754   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5755   ;;
5756   *)
5757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762   for ac_exec_ext in '' $ac_executable_extensions; do
5763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5773   ;;
5774 esac
5775 fi
5776 CMP=$ac_cv_path_CMP
5777 if test -n "$CMP"; then
5778   { echo "$as_me:$LINENO: result: $CMP" >&5
5779 echo "${ECHO_T}$CMP" >&6; }
5780 else
5781   { echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6; }
5783 fi
5784
5785
5786 # Extract the first word of "cp", so it can be a program name with args.
5787 set dummy cp; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_CP+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   case $CP in
5794   [\\/]* | ?:[\\/]*)
5795   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5796   ;;
5797   *)
5798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801   IFS=$as_save_IFS
5802   test -z "$as_dir" && as_dir=.
5803   for ac_exec_ext in '' $ac_executable_extensions; do
5804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807     break 2
5808   fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5814   ;;
5815 esac
5816 fi
5817 CP=$ac_cv_path_CP
5818 if test -n "$CP"; then
5819   { echo "$as_me:$LINENO: result: $CP" >&5
5820 echo "${ECHO_T}$CP" >&6; }
5821 else
5822   { echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6; }
5824 fi
5825
5826
5827 # Extract the first word of "date", so it can be a program name with args.
5828 set dummy date; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_DATE+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   case $DATE in
5835   [\\/]* | ?:[\\/]*)
5836   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5837   ;;
5838   *)
5839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844   for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5855   ;;
5856 esac
5857 fi
5858 DATE=$ac_cv_path_DATE
5859 if test -n "$DATE"; then
5860   { echo "$as_me:$LINENO: result: $DATE" >&5
5861 echo "${ECHO_T}$DATE" >&6; }
5862 else
5863   { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5865 fi
5866
5867
5868 # Extract the first word of "find", so it can be a program name with args.
5869 set dummy find; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_FIND+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   case $FIND in
5876   [\\/]* | ?:[\\/]*)
5877   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5878   ;;
5879   *)
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5896   ;;
5897 esac
5898 fi
5899 FIND=$ac_cv_path_FIND
5900 if test -n "$FIND"; then
5901   { echo "$as_me:$LINENO: result: $FIND" >&5
5902 echo "${ECHO_T}$FIND" >&6; }
5903 else
5904   { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5906 fi
5907
5908
5909 # Extract the first word of "grep", so it can be a program name with args.
5910 set dummy grep; ac_word=$2
5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913 if test "${ac_cv_path_GREP+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   case $GREP in
5917   [\\/]* | ?:[\\/]*)
5918   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5919   ;;
5920   *)
5921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5928     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5937   ;;
5938 esac
5939 fi
5940 GREP=$ac_cv_path_GREP
5941 if test -n "$GREP"; then
5942   { echo "$as_me:$LINENO: result: $GREP" >&5
5943 echo "${ECHO_T}$GREP" >&6; }
5944 else
5945   { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5947 fi
5948
5949
5950 # Extract the first word of "mkdir", so it can be a program name with args.
5951 set dummy mkdir; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_path_MKDIR+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   case $MKDIR in
5958   [\\/]* | ?:[\\/]*)
5959   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5960   ;;
5961   *)
5962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975 IFS=$as_save_IFS
5976
5977   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5978   ;;
5979 esac
5980 fi
5981 MKDIR=$ac_cv_path_MKDIR
5982 if test -n "$MKDIR"; then
5983   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5984 echo "${ECHO_T}$MKDIR" >&6; }
5985 else
5986   { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5988 fi
5989
5990
5991 # Extract the first word of "mv", so it can be a program name with args.
5992 set dummy mv; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_MV+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   case $MV in
5999   [\\/]* | ?:[\\/]*)
6000   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6001   ;;
6002   *)
6003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016 IFS=$as_save_IFS
6017
6018   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6019   ;;
6020 esac
6021 fi
6022 MV=$ac_cv_path_MV
6023 if test -n "$MV"; then
6024   { echo "$as_me:$LINENO: result: $MV" >&5
6025 echo "${ECHO_T}$MV" >&6; }
6026 else
6027   { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6029 fi
6030
6031
6032 if test -n "$ac_tool_prefix"; then
6033   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_RANLIB+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   if test -n "$RANLIB"; then
6041   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6042 else
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_prog_RANLIB="${ac_tool_prefix}ranlib"
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 fi
6059 fi
6060 RANLIB=$ac_cv_prog_RANLIB
6061 if test -n "$RANLIB"; then
6062   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6063 echo "${ECHO_T}$RANLIB" >&6; }
6064 else
6065   { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6067 fi
6068
6069
6070 fi
6071 if test -z "$ac_cv_prog_RANLIB"; then
6072   ac_ct_RANLIB=$RANLIB
6073   # Extract the first word of "ranlib", so it can be a program name with args.
6074 set dummy 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_ac_ct_RANLIB+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   if test -n "$ac_ct_RANLIB"; then
6081   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6101 if test -n "$ac_ct_RANLIB"; then
6102   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6103 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6104 else
6105   { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6107 fi
6108
6109   if test "x$ac_ct_RANLIB" = x; then
6110     RANLIB=":"
6111   else
6112     case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6115 whose name does not start with the host triplet.  If you think this
6116 configuration is useful to you, please write to autoconf@gnu.org." >&5
6117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet.  If you think this
6119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122     RANLIB=$ac_ct_RANLIB
6123   fi
6124 else
6125   RANLIB="$ac_cv_prog_RANLIB"
6126 fi
6127
6128 if test -n "$ac_tool_prefix"; then
6129   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}ar; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_AR+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   if test -n "$AR"; then
6137   ac_cv_prog_AR="$AR" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144   for ac_exec_ext in '' $ac_executable_extensions; do
6145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146     ac_cv_prog_AR="${ac_tool_prefix}ar"
6147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 AR=$ac_cv_prog_AR
6157 if test -n "$AR"; then
6158   { echo "$as_me:$LINENO: result: $AR" >&5
6159 echo "${ECHO_T}$AR" >&6; }
6160 else
6161   { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6164
6165
6166 fi
6167 if test -z "$ac_cv_prog_AR"; then
6168   ac_ct_AR=$AR
6169   # Extract the first word of "ar", so it can be a program name with args.
6170 set dummy 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_ac_ct_AR+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   if test -n "$ac_ct_AR"; then
6177   ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6197 if test -n "$ac_ct_AR"; then
6198   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6199 echo "${ECHO_T}$ac_ct_AR" >&6; }
6200 else
6201   { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6203 fi
6204
6205   if test "x$ac_ct_AR" = x; then
6206     AR="false"
6207   else
6208     case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6211 whose name does not start with the host triplet.  If you think this
6212 configuration is useful to you, please write to autoconf@gnu.org." >&5
6213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6214 whose name does not start with the host triplet.  If you think this
6215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218     AR=$ac_ct_AR
6219   fi
6220 else
6221   AR="$ac_cv_prog_AR"
6222 fi
6223
6224 # Extract the first word of "rm", so it can be a program name with args.
6225 set dummy rm; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_RM+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   case $RM in
6232   [\\/]* | ?:[\\/]*)
6233   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6234   ;;
6235   *)
6236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241   for ac_exec_ext in '' $ac_executable_extensions; do
6242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6252   ;;
6253 esac
6254 fi
6255 RM=$ac_cv_path_RM
6256 if test -n "$RM"; then
6257   { echo "$as_me:$LINENO: result: $RM" >&5
6258 echo "${ECHO_T}$RM" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264
6265 # Extract the first word of "sed", so it can be a program name with args.
6266 set dummy sed; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_SED+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272   case $SED in
6273   [\\/]* | ?:[\\/]*)
6274   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6275   ;;
6276   *)
6277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282   for ac_exec_ext in '' $ac_executable_extensions; do
6283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6293   ;;
6294 esac
6295 fi
6296 SED=$ac_cv_path_SED
6297 if test -n "$SED"; then
6298   { echo "$as_me:$LINENO: result: $SED" >&5
6299 echo "${ECHO_T}$SED" >&6; }
6300 else
6301   { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6303 fi
6304
6305
6306 # Extract the first word of "tar", so it can be a program name with args.
6307 set dummy tar; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_TAR+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   case $TAR in
6314   [\\/]* | ?:[\\/]*)
6315   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6316   ;;
6317   *)
6318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323   for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6334   ;;
6335 esac
6336 fi
6337 TAR=$ac_cv_path_TAR
6338 if test -n "$TAR"; then
6339   { echo "$as_me:$LINENO: result: $TAR" >&5
6340 echo "${ECHO_T}$TAR" >&6; }
6341 else
6342   { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6344 fi
6345
6346
6347 # Extract the first word of "pwd", so it can be a program name with args.
6348 set dummy pwd; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_path_BINPWD+set}" = set; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354   case $BINPWD in
6355   [\\/]* | ?:[\\/]*)
6356   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6357   ;;
6358   *)
6359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6375   ;;
6376 esac
6377 fi
6378 BINPWD=$ac_cv_path_BINPWD
6379 if test -n "$BINPWD"; then
6380   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6381 echo "${ECHO_T}$BINPWD" >&6; }
6382 else
6383   { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6385 fi
6386
6387
6388
6389 # Extract the first word of "Graphviz", so it can be a program name with args.
6390 set dummy Graphviz; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   case $GRAPHVIZ in
6397   [\\/]* | ?:[\\/]*)
6398   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6399   ;;
6400   *)
6401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6417   ;;
6418 esac
6419 fi
6420 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6421 if test -n "$GRAPHVIZ"; then
6422   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6423 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6424 else
6425   { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 fi
6428
6429
6430 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6431
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_GRAPHVIZ 1
6434 _ACEOF
6435
6436     if test "$llvm_cv_os_type" = "MingW" ; then
6437     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6438   fi
6439
6440 cat >>confdefs.h <<_ACEOF
6441 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6442 _ACEOF
6443
6444 fi
6445 # Extract the first word of "dot", so it can be a program name with args.
6446 set dummy dot; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_DOT+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   case $DOT in
6453   [\\/]* | ?:[\\/]*)
6454   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6455   ;;
6456   *)
6457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462   for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6473   ;;
6474 esac
6475 fi
6476 DOT=$ac_cv_path_DOT
6477 if test -n "$DOT"; then
6478   { echo "$as_me:$LINENO: result: $DOT" >&5
6479 echo "${ECHO_T}$DOT" >&6; }
6480 else
6481   { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6483 fi
6484
6485
6486 if test "$DOT" != "echo dot" ; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define HAVE_DOT 1
6490 _ACEOF
6491
6492     if test "$llvm_cv_os_type" = "MingW" ; then
6493     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6494   fi
6495
6496 cat >>confdefs.h <<_ACEOF
6497 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6498 _ACEOF
6499
6500 fi
6501 # Extract the first word of "fdp", so it can be a program name with args.
6502 set dummy fdp; ac_word=$2
6503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505 if test "${ac_cv_path_FDP+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   case $FDP in
6509   [\\/]* | ?:[\\/]*)
6510   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6511   ;;
6512   *)
6513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518   for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6529   ;;
6530 esac
6531 fi
6532 FDP=$ac_cv_path_FDP
6533 if test -n "$FDP"; then
6534   { echo "$as_me:$LINENO: result: $FDP" >&5
6535 echo "${ECHO_T}$FDP" >&6; }
6536 else
6537   { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6539 fi
6540
6541
6542 if test "$FDP" != "echo fdp" ; then
6543
6544 cat >>confdefs.h <<\_ACEOF
6545 #define HAVE_FDP 1
6546 _ACEOF
6547
6548     if test "$llvm_cv_os_type" = "MingW" ; then
6549     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6550   fi
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6554 _ACEOF
6555
6556 fi
6557 # Extract the first word of "neato", so it can be a program name with args.
6558 set dummy neato; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_NEATO+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   case $NEATO in
6565   [\\/]* | ?:[\\/]*)
6566   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6567   ;;
6568   *)
6569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574   for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6585   ;;
6586 esac
6587 fi
6588 NEATO=$ac_cv_path_NEATO
6589 if test -n "$NEATO"; then
6590   { echo "$as_me:$LINENO: result: $NEATO" >&5
6591 echo "${ECHO_T}$NEATO" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6595 fi
6596
6597
6598 if test "$NEATO" != "echo neato" ; then
6599
6600 cat >>confdefs.h <<\_ACEOF
6601 #define HAVE_NEATO 1
6602 _ACEOF
6603
6604     if test "$llvm_cv_os_type" = "MingW" ; then
6605     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6606   fi
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6610 _ACEOF
6611
6612 fi
6613 # Extract the first word of "twopi", so it can be a program name with args.
6614 set dummy twopi; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_TWOPI+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $TWOPI in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6641   ;;
6642 esac
6643 fi
6644 TWOPI=$ac_cv_path_TWOPI
6645 if test -n "$TWOPI"; then
6646   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6647 echo "${ECHO_T}$TWOPI" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6652
6653
6654 if test "$TWOPI" != "echo twopi" ; then
6655
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_TWOPI 1
6658 _ACEOF
6659
6660     if test "$llvm_cv_os_type" = "MingW" ; then
6661     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662   fi
6663
6664 cat >>confdefs.h <<_ACEOF
6665 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6666 _ACEOF
6667
6668 fi
6669 # Extract the first word of "circo", so it can be a program name with args.
6670 set dummy circo; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_CIRCO+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   case $CIRCO in
6677   [\\/]* | ?:[\\/]*)
6678   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6679   ;;
6680   *)
6681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6697   ;;
6698 esac
6699 fi
6700 CIRCO=$ac_cv_path_CIRCO
6701 if test -n "$CIRCO"; then
6702   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6703 echo "${ECHO_T}$CIRCO" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 if test "$CIRCO" != "echo circo" ; then
6711
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_CIRCO 1
6714 _ACEOF
6715
6716     if test "$llvm_cv_os_type" = "MingW" ; then
6717     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718   fi
6719
6720 cat >>confdefs.h <<_ACEOF
6721 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6722 _ACEOF
6723
6724 fi
6725 for ac_prog in gv gsview32
6726 do
6727   # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GV+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $GV in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   ;;
6755 esac
6756 fi
6757 GV=$ac_cv_path_GV
6758 if test -n "$GV"; then
6759   { echo "$as_me:$LINENO: result: $GV" >&5
6760 echo "${ECHO_T}$GV" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766
6767   test -n "$GV" && break
6768 done
6769 test -n "$GV" || GV="echo gv"
6770
6771 if test "$GV" != "echo gv" ; then
6772
6773 cat >>confdefs.h <<\_ACEOF
6774 #define HAVE_GV 1
6775 _ACEOF
6776
6777     if test "$llvm_cv_os_type" = "MingW" ; then
6778     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6779   fi
6780
6781 cat >>confdefs.h <<_ACEOF
6782 #define LLVM_PATH_GV "$GV${EXEEXT}"
6783 _ACEOF
6784
6785 fi
6786 # Extract the first word of "dotty", so it can be a program name with args.
6787 set dummy dotty; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_DOTTY+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   case $DOTTY in
6794   [\\/]* | ?:[\\/]*)
6795   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6796   ;;
6797   *)
6798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801   IFS=$as_save_IFS
6802   test -z "$as_dir" && as_dir=.
6803   for ac_exec_ext in '' $ac_executable_extensions; do
6804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6814   ;;
6815 esac
6816 fi
6817 DOTTY=$ac_cv_path_DOTTY
6818 if test -n "$DOTTY"; then
6819   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6820 echo "${ECHO_T}$DOTTY" >&6; }
6821 else
6822   { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6824 fi
6825
6826
6827 if test "$DOTTY" != "echo dotty" ; then
6828
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_DOTTY 1
6831 _ACEOF
6832
6833     if test "$llvm_cv_os_type" = "MingW" ; then
6834     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835   fi
6836
6837 cat >>confdefs.h <<_ACEOF
6838 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6839 _ACEOF
6840
6841 fi
6842 # Extract the first word of "xdot.py", so it can be a program name with args.
6843 set dummy xdot.py; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   case $XDOT_PY in
6850   [\\/]* | ?:[\\/]*)
6851   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6852   ;;
6853   *)
6854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6870   ;;
6871 esac
6872 fi
6873 XDOT_PY=$ac_cv_path_XDOT_PY
6874 if test -n "$XDOT_PY"; then
6875   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6876 echo "${ECHO_T}$XDOT_PY" >&6; }
6877 else
6878   { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6880 fi
6881
6882
6883 if test "$XDOT_PY" != "echo xdot.py" ; then
6884
6885 cat >>confdefs.h <<\_ACEOF
6886 #define HAVE_XDOT_PY 1
6887 _ACEOF
6888
6889     if test "$llvm_cv_os_type" = "MingW" ; then
6890     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6891   fi
6892
6893 cat >>confdefs.h <<_ACEOF
6894 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6895 _ACEOF
6896
6897 fi
6898
6899
6900 # Extract the first word of "perl", so it can be a program name with args.
6901 set dummy perl; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_PERL+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   case $PERL in
6908   [\\/]* | ?:[\\/]*)
6909   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6910   ;;
6911   *)
6912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6928   ;;
6929 esac
6930 fi
6931 PERL=$ac_cv_path_PERL
6932 if test -n "$PERL"; then
6933   { echo "$as_me:$LINENO: result: $PERL" >&5
6934 echo "${ECHO_T}$PERL" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940
6941 if test "$PERL" != "none"; then
6942   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6943 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6944   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6945     { echo "$as_me:$LINENO: result: yes" >&5
6946 echo "${ECHO_T}yes" >&6; }
6947   else
6948     PERL=none
6949     { echo "$as_me:$LINENO: result: not found" >&5
6950 echo "${ECHO_T}not found" >&6; }
6951   fi
6952 fi
6953
6954
6955 if test x"$PERL" = xnone; then
6956    HAVE_PERL=0
6957
6958    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6959 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6960    { (exit 1); exit 1; }; }
6961 else
6962    HAVE_PERL=1
6963
6964 fi
6965
6966 # Find a good install program.  We prefer a C program (faster),
6967 # so one script is as good as another.  But avoid the broken or
6968 # incompatible versions:
6969 # SysV /etc/install, /usr/sbin/install
6970 # SunOS /usr/etc/install
6971 # IRIX /sbin/install
6972 # AIX /bin/install
6973 # AmigaOS /C/install, which installs bootblocks on floppy discs
6974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6977 # OS/2's system install, which has a completely different semantic
6978 # ./install, which can be erroneously created by make from ./install.sh.
6979 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6980 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6981 if test -z "$INSTALL"; then
6982 if test "${ac_cv_path_install+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988   IFS=$as_save_IFS
6989   test -z "$as_dir" && as_dir=.
6990   # Account for people who put trailing slashes in PATH elements.
6991 case $as_dir/ in
6992   ./ | .// | /cC/* | \
6993   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6994   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6995   /usr/ucb/* ) ;;
6996   *)
6997     # OSF1 and SCO ODT 3.0 have their own names for install.
6998     # Don't use installbsd from OSF since it installs stuff as root
6999     # by default.
7000     for ac_prog in ginstall scoinst install; do
7001       for ac_exec_ext in '' $ac_executable_extensions; do
7002         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7003           if test $ac_prog = install &&
7004             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7005             # AIX install.  It has an incompatible calling convention.
7006             :
7007           elif test $ac_prog = install &&
7008             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7009             # program-specific install script used by HP pwplus--don't use.
7010             :
7011           else
7012             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7013             break 3
7014           fi
7015         fi
7016       done
7017     done
7018     ;;
7019 esac
7020 done
7021 IFS=$as_save_IFS
7022
7023
7024 fi
7025   if test "${ac_cv_path_install+set}" = set; then
7026     INSTALL=$ac_cv_path_install
7027   else
7028     # As a last resort, use the slow shell script.  Don't cache a
7029     # value for INSTALL within a source directory, because that will
7030     # break other packages using the cache if that directory is
7031     # removed, or if the value is a relative name.
7032     INSTALL=$ac_install_sh
7033   fi
7034 fi
7035 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7036 echo "${ECHO_T}$INSTALL" >&6; }
7037
7038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7039 # It thinks the first close brace ends the variable substitution.
7040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7041
7042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7043
7044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7045
7046 case "$INSTALL" in
7047  [\\/$]* | ?:[\\/]* ) ;;
7048  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7049 esac
7050
7051 # Extract the first word of "bzip2", so it can be a program name with args.
7052 set dummy bzip2; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_path_BZIP2+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   case $BZIP2 in
7059   [\\/]* | ?:[\\/]*)
7060   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7061   ;;
7062   *)
7063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066   IFS=$as_save_IFS
7067   test -z "$as_dir" && as_dir=.
7068   for ac_exec_ext in '' $ac_executable_extensions; do
7069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072     break 2
7073   fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078   ;;
7079 esac
7080 fi
7081 BZIP2=$ac_cv_path_BZIP2
7082 if test -n "$BZIP2"; then
7083   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7084 echo "${ECHO_T}$BZIP2" >&6; }
7085 else
7086   { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7088 fi
7089
7090
7091 # Extract the first word of "cat", so it can be a program name with args.
7092 set dummy cat; 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_CAT+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   case $CAT in
7099   [\\/]* | ?:[\\/]*)
7100   ac_cv_path_CAT="$CAT" # 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_CAT="$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 CAT=$ac_cv_path_CAT
7122 if test -n "$CAT"; then
7123   { echo "$as_me:$LINENO: result: $CAT" >&5
7124 echo "${ECHO_T}$CAT" >&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 "doxygen", so it can be a program name with args.
7132 set dummy doxygen; 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_DOXYGEN+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   case $DOXYGEN in
7139   [\\/]* | ?:[\\/]*)
7140   ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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 DOXYGEN=$ac_cv_path_DOXYGEN
7162 if test -n "$DOXYGEN"; then
7163   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7164 echo "${ECHO_T}$DOXYGEN" >&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 "groff", so it can be a program name with args.
7172 set dummy groff; 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_GROFF+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $GROFF in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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 GROFF=$ac_cv_path_GROFF
7202 if test -n "$GROFF"; then
7203   { echo "$as_me:$LINENO: result: $GROFF" >&5
7204 echo "${ECHO_T}$GROFF" >&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 "gzip", so it can be a program name with args.
7212 set dummy gzip; 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_GZIPBIN+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   case $GZIPBIN in
7219   [\\/]* | ?:[\\/]*)
7220   ac_cv_path_GZIPBIN="$GZIPBIN" # 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_GZIPBIN="$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 GZIPBIN=$ac_cv_path_GZIPBIN
7242 if test -n "$GZIPBIN"; then
7243   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7244 echo "${ECHO_T}$GZIPBIN" >&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 "pod2html", so it can be a program name with args.
7252 set dummy pod2html; 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_POD2HTML+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   case $POD2HTML in
7259   [\\/]* | ?:[\\/]*)
7260   ac_cv_path_POD2HTML="$POD2HTML" # 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_POD2HTML="$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 POD2HTML=$ac_cv_path_POD2HTML
7282 if test -n "$POD2HTML"; then
7283   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7284 echo "${ECHO_T}$POD2HTML" >&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 "pod2man", so it can be a program name with args.
7292 set dummy pod2man; 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_POD2MAN+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   case $POD2MAN in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_POD2MAN="$POD2MAN" # 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_POD2MAN="$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 POD2MAN=$ac_cv_path_POD2MAN
7322 if test -n "$POD2MAN"; then
7323   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7324 echo "${ECHO_T}$POD2MAN" >&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 "pdfroff", so it can be a program name with args.
7332 set dummy pdfroff; 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_PDFROFF+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   case $PDFROFF in
7339   [\\/]* | ?:[\\/]*)
7340   ac_cv_path_PDFROFF="$PDFROFF" # 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_PDFROFF="$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 PDFROFF=$ac_cv_path_PDFROFF
7362 if test -n "$PDFROFF"; then
7363   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7364 echo "${ECHO_T}$PDFROFF" >&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 "runtest", so it can be a program name with args.
7372 set dummy runtest; 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_RUNTEST+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   case $RUNTEST in
7379   [\\/]* | ?:[\\/]*)
7380   ac_cv_path_RUNTEST="$RUNTEST" # 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_RUNTEST="$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 RUNTEST=$ac_cv_path_RUNTEST
7402 if test -n "$RUNTEST"; then
7403   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7404 echo "${ECHO_T}$RUNTEST" >&6; }
7405 else
7406   { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7408 fi
7409
7410
7411
7412 no_itcl=true
7413 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7414 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7415
7416 # Check whether --with-tclinclude was given.
7417 if test "${with_tclinclude+set}" = set; then
7418   withval=$with_tclinclude; with_tclinclude=${withval}
7419 else
7420   with_tclinclude=''
7421 fi
7422
7423 if test "${ac_cv_path_tclsh+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426
7427 if test x"${with_tclinclude}" != x ; then
7428   if test -f ${with_tclinclude}/tclsh ; then
7429     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7430   elif test -f ${with_tclinclude}/src/tclsh ; then
7431     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7432   else
7433     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7434 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7435    { (exit 1); exit 1; }; }
7436   fi
7437 fi
7438 fi
7439
7440
7441 if test x"${ac_cv_path_tclsh}" = x ; then
7442   { echo "$as_me:$LINENO: result: none" >&5
7443 echo "${ECHO_T}none" >&6; }
7444   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
7445 do
7446   # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_TCLSH+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $TCLSH in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473   ;;
7474 esac
7475 fi
7476 TCLSH=$ac_cv_path_TCLSH
7477 if test -n "$TCLSH"; then
7478   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7479 echo "${ECHO_T}$TCLSH" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486   test -n "$TCLSH" && break
7487 done
7488
7489   if test x"${TCLSH}" = x ; then
7490     ac_cv_path_tclsh='';
7491   else
7492     ac_cv_path_tclsh="${TCLSH}";
7493   fi
7494 else
7495   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7496 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7497   TCLSH="${ac_cv_path_tclsh}"
7498
7499 fi
7500
7501 # Extract the first word of "zip", so it can be a program name with args.
7502 set dummy zip; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_ZIP+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   case $ZIP in
7509   [\\/]* | ?:[\\/]*)
7510   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7511   ;;
7512   *)
7513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528   ;;
7529 esac
7530 fi
7531 ZIP=$ac_cv_path_ZIP
7532 if test -n "$ZIP"; then
7533   { echo "$as_me:$LINENO: result: $ZIP" >&5
7534 echo "${ECHO_T}$ZIP" >&6; }
7535 else
7536   { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7538 fi
7539
7540
7541 for ac_prog in ocamlc
7542 do
7543   # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_OCAMLC+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   case $OCAMLC in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570   ;;
7571 esac
7572 fi
7573 OCAMLC=$ac_cv_path_OCAMLC
7574 if test -n "$OCAMLC"; then
7575   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7576 echo "${ECHO_T}$OCAMLC" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583   test -n "$OCAMLC" && break
7584 done
7585
7586 for ac_prog in ocamlopt
7587 do
7588   # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   case $OCAMLOPT in
7596   [\\/]* | ?:[\\/]*)
7597   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7598   ;;
7599   *)
7600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605   for ac_exec_ext in '' $ac_executable_extensions; do
7606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615   ;;
7616 esac
7617 fi
7618 OCAMLOPT=$ac_cv_path_OCAMLOPT
7619 if test -n "$OCAMLOPT"; then
7620   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7621 echo "${ECHO_T}$OCAMLOPT" >&6; }
7622 else
7623   { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7625 fi
7626
7627
7628   test -n "$OCAMLOPT" && break
7629 done
7630
7631 for ac_prog in ocamldep
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   case $OCAMLDEP in
7641   [\\/]* | ?:[\\/]*)
7642   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7643   ;;
7644   *)
7645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650   for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660   ;;
7661 esac
7662 fi
7663 OCAMLDEP=$ac_cv_path_OCAMLDEP
7664 if test -n "$OCAMLDEP"; then
7665   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7666 echo "${ECHO_T}$OCAMLDEP" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672
7673   test -n "$OCAMLDEP" && break
7674 done
7675
7676 for ac_prog in ocamldoc
7677 do
7678   # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   case $OCAMLDOC in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705   ;;
7706 esac
7707 fi
7708 OCAMLDOC=$ac_cv_path_OCAMLDOC
7709 if test -n "$OCAMLDOC"; then
7710   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7711 echo "${ECHO_T}$OCAMLDOC" >&6; }
7712 else
7713   { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7715 fi
7716
7717
7718   test -n "$OCAMLDOC" && break
7719 done
7720
7721 for ac_prog in gas as
7722 do
7723   # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727 if test "${ac_cv_path_GAS+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   case $GAS in
7731   [\\/]* | ?:[\\/]*)
7732   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7733   ;;
7734   *)
7735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740   for ac_exec_ext in '' $ac_executable_extensions; do
7741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7742     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750   ;;
7751 esac
7752 fi
7753 GAS=$ac_cv_path_GAS
7754 if test -n "$GAS"; then
7755   { echo "$as_me:$LINENO: result: $GAS" >&5
7756 echo "${ECHO_T}$GAS" >&6; }
7757 else
7758   { echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6; }
7760 fi
7761
7762
7763   test -n "$GAS" && break
7764 done
7765
7766
7767 { echo "$as_me:$LINENO: checking for linker version" >&5
7768 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7769 if test "${llvm_cv_link_version+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772
7773    version_string="$(ld -v 2>&1 | head -1)"
7774
7775    # Check for ld64.
7776    if (echo "$version_string" | grep -q "ld64"); then
7777      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7778    else
7779      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7780    fi
7781
7782 fi
7783 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7784 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7785
7786 cat >>confdefs.h <<_ACEOF
7787 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7788 _ACEOF
7789
7790
7791
7792 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7793 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7794 if test "${llvm_cv_link_use_r+set}" = set; then
7795   echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797    ac_ext=c
7798 ac_cpp='$CPP $CPPFLAGS'
7799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802
7803   oldcflags="$CFLAGS"
7804   CFLAGS="$CFLAGS -Wl,-R."
7805   cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811
7812 int
7813 main ()
7814 {
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7822 case "(($ac_try" in
7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824   *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827   (eval "$ac_link") 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } &&
7834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7835   { (case "(($ac_try" in
7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837   *) ac_try_echo=$ac_try;;
7838 esac
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840   (eval "$ac_try") 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; } &&
7844          { ac_try='test -s conftest$ac_exeext'
7845   { (case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_try") 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; }; then
7854   llvm_cv_link_use_r=yes
7855 else
7856   echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859         llvm_cv_link_use_r=no
7860 fi
7861
7862 rm -f core conftest.err conftest.$ac_objext \
7863       conftest$ac_exeext conftest.$ac_ext
7864   CFLAGS="$oldcflags"
7865   ac_ext=c
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870
7871
7872 fi
7873 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7874 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7875 if test "$llvm_cv_link_use_r" = yes ; then
7876
7877 cat >>confdefs.h <<\_ACEOF
7878 #define HAVE_LINK_R 1
7879 _ACEOF
7880
7881   fi
7882
7883
7884 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7885 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7886 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889    ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895   oldcflags="$CFLAGS"
7896   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7897   cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903
7904 int
7905 main ()
7906 {
7907
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7914 case "(($ac_try" in
7915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916   *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919   (eval "$ac_link") 2>conftest.er1
7920   ac_status=$?
7921   grep -v '^ *+' conftest.er1 >conftest.err
7922   rm -f conftest.er1
7923   cat conftest.err >&5
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } &&
7926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7927   { (case "(($ac_try" in
7928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929   *) ac_try_echo=$ac_try;;
7930 esac
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932   (eval "$ac_try") 2>&5
7933   ac_status=$?
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); }; } &&
7936          { ac_try='test -s conftest$ac_exeext'
7937   { (case "(($ac_try" in
7938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939   *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942   (eval "$ac_try") 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   llvm_cv_link_use_export_dynamic=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951         llvm_cv_link_use_export_dynamic=no
7952 fi
7953
7954 rm -f core conftest.err conftest.$ac_objext \
7955       conftest$ac_exeext conftest.$ac_ext
7956   CFLAGS="$oldcflags"
7957   ac_ext=c
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963
7964 fi
7965 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7966 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7967 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7968
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_LINK_EXPORT_DYNAMIC 1
7971 _ACEOF
7972
7973   fi
7974
7975
7976 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7977 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7978 if test "${llvm_cv_link_use_version_script+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981    ac_ext=c
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986
7987   oldcflags="$CFLAGS"
7988
7989   # The following code is from the autoconf manual,
7990   # "11.13: Limitations of Usual Tools".
7991   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7992   # Use mktemp if possible; otherwise fall back on mkdir,
7993   # with $RANDOM to make collisions less likely.
7994   : ${TMPDIR=/tmp}
7995   {
7996     tmp=`
7997       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7998     ` &&
7999     test -n "$tmp" && test -d "$tmp"
8000   } || {
8001     tmp=$TMPDIR/foo$$-$RANDOM
8002     (umask 077 && mkdir "$tmp")
8003   } || exit $?
8004
8005   echo "{" > "$tmp/export.map"
8006   echo "  global: main;" >> "$tmp/export.map"
8007   echo "  local: *;" >> "$tmp/export.map"
8008   echo "};" >> "$tmp/export.map"
8009
8010   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8011   cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h.  */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h.  */
8017
8018 int
8019 main ()
8020 {
8021
8022   ;
8023   return 0;
8024 }
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (ac_try="$ac_link"
8028 case "(($ac_try" in
8029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030   *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033   (eval "$ac_link") 2>conftest.er1
8034   ac_status=$?
8035   grep -v '^ *+' conftest.er1 >conftest.err
8036   rm -f conftest.er1
8037   cat conftest.err >&5
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } &&
8040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041   { (case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046   (eval "$ac_try") 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; } &&
8050          { ac_try='test -s conftest$ac_exeext'
8051   { (case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_try") 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   llvm_cv_link_use_version_script=yes
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065         llvm_cv_link_use_version_script=no
8066 fi
8067
8068 rm -f core conftest.err conftest.$ac_objext \
8069       conftest$ac_exeext conftest.$ac_ext
8070   rm "$tmp/export.map"
8071   rmdir "$tmp"
8072   CFLAGS="$oldcflags"
8073   ac_ext=c
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078
8079
8080 fi
8081 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8082 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8083 if test "$llvm_cv_link_use_version_script" = yes ; then
8084   HAVE_LINK_VERSION_SCRIPT=1
8085
8086   fi
8087
8088
8089
8090
8091 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8092 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8093 if test "${ac_cv_c_const+set}" = set; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096   cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102
8103 int
8104 main ()
8105 {
8106 /* FIXME: Include the comments suggested by Paul. */
8107 #ifndef __cplusplus
8108   /* Ultrix mips cc rejects this.  */
8109   typedef int charset[2];
8110   const charset x;
8111   /* SunOS 4.1.1 cc rejects this.  */
8112   char const *const *ccp;
8113   char **p;
8114   /* NEC SVR4.0.2 mips cc rejects this.  */
8115   struct point {int x, y;};
8116   static struct point const zero = {0,0};
8117   /* AIX XL C 1.02.0.0 rejects this.
8118      It does not let you subtract one const X* pointer from another in
8119      an arm of an if-expression whose if-part is not a constant
8120      expression */
8121   const char *g = "string";
8122   ccp = &g + (g ? g-g : 0);
8123   /* HPUX 7.0 cc rejects these. */
8124   ++ccp;
8125   p = (char**) ccp;
8126   ccp = (char const *const *) p;
8127   { /* SCO 3.2v4 cc rejects this.  */
8128     char *t;
8129     char const *s = 0 ? (char *) 0 : (char const *) 0;
8130
8131     *t++ = 0;
8132     if (s) return 0;
8133   }
8134   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8135     int x[] = {25, 17};
8136     const int *foo = &x[0];
8137     ++foo;
8138   }
8139   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8140     typedef const int *iptr;
8141     iptr p = 0;
8142     ++p;
8143   }
8144   { /* AIX XL C 1.02.0.0 rejects this saying
8145        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8146     struct s { int j; const int *ap[3]; };
8147     struct s *b; b->j = 5;
8148   }
8149   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8150     const int foo = 10;
8151     if (!foo) return 0;
8152   }
8153   return !x[0] && !zero.x;
8154 #endif
8155
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (ac_try="$ac_compile"
8162 case "(($ac_try" in
8163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164   *) ac_try_echo=$ac_try;;
8165 esac
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167   (eval "$ac_compile") 2>conftest.er1
8168   ac_status=$?
8169   grep -v '^ *+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } &&
8174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; } &&
8184          { ac_try='test -s conftest.$ac_objext'
8185   { (case "(($ac_try" in
8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187   *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190   (eval "$ac_try") 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   ac_cv_c_const=yes
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199         ac_cv_c_const=no
8200 fi
8201
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 fi
8204 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8205 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8206 if test $ac_cv_c_const = no; then
8207
8208 cat >>confdefs.h <<\_ACEOF
8209 #define const
8210 _ACEOF
8211
8212 fi
8213
8214
8215
8216
8217
8218
8219 ac_header_dirent=no
8220 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8221   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8222 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8223 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233 #include <sys/types.h>
8234 #include <$ac_hdr>
8235
8236 int
8237 main ()
8238 {
8239 if ((DIR *) 0)
8240 return 0;
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252   (eval "$ac_compile") 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } &&
8259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260   { (case "(($ac_try" in
8261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262   *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265   (eval "$ac_try") 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; } &&
8269          { ac_try='test -s conftest.$ac_objext'
8270   { (case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_try") 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   eval "$as_ac_Header=yes"
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         eval "$as_ac_Header=no"
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 ac_res=`eval echo '${'$as_ac_Header'}'`
8290                { echo "$as_me:$LINENO: result: $ac_res" >&5
8291 echo "${ECHO_T}$ac_res" >&6; }
8292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8293   cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8295 _ACEOF
8296
8297 ac_header_dirent=$ac_hdr; break
8298 fi
8299
8300 done
8301 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8302 if test $ac_header_dirent = dirent.h; then
8303   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8304 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8305 if test "${ac_cv_search_opendir+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   ac_func_search_save_LIBS=$LIBS
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h.  */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h.  */
8315
8316 /* Override any GCC internal prototype to avoid an error.
8317    Use char because int might match the return type of a GCC
8318    builtin and then its argument prototype would still apply.  */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 char opendir ();
8323 int
8324 main ()
8325 {
8326 return opendir ();
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 for ac_lib in '' dir; do
8332   if test -z "$ac_lib"; then
8333     ac_res="none required"
8334   else
8335     ac_res=-l$ac_lib
8336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8337   fi
8338   rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (ac_try="$ac_link"
8340 case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_link") 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353   { (case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_try") 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; } &&
8362          { ac_try='test -s conftest$ac_exeext'
8363   { (case "(($ac_try" in
8364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365   *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   ac_cv_search_opendir=$ac_res
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377
8378 fi
8379
8380 rm -f core conftest.err conftest.$ac_objext \
8381       conftest$ac_exeext
8382   if test "${ac_cv_search_opendir+set}" = set; then
8383   break
8384 fi
8385 done
8386 if test "${ac_cv_search_opendir+set}" = set; then
8387   :
8388 else
8389   ac_cv_search_opendir=no
8390 fi
8391 rm conftest.$ac_ext
8392 LIBS=$ac_func_search_save_LIBS
8393 fi
8394 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8395 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8396 ac_res=$ac_cv_search_opendir
8397 if test "$ac_res" != no; then
8398   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8399
8400 fi
8401
8402 else
8403   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8404 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8405 if test "${ac_cv_search_opendir+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415
8416 /* Override any GCC internal prototype to avoid an error.
8417    Use char because int might match the return type of a GCC
8418    builtin and then its argument prototype would still apply.  */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char opendir ();
8423 int
8424 main ()
8425 {
8426 return opendir ();
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 for ac_lib in '' x; do
8432   if test -z "$ac_lib"; then
8433     ac_res="none required"
8434   else
8435     ac_res=-l$ac_lib
8436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8437   fi
8438   rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442   *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445   (eval "$ac_link") 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453   { (case "(($ac_try" in
8454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455   *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458   (eval "$ac_try") 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; } &&
8462          { ac_try='test -s conftest$ac_exeext'
8463   { (case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_try") 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; }; then
8472   ac_cv_search_opendir=$ac_res
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477
8478 fi
8479
8480 rm -f core conftest.err conftest.$ac_objext \
8481       conftest$ac_exeext
8482   if test "${ac_cv_search_opendir+set}" = set; then
8483   break
8484 fi
8485 done
8486 if test "${ac_cv_search_opendir+set}" = set; then
8487   :
8488 else
8489   ac_cv_search_opendir=no
8490 fi
8491 rm conftest.$ac_ext
8492 LIBS=$ac_func_search_save_LIBS
8493 fi
8494 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8495 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8496 ac_res=$ac_cv_search_opendir
8497 if test "$ac_res" != no; then
8498   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8499
8500 fi
8501
8502 fi
8503
8504
8505 for ac_header in dlfcn.h
8506 do
8507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8509   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512   echo $ECHO_N "(cached) $ECHO_C" >&6
8513 fi
8514 ac_res=`eval echo '${'$as_ac_Header'}'`
8515                { echo "$as_me:$LINENO: result: $ac_res" >&5
8516 echo "${ECHO_T}$ac_res" >&6; }
8517 else
8518   # Is the header compilable?
8519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h.  */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h.  */
8527 $ac_includes_default
8528 #include <$ac_header>
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (ac_try="$ac_compile"
8532 case "(($ac_try" in
8533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534   *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537   (eval "$ac_compile") 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545   { (case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550   (eval "$ac_try") 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; } &&
8554          { ac_try='test -s conftest.$ac_objext'
8555   { (case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_try") 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564   ac_header_compiler=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569         ac_header_compiler=no
8570 fi
8571
8572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574 echo "${ECHO_T}$ac_header_compiler" >&6; }
8575
8576 # Is the header present?
8577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 #include <$ac_header>
8586 _ACEOF
8587 if { (ac_try="$ac_cpp conftest.$ac_ext"
8588 case "(($ac_try" in
8589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590   *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } >/dev/null; then
8600   if test -s conftest.err; then
8601     ac_cpp_err=$ac_c_preproc_warn_flag
8602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8603   else
8604     ac_cpp_err=
8605   fi
8606 else
8607   ac_cpp_err=yes
8608 fi
8609 if test -z "$ac_cpp_err"; then
8610   ac_header_preproc=yes
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615   ac_header_preproc=no
8616 fi
8617
8618 rm -f conftest.err conftest.$ac_ext
8619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8620 echo "${ECHO_T}$ac_header_preproc" >&6; }
8621
8622 # So?  What about this header?
8623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8624   yes:no: )
8625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8629     ac_header_preproc=yes
8630     ;;
8631   no:yes:* )
8632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8644     ( cat <<\_ASBOX
8645 ## ----------------------------------- ##
8646 ## Report this to llvmbugs@cs.uiuc.edu ##
8647 ## ----------------------------------- ##
8648 _ASBOX
8649      ) | sed "s/^/$as_me: WARNING:     /" >&2
8650     ;;
8651 esac
8652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8655   echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657   eval "$as_ac_Header=\$ac_header_preproc"
8658 fi
8659 ac_res=`eval echo '${'$as_ac_Header'}'`
8660                { echo "$as_me:$LINENO: result: $ac_res" >&5
8661 echo "${ECHO_T}$ac_res" >&6; }
8662
8663 fi
8664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8665   cat >>confdefs.h <<_ACEOF
8666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8667 _ACEOF
8668
8669 fi
8670
8671 done
8672
8673 # Check whether --enable-ltdl-install was given.
8674 if test "${enable_ltdl_install+set}" = set; then
8675   enableval=$enable_ltdl_install;
8676 fi
8677
8678
8679
8680
8681 if test x"${enable_ltdl_install-no}" != xno; then
8682   INSTALL_LTDL_TRUE=
8683   INSTALL_LTDL_FALSE='#'
8684 else
8685   INSTALL_LTDL_TRUE='#'
8686   INSTALL_LTDL_FALSE=
8687 fi
8688
8689
8690
8691 if test x"${enable_ltdl_convenience-no}" != xno; then
8692   CONVENIENCE_LTDL_TRUE=
8693   CONVENIENCE_LTDL_FALSE='#'
8694 else
8695   CONVENIENCE_LTDL_TRUE='#'
8696   CONVENIENCE_LTDL_FALSE=
8697 fi
8698
8699
8700 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8701 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8702 library_names_spec=
8703 libname_spec='lib$name'
8704 soname_spec=
8705 shrext_cmds=".so"
8706 postinstall_cmds=
8707 postuninstall_cmds=
8708 finish_cmds=
8709 finish_eval=
8710 shlibpath_var=
8711 shlibpath_overrides_runpath=unknown
8712 version_type=none
8713 dynamic_linker="$host_os ld.so"
8714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8715 if test "$GCC" = yes; then
8716   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8717   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8718     # if the path contains ";" then we assume it to be the separator
8719     # otherwise default to the standard path separator (i.e. ":") - it is
8720     # assumed that no part of a normal pathname contains ";" but that should
8721     # okay in the real world where ";" in dirpaths is itself problematic.
8722     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8723   else
8724     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8725   fi
8726 else
8727   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8728 fi
8729 need_lib_prefix=unknown
8730 hardcode_into_libs=no
8731
8732 # when you set need_version to no, make sure it does not cause -set_version
8733 # flags to be left without arguments
8734 need_version=unknown
8735
8736 case $host_os in
8737 aix3*)
8738   version_type=linux
8739   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8740   shlibpath_var=LIBPATH
8741
8742   # AIX 3 has no versioning support, so we append a major version to the name.
8743   soname_spec='${libname}${release}${shared_ext}$major'
8744   ;;
8745
8746 aix4* | aix5*)
8747   version_type=linux
8748   need_lib_prefix=no
8749   need_version=no
8750   hardcode_into_libs=yes
8751   if test "$host_cpu" = ia64; then
8752     # AIX 5 supports IA64
8753     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8754     shlibpath_var=LD_LIBRARY_PATH
8755   else
8756     # With GCC up to 2.95.x, collect2 would create an import file
8757     # for dependence libraries.  The import file would start with
8758     # the line `#! .'.  This would cause the generated library to
8759     # depend on `.', always an invalid library.  This was fixed in
8760     # development snapshots of GCC prior to 3.0.
8761     case $host_os in
8762       aix4 | aix4.[01] | aix4.[01].*)
8763       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8764            echo ' yes '
8765            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8766         :
8767       else
8768         can_build_shared=no
8769       fi
8770       ;;
8771     esac
8772     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8773     # soname into executable. Probably we can add versioning support to
8774     # collect2, so additional links can be useful in future.
8775     if test "$aix_use_runtimelinking" = yes; then
8776       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8777       # instead of lib<name>.a to let people know that these are not
8778       # typical AIX shared libraries.
8779       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780     else
8781       # We preserve .a as extension for shared libraries through AIX4.2
8782       # and later when we are not doing run time linking.
8783       library_names_spec='${libname}${release}.a $libname.a'
8784       soname_spec='${libname}${release}${shared_ext}$major'
8785     fi
8786     shlibpath_var=LIBPATH
8787   fi
8788   ;;
8789
8790 amigaos*)
8791   library_names_spec='$libname.ixlibrary $libname.a'
8792   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8793   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'
8794   ;;
8795
8796 beos*)
8797   library_names_spec='${libname}${shared_ext}'
8798   dynamic_linker="$host_os ld.so"
8799   shlibpath_var=LIBRARY_PATH
8800   ;;
8801
8802 bsdi[45]*)
8803   version_type=linux
8804   need_version=no
8805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806   soname_spec='${libname}${release}${shared_ext}$major'
8807   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8808   shlibpath_var=LD_LIBRARY_PATH
8809   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8810   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8811   # the default ld.so.conf also contains /usr/contrib/lib and
8812   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8813   # libtool to hard-code these into programs
8814   ;;
8815
8816 cygwin* | mingw* | pw32*)
8817   version_type=windows
8818   shrext_cmds=".dll"
8819   need_version=no
8820   need_lib_prefix=no
8821
8822   case $GCC,$host_os in
8823   yes,cygwin* | yes,mingw* | yes,pw32*)
8824     library_names_spec='$libname.dll.a'
8825     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8826     postinstall_cmds='base_file=`basename \${file}`~
8827       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8828       dldir=$destdir/`dirname \$dlpath`~
8829       test -d \$dldir || mkdir -p \$dldir~
8830       $install_prog $dir/$dlname \$dldir/$dlname~
8831       chmod a+x \$dldir/$dlname'
8832     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8833       dlpath=$dir/\$dldll~
8834        $rm \$dlpath'
8835     shlibpath_overrides_runpath=yes
8836
8837     case $host_os in
8838     cygwin*)
8839       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8840       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8842       ;;
8843     mingw*)
8844       # MinGW DLLs use traditional 'lib' prefix
8845       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8847       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8848         # It is most probably a Windows format PATH printed by
8849         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8850         # path with ; separators, and with drive letters. We can handle the
8851         # drive letters (cygwin fileutils understands them), so leave them,
8852         # especially as we might pass files found there to a mingw objdump,
8853         # which wouldn't understand a cygwinified path. Ahh.
8854         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8855       else
8856         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8857       fi
8858       ;;
8859     pw32*)
8860       # pw32 DLLs use 'pw' prefix rather than 'lib'
8861       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862       ;;
8863     esac
8864     ;;
8865
8866   *)
8867     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8868     ;;
8869   esac
8870   dynamic_linker='Win32 ld.exe'
8871   # FIXME: first we should search . and the directory the executable is in
8872   shlibpath_var=PATH
8873   ;;
8874
8875 darwin* | rhapsody*)
8876   dynamic_linker="$host_os dyld"
8877   version_type=darwin
8878   need_lib_prefix=no
8879   need_version=no
8880   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8881   soname_spec='${libname}${release}${major}$shared_ext'
8882   shlibpath_overrides_runpath=yes
8883   shlibpath_var=DYLD_LIBRARY_PATH
8884   shrext_cmds='.dylib'
8885   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8886   if test "$GCC" = yes; then
8887     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"`
8888   else
8889     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8890   fi
8891   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8892   ;;
8893
8894 dgux*)
8895   version_type=linux
8896   need_lib_prefix=no
8897   need_version=no
8898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8899   soname_spec='${libname}${release}${shared_ext}$major'
8900   shlibpath_var=LD_LIBRARY_PATH
8901   ;;
8902
8903 freebsd1.*)
8904   dynamic_linker=no
8905   ;;
8906
8907 kfreebsd*-gnu)
8908   version_type=linux
8909   need_lib_prefix=no
8910   need_version=no
8911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912   soname_spec='${libname}${release}${shared_ext}$major'
8913   shlibpath_var=LD_LIBRARY_PATH
8914   shlibpath_overrides_runpath=no
8915   hardcode_into_libs=yes
8916   dynamic_linker='GNU ld.so'
8917   ;;
8918
8919 freebsd* | dragonfly*)
8920   # DragonFly does not have aout.  When/if they implement a new
8921   # versioning mechanism, adjust this.
8922   if test -x /usr/bin/objformat; then
8923     objformat=`/usr/bin/objformat`
8924   else
8925     case $host_os in
8926     freebsd[123].*) objformat=aout ;;
8927     *) objformat=elf ;;
8928     esac
8929   fi
8930   version_type=freebsd-$objformat
8931   case $version_type in
8932     freebsd-elf*)
8933       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8934       need_version=no
8935       need_lib_prefix=no
8936       ;;
8937     freebsd-*)
8938       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8939       need_version=yes
8940       ;;
8941   esac
8942   shlibpath_var=LD_LIBRARY_PATH
8943   case $host_os in
8944   freebsd2.*)
8945     shlibpath_overrides_runpath=yes
8946     ;;
8947   freebsd3.[01]* | freebsdelf3.[01]*)
8948     shlibpath_overrides_runpath=yes
8949     hardcode_into_libs=yes
8950     ;;
8951   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8952   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8953     shlibpath_overrides_runpath=no
8954     hardcode_into_libs=yes
8955     ;;
8956   freebsd*) # from 4.6 on
8957     shlibpath_overrides_runpath=yes
8958     hardcode_into_libs=yes
8959     ;;
8960   esac
8961   ;;
8962
8963 gnu*)
8964   version_type=linux
8965   need_lib_prefix=no
8966   need_version=no
8967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8968   soname_spec='${libname}${release}${shared_ext}$major'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   hardcode_into_libs=yes
8971   ;;
8972
8973 hpux9* | hpux10* | hpux11*)
8974   # Give a soname corresponding to the major version so that dld.sl refuses to
8975   # link against other versions.
8976   version_type=sunos
8977   need_lib_prefix=no
8978   need_version=no
8979   case $host_cpu in
8980   ia64*)
8981     shrext_cmds='.so'
8982     hardcode_into_libs=yes
8983     dynamic_linker="$host_os dld.so"
8984     shlibpath_var=LD_LIBRARY_PATH
8985     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987     soname_spec='${libname}${release}${shared_ext}$major'
8988     if test "X$HPUX_IA64_MODE" = X32; then
8989       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8990     else
8991       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8992     fi
8993     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8994     ;;
8995    hppa*64*)
8996      shrext_cmds='.sl'
8997      hardcode_into_libs=yes
8998      dynamic_linker="$host_os dld.sl"
8999      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9000      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9001      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002      soname_spec='${libname}${release}${shared_ext}$major'
9003      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9004      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005      ;;
9006    *)
9007     shrext_cmds='.sl'
9008     dynamic_linker="$host_os dld.sl"
9009     shlibpath_var=SHLIB_PATH
9010     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012     soname_spec='${libname}${release}${shared_ext}$major'
9013     ;;
9014   esac
9015   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9016   postinstall_cmds='chmod 555 $lib'
9017   ;;
9018
9019 interix3*)
9020   version_type=linux
9021   need_lib_prefix=no
9022   need_version=no
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9024   soname_spec='${libname}${release}${shared_ext}$major'
9025   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9026   shlibpath_var=LD_LIBRARY_PATH
9027   shlibpath_overrides_runpath=no
9028   hardcode_into_libs=yes
9029   ;;
9030
9031 irix5* | irix6* | nonstopux*)
9032   case $host_os in
9033     nonstopux*) version_type=nonstopux ;;
9034     *)
9035         if test "$lt_cv_prog_gnu_ld" = yes; then
9036                 version_type=linux
9037         else
9038                 version_type=irix
9039         fi ;;
9040   esac
9041   need_lib_prefix=no
9042   need_version=no
9043   soname_spec='${libname}${release}${shared_ext}$major'
9044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9045   case $host_os in
9046   irix5* | nonstopux*)
9047     libsuff= shlibsuff=
9048     ;;
9049   *)
9050     case $LD in # libtool.m4 will add one of these switches to LD
9051     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9052       libsuff= shlibsuff= libmagic=32-bit;;
9053     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9054       libsuff=32 shlibsuff=N32 libmagic=N32;;
9055     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9056       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9057     *) libsuff= shlibsuff= libmagic=never-match;;
9058     esac
9059     ;;
9060   esac
9061   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9062   shlibpath_overrides_runpath=no
9063   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9064   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9065   hardcode_into_libs=yes
9066   ;;
9067
9068 # No shared lib support for Linux oldld, aout, or coff.
9069 linux*oldld* | linux*aout* | linux*coff*)
9070   dynamic_linker=no
9071   ;;
9072
9073 # This must be Linux ELF.
9074 linux*)
9075   version_type=linux
9076   need_lib_prefix=no
9077   need_version=no
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079   soname_spec='${libname}${release}${shared_ext}$major'
9080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9081   shlibpath_var=LD_LIBRARY_PATH
9082   shlibpath_overrides_runpath=no
9083   # This implies no fast_install, which is unacceptable.
9084   # Some rework will be needed to allow for fast_install
9085   # before this can be enabled.
9086   hardcode_into_libs=yes
9087
9088   # Append ld.so.conf contents to the search path
9089   if test -f /etc/ld.so.conf; then
9090     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' ' '`
9091     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9092   fi
9093
9094   # We used to test for /lib/ld.so.1 and disable shared libraries on
9095   # powerpc, because MkLinux only supported shared libraries with the
9096   # GNU dynamic linker.  Since this was broken with cross compilers,
9097   # most powerpc-linux boxes support dynamic linking these days and
9098   # people can always --disable-shared, the test was removed, and we
9099   # assume the GNU/Linux dynamic linker is in use.
9100   dynamic_linker='GNU/Linux ld.so'
9101   ;;
9102
9103 knetbsd*-gnu)
9104   version_type=linux
9105   need_lib_prefix=no
9106   need_version=no
9107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   shlibpath_var=LD_LIBRARY_PATH
9110   shlibpath_overrides_runpath=no
9111   hardcode_into_libs=yes
9112   dynamic_linker='GNU ld.so'
9113   ;;
9114
9115 netbsd*)
9116   version_type=sunos
9117   need_lib_prefix=no
9118   need_version=no
9119   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9121     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9122     dynamic_linker='NetBSD (a.out) ld.so'
9123   else
9124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9125     soname_spec='${libname}${release}${shared_ext}$major'
9126     dynamic_linker='NetBSD ld.elf_so'
9127   fi
9128   shlibpath_var=LD_LIBRARY_PATH
9129   shlibpath_overrides_runpath=yes
9130   hardcode_into_libs=yes
9131   ;;
9132
9133 newsos6)
9134   version_type=linux
9135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136   shlibpath_var=LD_LIBRARY_PATH
9137   shlibpath_overrides_runpath=yes
9138   ;;
9139
9140 nto-qnx*)
9141   version_type=linux
9142   need_lib_prefix=no
9143   need_version=no
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145   soname_spec='${libname}${release}${shared_ext}$major'
9146   shlibpath_var=LD_LIBRARY_PATH
9147   shlibpath_overrides_runpath=yes
9148   ;;
9149
9150 openbsd*)
9151   version_type=sunos
9152   sys_lib_dlsearch_path_spec="/usr/lib"
9153   need_lib_prefix=no
9154   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9155   case $host_os in
9156     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9157     *)                         need_version=no  ;;
9158   esac
9159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9161   shlibpath_var=LD_LIBRARY_PATH
9162   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9163     case $host_os in
9164       openbsd2.[89] | openbsd2.[89].*)
9165         shlibpath_overrides_runpath=no
9166         ;;
9167       *)
9168         shlibpath_overrides_runpath=yes
9169         ;;
9170       esac
9171   else
9172     shlibpath_overrides_runpath=yes
9173   fi
9174   ;;
9175
9176 os2*)
9177   libname_spec='$name'
9178   shrext_cmds=".dll"
9179   need_lib_prefix=no
9180   library_names_spec='$libname${shared_ext} $libname.a'
9181   dynamic_linker='OS/2 ld.exe'
9182   shlibpath_var=LIBPATH
9183   ;;
9184
9185 osf3* | osf4* | osf5*)
9186   version_type=osf
9187   need_lib_prefix=no
9188   need_version=no
9189   soname_spec='${libname}${release}${shared_ext}$major'
9190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191   shlibpath_var=LD_LIBRARY_PATH
9192   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9193   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9194   ;;
9195
9196 solaris*)
9197   version_type=linux
9198   need_lib_prefix=no
9199   need_version=no
9200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201   soname_spec='${libname}${release}${shared_ext}$major'
9202   shlibpath_var=LD_LIBRARY_PATH
9203   shlibpath_overrides_runpath=yes
9204   hardcode_into_libs=yes
9205   # ldd complains unless libraries are executable
9206   postinstall_cmds='chmod +x $lib'
9207   ;;
9208
9209 sunos4*)
9210   version_type=sunos
9211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9212   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9213   shlibpath_var=LD_LIBRARY_PATH
9214   shlibpath_overrides_runpath=yes
9215   if test "$with_gnu_ld" = yes; then
9216     need_lib_prefix=no
9217   fi
9218   need_version=yes
9219   ;;
9220
9221 sysv4 | sysv4.3*)
9222   version_type=linux
9223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224   soname_spec='${libname}${release}${shared_ext}$major'
9225   shlibpath_var=LD_LIBRARY_PATH
9226   case $host_vendor in
9227     sni)
9228       shlibpath_overrides_runpath=no
9229       need_lib_prefix=no
9230       export_dynamic_flag_spec='${wl}-Blargedynsym'
9231       runpath_var=LD_RUN_PATH
9232       ;;
9233     siemens)
9234       need_lib_prefix=no
9235       ;;
9236     motorola)
9237       need_lib_prefix=no
9238       need_version=no
9239       shlibpath_overrides_runpath=no
9240       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9241       ;;
9242   esac
9243   ;;
9244
9245 sysv4*MP*)
9246   if test -d /usr/nec ;then
9247     version_type=linux
9248     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9249     soname_spec='$libname${shared_ext}.$major'
9250     shlibpath_var=LD_LIBRARY_PATH
9251   fi
9252   ;;
9253
9254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9255   version_type=freebsd-elf
9256   need_lib_prefix=no
9257   need_version=no
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   hardcode_into_libs=yes
9262   if test "$with_gnu_ld" = yes; then
9263     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9264     shlibpath_overrides_runpath=no
9265   else
9266     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9267     shlibpath_overrides_runpath=yes
9268     case $host_os in
9269       sco3.2v5*)
9270         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9271         ;;
9272     esac
9273   fi
9274   sys_lib_dlsearch_path_spec='/usr/lib'
9275   ;;
9276
9277 uts4*)
9278   version_type=linux
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280   soname_spec='${libname}${release}${shared_ext}$major'
9281   shlibpath_var=LD_LIBRARY_PATH
9282   ;;
9283
9284 *)
9285   dynamic_linker=no
9286   ;;
9287 esac
9288 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9289 echo "${ECHO_T}$dynamic_linker" >&6; }
9290 test "$dynamic_linker" = no && can_build_shared=no
9291
9292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9293 if test "$GCC" = yes; then
9294   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9295 fi
9296
9297
9298 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9299 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9300 if test "${libltdl_cv_shlibext+set}" = set; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303
9304 module=yes
9305 eval libltdl_cv_shlibext=$shrext_cmds
9306
9307 fi
9308 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9309 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9310 if test -n "$libltdl_cv_shlibext"; then
9311
9312 cat >>confdefs.h <<_ACEOF
9313 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9314 _ACEOF
9315
9316 fi
9317
9318
9319 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9320 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9321 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   libltdl_cv_shlibpath_var="$shlibpath_var"
9325 fi
9326 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9327 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9328 if test -n "$libltdl_cv_shlibpath_var"; then
9329
9330 cat >>confdefs.h <<_ACEOF
9331 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9332 _ACEOF
9333
9334 fi
9335
9336
9337 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9338 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9339 if test "${libltdl_cv_sys_search_path+set}" = set; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9343 fi
9344 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9345 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9346 if test -n "$libltdl_cv_sys_search_path"; then
9347   sys_search_path=
9348   for dir in $libltdl_cv_sys_search_path; do
9349     if test -z "$sys_search_path"; then
9350       sys_search_path="$dir"
9351     else
9352       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9353     fi
9354   done
9355
9356 cat >>confdefs.h <<_ACEOF
9357 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9358 _ACEOF
9359
9360 fi
9361
9362 { echo "$as_me:$LINENO: checking for objdir" >&5
9363 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9364 if test "${libltdl_cv_objdir+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   libltdl_cv_objdir="$objdir"
9368   if test -n "$objdir"; then
9369     :
9370   else
9371     rm -f .libs 2>/dev/null
9372     mkdir .libs 2>/dev/null
9373     if test -d .libs; then
9374       libltdl_cv_objdir=.libs
9375     else
9376       # MS-DOS does not allow filenames that begin with a dot.
9377       libltdl_cv_objdir=_libs
9378     fi
9379   rmdir .libs 2>/dev/null
9380   fi
9381
9382 fi
9383 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9384 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9385
9386 cat >>confdefs.h <<_ACEOF
9387 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9388 _ACEOF
9389
9390
9391
9392
9393
9394
9395 # Check for command to grab the raw symbol name followed by C symbol from nm.
9396 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9397 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9398 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401
9402 # These are sane defaults that work on at least a few old systems.
9403 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9404
9405 # Character class describing NM global symbol codes.
9406 symcode='[BCDEGRST]'
9407
9408 # Regexp to match symbols that can be accessed directly from C.
9409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9410
9411 # Transform an extracted symbol line into a proper C declaration
9412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9413
9414 # Transform an extracted symbol line into symbol name and symbol address
9415 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'"
9416
9417 # Define system-specific variables.
9418 case $host_os in
9419 aix*)
9420   symcode='[BCDT]'
9421   ;;
9422 cygwin* | mingw* | pw32*)
9423   symcode='[ABCDGISTW]'
9424   ;;
9425 hpux*) # Its linker distinguishes data from code symbols
9426   if test "$host_cpu" = ia64; then
9427     symcode='[ABCDEGRST]'
9428   fi
9429   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9430   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'"
9431   ;;
9432 linux*)
9433   if test "$host_cpu" = ia64; then
9434     symcode='[ABCDGIRSTW]'
9435     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9436     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9437   fi
9438   ;;
9439 irix* | nonstopux*)
9440   symcode='[BCDEGRST]'
9441   ;;
9442 osf*)
9443   symcode='[BCDEGQRST]'
9444   ;;
9445 solaris*)
9446   symcode='[BDRT]'
9447   ;;
9448 sco3.2v5*)
9449   symcode='[DT]'
9450   ;;
9451 sysv4.2uw2*)
9452   symcode='[DT]'
9453   ;;
9454 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9455   symcode='[ABDT]'
9456   ;;
9457 sysv4)
9458   symcode='[DFNSTU]'
9459   ;;
9460 esac
9461
9462 # Handle CRLF in mingw tool chain
9463 opt_cr=
9464 case $build_os in
9465 mingw*)
9466   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9467   ;;
9468 esac
9469
9470 # If we're using GNU nm, then use its standard symbol codes.
9471 case `$NM -V 2>&1` in
9472 *GNU* | *'with BFD'*)
9473   symcode='[ABCDGIRSTW]' ;;
9474 esac
9475
9476 # Try without a prefix undercore, then with it.
9477 for ac_symprfx in "" "_"; do
9478
9479   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9480   symxfrm="\\1 $ac_symprfx\\2 \\2"
9481
9482   # Write the raw and C identifiers.
9483   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9484
9485   # Check to see that the pipe works correctly.
9486   pipe_works=no
9487
9488   rm -f conftest*
9489   cat > conftest.$ac_ext <<EOF
9490 #ifdef __cplusplus
9491 extern "C" {
9492 #endif
9493 char nm_test_var;
9494 void nm_test_func(){}
9495 #ifdef __cplusplus
9496 }
9497 #endif
9498 int main(){nm_test_var='a';nm_test_func();return(0);}
9499 EOF
9500
9501   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502   (eval $ac_compile) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); }; then
9506     # Now try to grab the symbols.
9507     nlist=conftest.nm
9508     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9509   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); } && test -s "$nlist"; then
9513       # Try sorting and uniquifying the output.
9514       if sort "$nlist" | uniq > "$nlist"T; then
9515         mv -f "$nlist"T "$nlist"
9516       else
9517         rm -f "$nlist"T
9518       fi
9519
9520       # Make sure that we snagged all the symbols we need.
9521       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9522         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9523           cat <<EOF > conftest.$ac_ext
9524 #ifdef __cplusplus
9525 extern "C" {
9526 #endif
9527
9528 EOF
9529           # Now generate the symbol file.
9530           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9531
9532           cat <<EOF >> conftest.$ac_ext
9533 #if defined (__STDC__) && __STDC__
9534 # define lt_ptr_t void *
9535 #else
9536 # define lt_ptr_t char *
9537 # define const
9538 #endif
9539
9540 /* The mapping between symbol names and symbols. */
9541 const struct {
9542   const char *name;
9543   lt_ptr_t address;
9544 }
9545 lt_preloaded_symbols[] =
9546 {
9547 EOF
9548           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9549           cat <<\EOF >> conftest.$ac_ext
9550   {0, (lt_ptr_t) 0}
9551 };
9552
9553 #ifdef __cplusplus
9554 }
9555 #endif
9556 EOF
9557           # Now try linking the two files.
9558           mv conftest.$ac_objext conftstm.$ac_objext
9559           lt_save_LIBS="$LIBS"
9560           lt_save_CFLAGS="$CFLAGS"
9561           LIBS="conftstm.$ac_objext"
9562           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9563           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564   (eval $ac_link) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9568             pipe_works=yes
9569           fi
9570           LIBS="$lt_save_LIBS"
9571           CFLAGS="$lt_save_CFLAGS"
9572         else
9573           echo "cannot find nm_test_func in $nlist" >&5
9574         fi
9575       else
9576         echo "cannot find nm_test_var in $nlist" >&5
9577       fi
9578     else
9579       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9580     fi
9581   else
9582     echo "$progname: failed program was:" >&5
9583     cat conftest.$ac_ext >&5
9584   fi
9585   rm -f conftest* conftst*
9586
9587   # Do not use the global_symbol_pipe unless it works.
9588   if test "$pipe_works" = yes; then
9589     break
9590   else
9591     lt_cv_sys_global_symbol_pipe=
9592   fi
9593 done
9594
9595 fi
9596
9597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9598   lt_cv_sys_global_symbol_to_cdecl=
9599 fi
9600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9601   { echo "$as_me:$LINENO: result: failed" >&5
9602 echo "${ECHO_T}failed" >&6; }
9603 else
9604   { echo "$as_me:$LINENO: result: ok" >&5
9605 echo "${ECHO_T}ok" >&6; }
9606 fi
9607
9608
9609 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9610 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9611 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9612   echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9615     libltdl_cv_preloaded_symbols=yes
9616   else
9617     libltdl_cv_preloaded_symbols=no
9618   fi
9619
9620 fi
9621 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9622 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9623 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9624
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_PRELOADED_SYMBOLS 1
9627 _ACEOF
9628
9629 fi
9630
9631 LIBADD_DL=
9632
9633 ac_ext=c
9634 ac_cpp='$CPP $CPPFLAGS'
9635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9638
9639
9640 { echo "$as_me:$LINENO: checking for shl_load" >&5
9641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_shl_load+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h.  */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h.  */
9651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9653 #define shl_load innocuous_shl_load
9654
9655 /* System header to define __stub macros and hopefully few prototypes,
9656     which can conflict with char shl_load (); below.
9657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658     <limits.h> exists even on freestanding compilers.  */
9659
9660 #ifdef __STDC__
9661 # include <limits.h>
9662 #else
9663 # include <assert.h>
9664 #endif
9665
9666 #undef shl_load
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669    Use char because int might match the return type of a GCC
9670    builtin and then its argument prototype would still apply.  */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char shl_load ();
9675 /* The GNU C library defines this for functions which it implements
9676     to always fail with ENOSYS.  Some functions are actually named
9677     something starting with __ and the normal name is an alias.  */
9678 #if defined __stub_shl_load || defined __stub___shl_load
9679 choke me
9680 #endif
9681
9682 int
9683 main ()
9684 {
9685 return shl_load ();
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694   *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697   (eval "$ac_link") 2>conftest.er1
9698   ac_status=$?
9699   grep -v '^ *+' conftest.er1 >conftest.err
9700   rm -f conftest.er1
9701   cat conftest.err >&5
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); } &&
9704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9705   { (case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710   (eval "$ac_try") 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; } &&
9714          { ac_try='test -s conftest$ac_exeext'
9715   { (case "(($ac_try" in
9716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717   *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720   (eval "$ac_try") 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; }; then
9724   ac_cv_func_shl_load=yes
9725 else
9726   echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9728
9729         ac_cv_func_shl_load=no
9730 fi
9731
9732 rm -f core conftest.err conftest.$ac_objext \
9733       conftest$ac_exeext conftest.$ac_ext
9734 fi
9735 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9736 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9737 if test $ac_cv_func_shl_load = yes; then
9738
9739 cat >>confdefs.h <<\_ACEOF
9740 #define HAVE_SHL_LOAD 1
9741 _ACEOF
9742
9743 else
9744   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9745 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-ldld  $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 /* Override any GCC internal prototype to avoid an error.
9759    Use char because int might match the return type of a GCC
9760    builtin and then its argument prototype would still apply.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char shl_load ();
9765 int
9766 main ()
9767 {
9768 return shl_load ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780   (eval "$ac_link") 2>conftest.er1
9781   ac_status=$?
9782   grep -v '^ *+' conftest.er1 >conftest.err
9783   rm -f conftest.er1
9784   cat conftest.err >&5
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } &&
9787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788   { (case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793   (eval "$ac_try") 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; } &&
9797          { ac_try='test -s conftest$ac_exeext'
9798   { (case "(($ac_try" in
9799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800   *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803   (eval "$ac_try") 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; }; then
9807   ac_cv_lib_dld_shl_load=yes
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812         ac_cv_lib_dld_shl_load=no
9813 fi
9814
9815 rm -f core conftest.err conftest.$ac_objext \
9816       conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9818 fi
9819 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9820 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9821 if test $ac_cv_lib_dld_shl_load = yes; then
9822
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_SHL_LOAD 1
9825 _ACEOF
9826
9827         LIBADD_DL="$LIBADD_DL -ldld"
9828 else
9829   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9832   echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834   ac_check_lib_save_LIBS=$LIBS
9835 LIBS="-ldl  $LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842
9843 /* Override any GCC internal prototype to avoid an error.
9844    Use char because int might match the return type of a GCC
9845    builtin and then its argument prototype would still apply.  */
9846 #ifdef __cplusplus
9847 extern "C"
9848 #endif
9849 char dlopen ();
9850 int
9851 main ()
9852 {
9853 return dlopen ();
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (ac_try="$ac_link"
9860 case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865   (eval "$ac_link") 2>conftest.er1
9866   ac_status=$?
9867   grep -v '^ *+' conftest.er1 >conftest.err
9868   rm -f conftest.er1
9869   cat conftest.err >&5
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); } &&
9872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9873   { (case "(($ac_try" in
9874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875   *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878   (eval "$ac_try") 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; } &&
9882          { ac_try='test -s conftest$ac_exeext'
9883   { (case "(($ac_try" in
9884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885   *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888   (eval "$ac_try") 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; }; then
9892   ac_cv_lib_dl_dlopen=yes
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897         ac_cv_lib_dl_dlopen=no
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext \
9901       conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9903 fi
9904 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9906 if test $ac_cv_lib_dl_dlopen = yes; then
9907
9908 cat >>confdefs.h <<\_ACEOF
9909 #define HAVE_LIBDL 1
9910 _ACEOF
9911
9912                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9913 else
9914   cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920 #if HAVE_DLFCN_H
9921 #  include <dlfcn.h>
9922 #endif
9923
9924 int
9925 main ()
9926 {
9927 dlopen(0, 0);
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939   (eval "$ac_link") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947   { (case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_try") 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_try") 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; }; then
9966
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_LIBDL 1
9969 _ACEOF
9970  libltdl_cv_func_dlopen="yes"
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9976 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9977 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   ac_check_lib_save_LIBS=$LIBS
9981 LIBS="-lsvld  $LIBS"
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988
9989 /* Override any GCC internal prototype to avoid an error.
9990    Use char because int might match the return type of a GCC
9991    builtin and then its argument prototype would still apply.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 char dlopen ();
9996 int
9997 main ()
9998 {
9999 return dlopen ();
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (ac_try="$ac_link"
10006 case "(($ac_try" in
10007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008   *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011   (eval "$ac_link") 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } &&
10018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10019   { (case "(($ac_try" in
10020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021   *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024   (eval "$ac_try") 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; } &&
10028          { ac_try='test -s conftest$ac_exeext'
10029   { (case "(($ac_try" in
10030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031   *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034   (eval "$ac_try") 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   ac_cv_lib_svld_dlopen=yes
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043         ac_cv_lib_svld_dlopen=no
10044 fi
10045
10046 rm -f core conftest.err conftest.$ac_objext \
10047       conftest$ac_exeext conftest.$ac_ext
10048 LIBS=$ac_check_lib_save_LIBS
10049 fi
10050 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10051 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10052 if test $ac_cv_lib_svld_dlopen = yes; then
10053
10054 cat >>confdefs.h <<\_ACEOF
10055 #define HAVE_LIBDL 1
10056 _ACEOF
10057
10058                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10059 else
10060   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10061 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10062 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-ldld  $LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h.  */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h.  */
10073
10074 /* Override any GCC internal prototype to avoid an error.
10075    Use char because int might match the return type of a GCC
10076    builtin and then its argument prototype would still apply.  */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char dld_link ();
10081 int
10082 main ()
10083 {
10084 return dld_link ();
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_link") 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10104   { (case "(($ac_try" in
10105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106   *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109   (eval "$ac_try") 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; } &&
10113          { ac_try='test -s conftest$ac_exeext'
10114   { (case "(($ac_try" in
10115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116   *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119   (eval "$ac_try") 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; }; then
10123   ac_cv_lib_dld_dld_link=yes
10124 else
10125   echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128         ac_cv_lib_dld_dld_link=no
10129 fi
10130
10131 rm -f core conftest.err conftest.$ac_objext \
10132       conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10134 fi
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10136 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10137 if test $ac_cv_lib_dld_dld_link = yes; then
10138
10139 cat >>confdefs.h <<\_ACEOF
10140 #define HAVE_DLD 1
10141 _ACEOF
10142
10143                 LIBADD_DL="$LIBADD_DL -ldld"
10144 else
10145   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10146 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10147 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10158 #define _dyld_func_lookup innocuous__dyld_func_lookup
10159
10160 /* System header to define __stub macros and hopefully few prototypes,
10161     which can conflict with char _dyld_func_lookup (); below.
10162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10163     <limits.h> exists even on freestanding compilers.  */
10164
10165 #ifdef __STDC__
10166 # include <limits.h>
10167 #else
10168 # include <assert.h>
10169 #endif
10170
10171 #undef _dyld_func_lookup
10172
10173 /* Override any GCC internal prototype to avoid an error.
10174    Use char because int might match the return type of a GCC
10175    builtin and then its argument prototype would still apply.  */
10176 #ifdef __cplusplus
10177 extern "C"
10178 #endif
10179 char _dyld_func_lookup ();
10180 /* The GNU C library defines this for functions which it implements
10181     to always fail with ENOSYS.  Some functions are actually named
10182     something starting with __ and the normal name is an alias.  */
10183 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10184 choke me
10185 #endif
10186
10187 int
10188 main ()
10189 {
10190 return _dyld_func_lookup ();
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202   (eval "$ac_link") 2>conftest.er1
10203   ac_status=$?
10204   grep -v '^ *+' conftest.er1 >conftest.err
10205   rm -f conftest.er1
10206   cat conftest.err >&5
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210   { (case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215   (eval "$ac_try") 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; } &&
10219          { ac_try='test -s conftest$ac_exeext'
10220   { (case "(($ac_try" in
10221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222   *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225   (eval "$ac_try") 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   ac_cv_func__dyld_func_lookup=yes
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234         ac_cv_func__dyld_func_lookup=no
10235 fi
10236
10237 rm -f core conftest.err conftest.$ac_objext \
10238       conftest$ac_exeext conftest.$ac_ext
10239 fi
10240 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10241 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10242 if test $ac_cv_func__dyld_func_lookup = yes; then
10243
10244 cat >>confdefs.h <<\_ACEOF
10245 #define HAVE_DYLD 1
10246 _ACEOF
10247
10248 fi
10249
10250
10251 fi
10252
10253
10254 fi
10255
10256
10257 fi
10258
10259 rm -f core conftest.err conftest.$ac_objext \
10260       conftest$ac_exeext conftest.$ac_ext
10261
10262 fi
10263
10264
10265 fi
10266
10267
10268 fi
10269
10270
10271 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10272 then
10273   lt_save_LIBS="$LIBS"
10274   LIBS="$LIBS $LIBADD_DL"
10275
10276 for ac_func in dlerror
10277 do
10278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284   cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10292 #define $ac_func innocuous_$ac_func
10293
10294 /* System header to define __stub macros and hopefully few prototypes,
10295     which can conflict with char $ac_func (); below.
10296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297     <limits.h> exists even on freestanding compilers.  */
10298
10299 #ifdef __STDC__
10300 # include <limits.h>
10301 #else
10302 # include <assert.h>
10303 #endif
10304
10305 #undef $ac_func
10306
10307 /* Override any GCC internal prototype to avoid an error.
10308    Use char because int might match the return type of a GCC
10309    builtin and then its argument prototype would still apply.  */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char $ac_func ();
10314 /* The GNU C library defines this for functions which it implements
10315     to always fail with ENOSYS.  Some functions are actually named
10316     something starting with __ and the normal name is an alias.  */
10317 #if defined __stub_$ac_func || defined __stub___$ac_func
10318 choke me
10319 #endif
10320
10321 int
10322 main ()
10323 {
10324 return $ac_func ();
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333   *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336   (eval "$ac_link") 2>conftest.er1
10337   ac_status=$?
10338   grep -v '^ *+' conftest.er1 >conftest.err
10339   rm -f conftest.er1
10340   cat conftest.err >&5
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } &&
10343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10344   { (case "(($ac_try" in
10345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346   *) ac_try_echo=$ac_try;;
10347 esac
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349   (eval "$ac_try") 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; } &&
10353          { ac_try='test -s conftest$ac_exeext'
10354   { (case "(($ac_try" in
10355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356   *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359   (eval "$ac_try") 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; }; then
10363   eval "$as_ac_var=yes"
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368         eval "$as_ac_var=no"
10369 fi
10370
10371 rm -f core conftest.err conftest.$ac_objext \
10372       conftest$ac_exeext conftest.$ac_ext
10373 fi
10374 ac_res=`eval echo '${'$as_ac_var'}'`
10375                { echo "$as_me:$LINENO: result: $ac_res" >&5
10376 echo "${ECHO_T}$ac_res" >&6; }
10377 if test `eval echo '${'$as_ac_var'}'` = yes; then
10378   cat >>confdefs.h <<_ACEOF
10379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10380 _ACEOF
10381
10382 fi
10383 done
10384
10385   LIBS="$lt_save_LIBS"
10386 fi
10387 ac_ext=c
10388 ac_cpp='$CPP $CPPFLAGS'
10389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10392
10393
10394
10395 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10396 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10397 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10398   echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400   ac_cv_sys_symbol_underscore=no
10401   cat > conftest.$ac_ext <<EOF
10402 void nm_test_func(){}
10403 int main(){nm_test_func;return 0;}
10404 EOF
10405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406   (eval $ac_compile) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; then
10410     # Now try to grab the symbols.
10411     ac_nlist=conftest.nm
10412     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10413   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } && test -s "$ac_nlist"; then
10417       # See whether the symbols have a leading underscore.
10418       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10419         ac_cv_sys_symbol_underscore=yes
10420       else
10421         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10422           :
10423         else
10424           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10425         fi
10426       fi
10427     else
10428       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10429     fi
10430   else
10431     echo "configure: failed program was:" >&5
10432     cat conftest.c >&5
10433   fi
10434   rm -rf conftest*
10435
10436 fi
10437 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10438 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10439
10440
10441 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10442   if test x"$libltdl_cv_func_dlopen" = xyes ||
10443      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10444         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10445 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10446 if test "${libltdl_cv_need_uscore+set}" = set; then
10447   echo $ECHO_N "(cached) $ECHO_C" >&6
10448 else
10449   libltdl_cv_need_uscore=unknown
10450           save_LIBS="$LIBS"
10451           LIBS="$LIBS $LIBADD_DL"
10452           if test "$cross_compiling" = yes; then :
10453   libltdl_cv_need_uscore=cross
10454 else
10455   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10456   lt_status=$lt_dlunknown
10457   cat > conftest.$ac_ext <<EOF
10458 #line 10463 "configure"
10459 #include "confdefs.h"
10460
10461 #if HAVE_DLFCN_H
10462 #include <dlfcn.h>
10463 #endif
10464
10465 #include <stdio.h>
10466
10467 #ifdef RTLD_GLOBAL
10468 #  define LT_DLGLOBAL           RTLD_GLOBAL
10469 #else
10470 #  ifdef DL_GLOBAL
10471 #    define LT_DLGLOBAL         DL_GLOBAL
10472 #  else
10473 #    define LT_DLGLOBAL         0
10474 #  endif
10475 #endif
10476
10477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10478    find out it does not work in some platform. */
10479 #ifndef LT_DLLAZY_OR_NOW
10480 #  ifdef RTLD_LAZY
10481 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10482 #  else
10483 #    ifdef DL_LAZY
10484 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10485 #    else
10486 #      ifdef RTLD_NOW
10487 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10488 #      else
10489 #        ifdef DL_NOW
10490 #          define LT_DLLAZY_OR_NOW      DL_NOW
10491 #        else
10492 #          define LT_DLLAZY_OR_NOW      0
10493 #        endif
10494 #      endif
10495 #    endif
10496 #  endif
10497 #endif
10498
10499 #ifdef __cplusplus
10500 extern "C" void exit (int);
10501 #endif
10502
10503 void fnord() { int i=42;}
10504 int main ()
10505 {
10506   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10507   int status = $lt_dlunknown;
10508
10509   if (self)
10510     {
10511       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10512       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10513       /* dlclose (self); */
10514     }
10515   else
10516     puts (dlerror ());
10517
10518     exit (status);
10519 }
10520 EOF
10521   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10522   (eval $ac_link) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10526     (./conftest; exit; ) >&5 2>/dev/null
10527     lt_status=$?
10528     case x$lt_status in
10529       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10530       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10531       x$lt_dlunknown|x*)  ;;
10532     esac
10533   else :
10534     # compilation failed
10535
10536   fi
10537 fi
10538 rm -fr conftest*
10539
10540           LIBS="$save_LIBS"
10541
10542 fi
10543 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10544 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10545   fi
10546 fi
10547
10548 if test x"$libltdl_cv_need_uscore" = xyes; then
10549
10550 cat >>confdefs.h <<\_ACEOF
10551 #define NEED_USCORE 1
10552 _ACEOF
10553
10554 fi
10555
10556
10557 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10558 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10559 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10560   echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562   # PORTME does your system automatically load deplibs for dlopen?
10563   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10564   # For now, we just catch OSes we know something about -- in the
10565   # future, we'll try test this programmatically.
10566   libltdl_cv_sys_dlopen_deplibs=unknown
10567   case "$host_os" in
10568   aix3*|aix4.1.*|aix4.2.*)
10569     # Unknown whether this is true for these versions of AIX, but
10570     # we want this `case' here to explicitly catch those versions.
10571     libltdl_cv_sys_dlopen_deplibs=unknown
10572     ;;
10573   aix[45]*)
10574     libltdl_cv_sys_dlopen_deplibs=yes
10575     ;;
10576   darwin*)
10577     # Assuming the user has installed a libdl from somewhere, this is true
10578     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10579     libltdl_cv_sys_dlopen_deplibs=yes
10580     ;;
10581   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10582     # GNU and its variants, using gnu ld.so (Glibc)
10583     libltdl_cv_sys_dlopen_deplibs=yes
10584     ;;
10585   hpux10*|hpux11*)
10586     libltdl_cv_sys_dlopen_deplibs=yes
10587     ;;
10588   interix*)
10589     libltdl_cv_sys_dlopen_deplibs=yes
10590     ;;
10591   irix[12345]*|irix6.[01]*)
10592     # Catch all versions of IRIX before 6.2, and indicate that we don't
10593     # know how it worked for any of those versions.
10594     libltdl_cv_sys_dlopen_deplibs=unknown
10595     ;;
10596   irix*)
10597     # The case above catches anything before 6.2, and it's known that
10598     # at 6.2 and later dlopen does load deplibs.
10599     libltdl_cv_sys_dlopen_deplibs=yes
10600     ;;
10601   netbsd*)
10602     libltdl_cv_sys_dlopen_deplibs=yes
10603     ;;
10604   openbsd*)
10605     libltdl_cv_sys_dlopen_deplibs=yes
10606     ;;
10607   osf[1234]*)
10608     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10609     # it did *not* use an RPATH in a shared library to find objects the
10610     # library depends on, so we explicitly say `no'.
10611     libltdl_cv_sys_dlopen_deplibs=no
10612     ;;
10613   osf5.0|osf5.0a|osf5.1)
10614     # dlopen *does* load deplibs and with the right loader patch applied
10615     # it even uses RPATH in a shared library to search for shared objects
10616     # that the library depends on, but there's no easy way to know if that
10617     # patch is installed.  Since this is the case, all we can really
10618     # say is unknown -- it depends on the patch being installed.  If
10619     # it is, this changes to `yes'.  Without it, it would be `no'.
10620     libltdl_cv_sys_dlopen_deplibs=unknown
10621     ;;
10622   osf*)
10623     # the two cases above should catch all versions of osf <= 5.1.  Read
10624     # the comments above for what we know about them.
10625     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10626     # is used to find them so we can finally say `yes'.
10627     libltdl_cv_sys_dlopen_deplibs=yes
10628     ;;
10629   solaris*)
10630     libltdl_cv_sys_dlopen_deplibs=yes
10631     ;;
10632   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10633     libltdl_cv_sys_dlopen_deplibs=yes
10634     ;;
10635   esac
10636
10637 fi
10638 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10639 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10640 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10641
10642 cat >>confdefs.h <<\_ACEOF
10643 #define LTDL_DLOPEN_DEPLIBS 1
10644 _ACEOF
10645
10646 fi
10647
10648
10649 for ac_header in argz.h
10650 do
10651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10653   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 fi
10658 ac_res=`eval echo '${'$as_ac_Header'}'`
10659                { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10661 else
10662   # Is the header compilable?
10663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671 $ac_includes_default
10672 #include <$ac_header>
10673 _ACEOF
10674 rm -f conftest.$ac_objext
10675 if { (ac_try="$ac_compile"
10676 case "(($ac_try" in
10677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678   *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681   (eval "$ac_compile") 2>conftest.er1
10682   ac_status=$?
10683   grep -v '^ *+' conftest.er1 >conftest.err
10684   rm -f conftest.er1
10685   cat conftest.err >&5
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); } &&
10688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10689   { (case "(($ac_try" in
10690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691   *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694   (eval "$ac_try") 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); }; } &&
10698          { ac_try='test -s conftest.$ac_objext'
10699   { (case "(($ac_try" in
10700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701   *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704   (eval "$ac_try") 2>&5
10705   ac_status=$?
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); }; }; then
10708   ac_header_compiler=yes
10709 else
10710   echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713         ac_header_compiler=no
10714 fi
10715
10716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718 echo "${ECHO_T}$ac_header_compiler" >&6; }
10719
10720 # Is the header present?
10721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10723 cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h.  */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729 #include <$ac_header>
10730 _ACEOF
10731 if { (ac_try="$ac_cpp conftest.$ac_ext"
10732 case "(($ac_try" in
10733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734   *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10738   ac_status=$?
10739   grep -v '^ *+' conftest.er1 >conftest.err
10740   rm -f conftest.er1
10741   cat conftest.err >&5
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } >/dev/null; then
10744   if test -s conftest.err; then
10745     ac_cpp_err=$ac_c_preproc_warn_flag
10746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10747   else
10748     ac_cpp_err=
10749   fi
10750 else
10751   ac_cpp_err=yes
10752 fi
10753 if test -z "$ac_cpp_err"; then
10754   ac_header_preproc=yes
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759   ac_header_preproc=no
10760 fi
10761
10762 rm -f conftest.err conftest.$ac_ext
10763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10764 echo "${ECHO_T}$ac_header_preproc" >&6; }
10765
10766 # So?  What about this header?
10767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10768   yes:no: )
10769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10773     ac_header_preproc=yes
10774     ;;
10775   no:yes:* )
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10788     ( cat <<\_ASBOX
10789 ## ----------------------------------- ##
10790 ## Report this to llvmbugs@cs.uiuc.edu ##
10791 ## ----------------------------------- ##
10792 _ASBOX
10793      ) | sed "s/^/$as_me: WARNING:     /" >&2
10794     ;;
10795 esac
10796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801   eval "$as_ac_Header=\$ac_header_preproc"
10802 fi
10803 ac_res=`eval echo '${'$as_ac_Header'}'`
10804                { echo "$as_me:$LINENO: result: $ac_res" >&5
10805 echo "${ECHO_T}$ac_res" >&6; }
10806
10807 fi
10808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10809   cat >>confdefs.h <<_ACEOF
10810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10811 _ACEOF
10812
10813 fi
10814
10815 done
10816
10817
10818 { echo "$as_me:$LINENO: checking for error_t" >&5
10819 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10820 if test "${ac_cv_type_error_t+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829 #if HAVE_ARGZ_H
10830 #  include <argz.h>
10831 #endif
10832
10833 typedef error_t ac__type_new_;
10834 int
10835 main ()
10836 {
10837 if ((ac__type_new_ *) 0)
10838   return 0;
10839 if (sizeof (ac__type_new_))
10840   return 0;
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852   (eval "$ac_compile") 2>conftest.er1
10853   ac_status=$?
10854   grep -v '^ *+' conftest.er1 >conftest.err
10855   rm -f conftest.er1
10856   cat conftest.err >&5
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); } &&
10859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860   { (case "(($ac_try" in
10861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862   *) ac_try_echo=$ac_try;;
10863 esac
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865   (eval "$ac_try") 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); }; } &&
10869          { ac_try='test -s conftest.$ac_objext'
10870   { (case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_try") 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; }; then
10879   ac_cv_type_error_t=yes
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884         ac_cv_type_error_t=no
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10890 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10891 if test $ac_cv_type_error_t = yes; then
10892
10893 cat >>confdefs.h <<_ACEOF
10894 #define HAVE_ERROR_T 1
10895 _ACEOF
10896
10897
10898 else
10899
10900 cat >>confdefs.h <<\_ACEOF
10901 #define error_t int
10902 _ACEOF
10903
10904 fi
10905
10906
10907
10908
10909
10910
10911
10912 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10913 do
10914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920   cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h.  */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h.  */
10926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10928 #define $ac_func innocuous_$ac_func
10929
10930 /* System header to define __stub macros and hopefully few prototypes,
10931     which can conflict with char $ac_func (); below.
10932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10933     <limits.h> exists even on freestanding compilers.  */
10934
10935 #ifdef __STDC__
10936 # include <limits.h>
10937 #else
10938 # include <assert.h>
10939 #endif
10940
10941 #undef $ac_func
10942
10943 /* Override any GCC internal prototype to avoid an error.
10944    Use char because int might match the return type of a GCC
10945    builtin and then its argument prototype would still apply.  */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 char $ac_func ();
10950 /* The GNU C library defines this for functions which it implements
10951     to always fail with ENOSYS.  Some functions are actually named
10952     something starting with __ and the normal name is an alias.  */
10953 #if defined __stub_$ac_func || defined __stub___$ac_func
10954 choke me
10955 #endif
10956
10957 int
10958 main ()
10959 {
10960 return $ac_func ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972   (eval "$ac_link") 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } &&
10979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980   { (case "(($ac_try" in
10981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982   *) ac_try_echo=$ac_try;;
10983 esac
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985   (eval "$ac_try") 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; } &&
10989          { ac_try='test -s conftest$ac_exeext'
10990   { (case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_try") 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; }; then
10999   eval "$as_ac_var=yes"
11000 else
11001   echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004         eval "$as_ac_var=no"
11005 fi
11006
11007 rm -f core conftest.err conftest.$ac_objext \
11008       conftest$ac_exeext conftest.$ac_ext
11009 fi
11010 ac_res=`eval echo '${'$as_ac_var'}'`
11011                { echo "$as_me:$LINENO: result: $ac_res" >&5
11012 echo "${ECHO_T}$ac_res" >&6; }
11013 if test `eval echo '${'$as_ac_var'}'` = yes; then
11014   cat >>confdefs.h <<_ACEOF
11015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11016 _ACEOF
11017
11018 fi
11019 done
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11049                   stdio.h unistd.h
11050 do
11051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11053   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 fi
11058 ac_res=`eval echo '${'$as_ac_Header'}'`
11059                { echo "$as_me:$LINENO: result: $ac_res" >&5
11060 echo "${ECHO_T}$ac_res" >&6; }
11061 else
11062   # Is the header compilable?
11063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h.  */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h.  */
11071 $ac_includes_default
11072 #include <$ac_header>
11073 _ACEOF
11074 rm -f conftest.$ac_objext
11075 if { (ac_try="$ac_compile"
11076 case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081   (eval "$ac_compile") 2>conftest.er1
11082   ac_status=$?
11083   grep -v '^ *+' conftest.er1 >conftest.err
11084   rm -f conftest.er1
11085   cat conftest.err >&5
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089   { (case "(($ac_try" in
11090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091   *) ac_try_echo=$ac_try;;
11092 esac
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094   (eval "$ac_try") 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); }; } &&
11098          { ac_try='test -s conftest.$ac_objext'
11099   { (case "(($ac_try" in
11100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101   *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104   (eval "$ac_try") 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; }; then
11108   ac_header_compiler=yes
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113         ac_header_compiler=no
11114 fi
11115
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11118 echo "${ECHO_T}$ac_header_compiler" >&6; }
11119
11120 # Is the header present?
11121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h.  */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h.  */
11129 #include <$ac_header>
11130 _ACEOF
11131 if { (ac_try="$ac_cpp conftest.$ac_ext"
11132 case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } >/dev/null; then
11144   if test -s conftest.err; then
11145     ac_cpp_err=$ac_c_preproc_warn_flag
11146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11147   else
11148     ac_cpp_err=
11149   fi
11150 else
11151   ac_cpp_err=yes
11152 fi
11153 if test -z "$ac_cpp_err"; then
11154   ac_header_preproc=yes
11155 else
11156   echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159   ac_header_preproc=no
11160 fi
11161
11162 rm -f conftest.err conftest.$ac_ext
11163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11164 echo "${ECHO_T}$ac_header_preproc" >&6; }
11165
11166 # So?  What about this header?
11167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11168   yes:no: )
11169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11173     ac_header_preproc=yes
11174     ;;
11175   no:yes:* )
11176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11188     ( cat <<\_ASBOX
11189 ## ----------------------------------- ##
11190 ## Report this to llvmbugs@cs.uiuc.edu ##
11191 ## ----------------------------------- ##
11192 _ASBOX
11193      ) | sed "s/^/$as_me: WARNING:     /" >&2
11194     ;;
11195 esac
11196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199   echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201   eval "$as_ac_Header=\$ac_header_preproc"
11202 fi
11203 ac_res=`eval echo '${'$as_ac_Header'}'`
11204                { echo "$as_me:$LINENO: result: $ac_res" >&5
11205 echo "${ECHO_T}$ac_res" >&6; }
11206
11207 fi
11208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11209   cat >>confdefs.h <<_ACEOF
11210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11211 _ACEOF
11212
11213 fi
11214
11215 done
11216
11217
11218
11219
11220
11221 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11222 do
11223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11225   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228   echo $ECHO_N "(cached) $ECHO_C" >&6
11229 fi
11230 ac_res=`eval echo '${'$as_ac_Header'}'`
11231                { echo "$as_me:$LINENO: result: $ac_res" >&5
11232 echo "${ECHO_T}$ac_res" >&6; }
11233 else
11234   # Is the header compilable?
11235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243 $ac_includes_default
11244 #include <$ac_header>
11245 _ACEOF
11246 rm -f conftest.$ac_objext
11247 if { (ac_try="$ac_compile"
11248 case "(($ac_try" in
11249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250   *) ac_try_echo=$ac_try;;
11251 esac
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253   (eval "$ac_compile") 2>conftest.er1
11254   ac_status=$?
11255   grep -v '^ *+' conftest.er1 >conftest.err
11256   rm -f conftest.er1
11257   cat conftest.err >&5
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); } &&
11260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261   { (case "(($ac_try" in
11262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263   *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266   (eval "$ac_try") 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); }; } &&
11270          { ac_try='test -s conftest.$ac_objext'
11271   { (case "(($ac_try" in
11272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273   *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276   (eval "$ac_try") 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; }; then
11280   ac_header_compiler=yes
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285         ac_header_compiler=no
11286 fi
11287
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11290 echo "${ECHO_T}$ac_header_compiler" >&6; }
11291
11292 # Is the header present?
11293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 #include <$ac_header>
11302 _ACEOF
11303 if { (ac_try="$ac_cpp conftest.$ac_ext"
11304 case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11310   ac_status=$?
11311   grep -v '^ *+' conftest.er1 >conftest.err
11312   rm -f conftest.er1
11313   cat conftest.err >&5
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } >/dev/null; then
11316   if test -s conftest.err; then
11317     ac_cpp_err=$ac_c_preproc_warn_flag
11318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11319   else
11320     ac_cpp_err=
11321   fi
11322 else
11323   ac_cpp_err=yes
11324 fi
11325 if test -z "$ac_cpp_err"; then
11326   ac_header_preproc=yes
11327 else
11328   echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331   ac_header_preproc=no
11332 fi
11333
11334 rm -f conftest.err conftest.$ac_ext
11335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11336 echo "${ECHO_T}$ac_header_preproc" >&6; }
11337
11338 # So?  What about this header?
11339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11340   yes:no: )
11341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11345     ac_header_preproc=yes
11346     ;;
11347   no:yes:* )
11348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11360     ( cat <<\_ASBOX
11361 ## ----------------------------------- ##
11362 ## Report this to llvmbugs@cs.uiuc.edu ##
11363 ## ----------------------------------- ##
11364 _ASBOX
11365      ) | sed "s/^/$as_me: WARNING:     /" >&2
11366     ;;
11367 esac
11368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   eval "$as_ac_Header=\$ac_header_preproc"
11374 fi
11375 ac_res=`eval echo '${'$as_ac_Header'}'`
11376                { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11378
11379 fi
11380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11381   cat >>confdefs.h <<_ACEOF
11382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11383 _ACEOF
11384
11385 fi
11386
11387 done
11388
11389
11390
11391 for ac_header in string.h strings.h
11392 do
11393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 fi
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401                { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11403 else
11404   # Is the header compilable?
11405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11407 cat >conftest.$ac_ext <<_ACEOF
11408 /* confdefs.h.  */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h.  */
11413 $ac_includes_default
11414 #include <$ac_header>
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420   *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423   (eval "$ac_compile") 2>conftest.er1
11424   ac_status=$?
11425   grep -v '^ *+' conftest.er1 >conftest.err
11426   rm -f conftest.er1
11427   cat conftest.err >&5
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } &&
11430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11431   { (case "(($ac_try" in
11432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433   *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436   (eval "$ac_try") 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; } &&
11440          { ac_try='test -s conftest.$ac_objext'
11441   { (case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446   (eval "$ac_try") 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; }; then
11450   ac_header_compiler=yes
11451 else
11452   echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455         ac_header_compiler=no
11456 fi
11457
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11460 echo "${ECHO_T}$ac_header_compiler" >&6; }
11461
11462 # Is the header present?
11463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h.  */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h.  */
11471 #include <$ac_header>
11472 _ACEOF
11473 if { (ac_try="$ac_cpp conftest.$ac_ext"
11474 case "(($ac_try" in
11475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476   *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11480   ac_status=$?
11481   grep -v '^ *+' conftest.er1 >conftest.err
11482   rm -f conftest.er1
11483   cat conftest.err >&5
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } >/dev/null; then
11486   if test -s conftest.err; then
11487     ac_cpp_err=$ac_c_preproc_warn_flag
11488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11489   else
11490     ac_cpp_err=
11491   fi
11492 else
11493   ac_cpp_err=yes
11494 fi
11495 if test -z "$ac_cpp_err"; then
11496   ac_header_preproc=yes
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501   ac_header_preproc=no
11502 fi
11503
11504 rm -f conftest.err conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11506 echo "${ECHO_T}$ac_header_preproc" >&6; }
11507
11508 # So?  What about this header?
11509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11510   yes:no: )
11511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11515     ac_header_preproc=yes
11516     ;;
11517   no:yes:* )
11518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11530     ( cat <<\_ASBOX
11531 ## ----------------------------------- ##
11532 ## Report this to llvmbugs@cs.uiuc.edu ##
11533 ## ----------------------------------- ##
11534 _ASBOX
11535      ) | sed "s/^/$as_me: WARNING:     /" >&2
11536     ;;
11537 esac
11538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   eval "$as_ac_Header=\$ac_header_preproc"
11544 fi
11545 ac_res=`eval echo '${'$as_ac_Header'}'`
11546                { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11548
11549 fi
11550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11551   cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11553 _ACEOF
11554  break
11555 fi
11556
11557 done
11558
11559
11560
11561
11562 for ac_func in strchr index
11563 do
11564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11578 #define $ac_func innocuous_$ac_func
11579
11580 /* System header to define __stub macros and hopefully few prototypes,
11581     which can conflict with char $ac_func (); below.
11582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583     <limits.h> exists even on freestanding compilers.  */
11584
11585 #ifdef __STDC__
11586 # include <limits.h>
11587 #else
11588 # include <assert.h>
11589 #endif
11590
11591 #undef $ac_func
11592
11593 /* Override any GCC internal prototype to avoid an error.
11594    Use char because int might match the return type of a GCC
11595    builtin and then its argument prototype would still apply.  */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 char $ac_func ();
11600 /* The GNU C library defines this for functions which it implements
11601     to always fail with ENOSYS.  Some functions are actually named
11602     something starting with __ and the normal name is an alias.  */
11603 #if defined __stub_$ac_func || defined __stub___$ac_func
11604 choke me
11605 #endif
11606
11607 int
11608 main ()
11609 {
11610 return $ac_func ();
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_link") 2>conftest.er1
11623   ac_status=$?
11624   grep -v '^ *+' conftest.er1 >conftest.err
11625   rm -f conftest.er1
11626   cat conftest.err >&5
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); } &&
11629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11630   { (case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635   (eval "$ac_try") 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; } &&
11639          { ac_try='test -s conftest$ac_exeext'
11640   { (case "(($ac_try" in
11641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642   *) ac_try_echo=$ac_try;;
11643 esac
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645   (eval "$ac_try") 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   eval "$as_ac_var=yes"
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654         eval "$as_ac_var=no"
11655 fi
11656
11657 rm -f core conftest.err conftest.$ac_objext \
11658       conftest$ac_exeext conftest.$ac_ext
11659 fi
11660 ac_res=`eval echo '${'$as_ac_var'}'`
11661                { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11663 if test `eval echo '${'$as_ac_var'}'` = yes; then
11664   cat >>confdefs.h <<_ACEOF
11665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11666 _ACEOF
11667  break
11668 fi
11669 done
11670
11671
11672
11673 for ac_func in strrchr rindex
11674 do
11675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11679   echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681   cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11689 #define $ac_func innocuous_$ac_func
11690
11691 /* System header to define __stub macros and hopefully few prototypes,
11692     which can conflict with char $ac_func (); below.
11693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11694     <limits.h> exists even on freestanding compilers.  */
11695
11696 #ifdef __STDC__
11697 # include <limits.h>
11698 #else
11699 # include <assert.h>
11700 #endif
11701
11702 #undef $ac_func
11703
11704 /* Override any GCC internal prototype to avoid an error.
11705    Use char because int might match the return type of a GCC
11706    builtin and then its argument prototype would still apply.  */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 char $ac_func ();
11711 /* The GNU C library defines this for functions which it implements
11712     to always fail with ENOSYS.  Some functions are actually named
11713     something starting with __ and the normal name is an alias.  */
11714 #if defined __stub_$ac_func || defined __stub___$ac_func
11715 choke me
11716 #endif
11717
11718 int
11719 main ()
11720 {
11721 return $ac_func ();
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 rm -f conftest.$ac_objext conftest$ac_exeext
11727 if { (ac_try="$ac_link"
11728 case "(($ac_try" in
11729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730   *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733   (eval "$ac_link") 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11741   { (case "(($ac_try" in
11742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743   *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746   (eval "$ac_try") 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }; } &&
11750          { ac_try='test -s conftest$ac_exeext'
11751   { (case "(($ac_try" in
11752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753   *) ac_try_echo=$ac_try;;
11754 esac
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756   (eval "$ac_try") 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; }; then
11760   eval "$as_ac_var=yes"
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765         eval "$as_ac_var=no"
11766 fi
11767
11768 rm -f core conftest.err conftest.$ac_objext \
11769       conftest$ac_exeext conftest.$ac_ext
11770 fi
11771 ac_res=`eval echo '${'$as_ac_var'}'`
11772                { echo "$as_me:$LINENO: result: $ac_res" >&5
11773 echo "${ECHO_T}$ac_res" >&6; }
11774 if test `eval echo '${'$as_ac_var'}'` = yes; then
11775   cat >>confdefs.h <<_ACEOF
11776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11777 _ACEOF
11778  break
11779 fi
11780 done
11781
11782
11783
11784 for ac_func in memcpy bcopy
11785 do
11786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11800 #define $ac_func innocuous_$ac_func
11801
11802 /* System header to define __stub macros and hopefully few prototypes,
11803     which can conflict with char $ac_func (); below.
11804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11805     <limits.h> exists even on freestanding compilers.  */
11806
11807 #ifdef __STDC__
11808 # include <limits.h>
11809 #else
11810 # include <assert.h>
11811 #endif
11812
11813 #undef $ac_func
11814
11815 /* Override any GCC internal prototype to avoid an error.
11816    Use char because int might match the return type of a GCC
11817    builtin and then its argument prototype would still apply.  */
11818 #ifdef __cplusplus
11819 extern "C"
11820 #endif
11821 char $ac_func ();
11822 /* The GNU C library defines this for functions which it implements
11823     to always fail with ENOSYS.  Some functions are actually named
11824     something starting with __ and the normal name is an alias.  */
11825 #if defined __stub_$ac_func || defined __stub___$ac_func
11826 choke me
11827 #endif
11828
11829 int
11830 main ()
11831 {
11832 return $ac_func ();
11833   ;
11834   return 0;
11835 }
11836 _ACEOF
11837 rm -f conftest.$ac_objext conftest$ac_exeext
11838 if { (ac_try="$ac_link"
11839 case "(($ac_try" in
11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841   *) ac_try_echo=$ac_try;;
11842 esac
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844   (eval "$ac_link") 2>conftest.er1
11845   ac_status=$?
11846   grep -v '^ *+' conftest.er1 >conftest.err
11847   rm -f conftest.er1
11848   cat conftest.err >&5
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); } &&
11851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11852   { (case "(($ac_try" in
11853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854   *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857   (eval "$ac_try") 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; } &&
11861          { ac_try='test -s conftest$ac_exeext'
11862   { (case "(($ac_try" in
11863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864   *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867   (eval "$ac_try") 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; }; then
11871   eval "$as_ac_var=yes"
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876         eval "$as_ac_var=no"
11877 fi
11878
11879 rm -f core conftest.err conftest.$ac_objext \
11880       conftest$ac_exeext conftest.$ac_ext
11881 fi
11882 ac_res=`eval echo '${'$as_ac_var'}'`
11883                { echo "$as_me:$LINENO: result: $ac_res" >&5
11884 echo "${ECHO_T}$ac_res" >&6; }
11885 if test `eval echo '${'$as_ac_var'}'` = yes; then
11886   cat >>confdefs.h <<_ACEOF
11887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11888 _ACEOF
11889  break
11890 fi
11891 done
11892
11893
11894
11895 for ac_func in memmove strcmp
11896 do
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h.  */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h.  */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11911 #define $ac_func innocuous_$ac_func
11912
11913 /* System header to define __stub macros and hopefully few prototypes,
11914     which can conflict with char $ac_func (); below.
11915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916     <limits.h> exists even on freestanding compilers.  */
11917
11918 #ifdef __STDC__
11919 # include <limits.h>
11920 #else
11921 # include <assert.h>
11922 #endif
11923
11924 #undef $ac_func
11925
11926 /* Override any GCC internal prototype to avoid an error.
11927    Use char because int might match the return type of a GCC
11928    builtin and then its argument prototype would still apply.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char $ac_func ();
11933 /* The GNU C library defines this for functions which it implements
11934     to always fail with ENOSYS.  Some functions are actually named
11935     something starting with __ and the normal name is an alias.  */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 choke me
11938 #endif
11939
11940 int
11941 main ()
11942 {
11943 return $ac_func ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_link") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963   { (case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_try") 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; } &&
11972          { ac_try='test -s conftest$ac_exeext'
11973   { (case "(($ac_try" in
11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975   *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978   (eval "$ac_try") 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); }; }; then
11982   eval "$as_ac_var=yes"
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         eval "$as_ac_var=no"
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext \
11991       conftest$ac_exeext conftest.$ac_ext
11992 fi
11993 ac_res=`eval echo '${'$as_ac_var'}'`
11994                { echo "$as_me:$LINENO: result: $ac_res" >&5
11995 echo "${ECHO_T}$ac_res" >&6; }
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997   cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12000
12001 fi
12002 done
12003
12004
12005
12006
12007 for ac_func in closedir opendir readdir
12008 do
12009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12013   echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015   cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h.  */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h.  */
12021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12023 #define $ac_func innocuous_$ac_func
12024
12025 /* System header to define __stub macros and hopefully few prototypes,
12026     which can conflict with char $ac_func (); below.
12027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028     <limits.h> exists even on freestanding compilers.  */
12029
12030 #ifdef __STDC__
12031 # include <limits.h>
12032 #else
12033 # include <assert.h>
12034 #endif
12035
12036 #undef $ac_func
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char $ac_func ();
12045 /* The GNU C library defines this for functions which it implements
12046     to always fail with ENOSYS.  Some functions are actually named
12047     something starting with __ and the normal name is an alias.  */
12048 #if defined __stub_$ac_func || defined __stub___$ac_func
12049 choke me
12050 #endif
12051
12052 int
12053 main ()
12054 {
12055 return $ac_func ();
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (ac_try="$ac_link"
12062 case "(($ac_try" in
12063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064   *) ac_try_echo=$ac_try;;
12065 esac
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067   (eval "$ac_link") 2>conftest.er1
12068   ac_status=$?
12069   grep -v '^ *+' conftest.er1 >conftest.err
12070   rm -f conftest.er1
12071   cat conftest.err >&5
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); } &&
12074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12075   { (case "(($ac_try" in
12076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077   *) ac_try_echo=$ac_try;;
12078 esac
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080   (eval "$ac_try") 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; } &&
12084          { ac_try='test -s conftest$ac_exeext'
12085   { (case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090   (eval "$ac_try") 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   eval "$as_ac_var=yes"
12095 else
12096   echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099         eval "$as_ac_var=no"
12100 fi
12101
12102 rm -f core conftest.err conftest.$ac_objext \
12103       conftest$ac_exeext conftest.$ac_ext
12104 fi
12105 ac_res=`eval echo '${'$as_ac_var'}'`
12106                { echo "$as_me:$LINENO: result: $ac_res" >&5
12107 echo "${ECHO_T}$ac_res" >&6; }
12108 if test `eval echo '${'$as_ac_var'}'` = yes; then
12109   cat >>confdefs.h <<_ACEOF
12110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12111 _ACEOF
12112
12113 fi
12114 done
12115
12116
12117
12118 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12119 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12120
12121 ICC=no
12122 IXX=no
12123 case $CC in
12124   icc*|icpc*)
12125     ICC=yes
12126     IXX=yes
12127     ;;
12128    *)
12129     ;;
12130 esac
12131
12132 if test "$GCC" != "yes" && test "$ICC" != "yes"
12133 then
12134   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12135 echo "$as_me: error: gcc|icc required but not found" >&2;}
12136    { (exit 1); exit 1; }; }
12137 fi
12138
12139 if test "$GXX" != "yes" && test "$IXX" != "yes"
12140 then
12141   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12142 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12143    { (exit 1); exit 1; }; }
12144 fi
12145
12146 if test "$GCC" = "yes"
12147 then
12148   cat >conftest.$ac_ext <<_ACEOF
12149 #if !defined(__GNUC__) || __GNUC__ < 3
12150 #error Unsupported GCC version
12151 #endif
12152
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (ac_try="$ac_compile"
12156 case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_compile") 2>conftest.er1
12162   ac_status=$?
12163   grep -v '^ *+' conftest.er1 >conftest.err
12164   rm -f conftest.er1
12165   cat conftest.err >&5
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169   { (case "(($ac_try" in
12170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171   *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174   (eval "$ac_try") 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; } &&
12178          { ac_try='test -s conftest.$ac_objext'
12179   { (case "(($ac_try" in
12180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181   *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184   (eval "$ac_try") 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; }; then
12188   :
12189 else
12190   echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12194 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12195    { (exit 1); exit 1; }; }
12196 fi
12197
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 fi
12200
12201 if test -z "$llvm_cv_gnu_make_command"
12202 then
12203   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12204 echo "$as_me: error: GNU Make required but not found" >&2;}
12205    { (exit 1); exit 1; }; }
12206 fi
12207
12208 { echo "$as_me:$LINENO: result: ok" >&5
12209 echo "${ECHO_T}ok" >&6; }
12210
12211 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12212 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12213 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12214
12215 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12216
12217 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12218 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12219
12220
12221
12222 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12223 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12224 if test "${ac_cv_lib_m_sin+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-lm  $LIBS"
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h.  */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h.  */
12235
12236 /* Override any GCC internal prototype to avoid an error.
12237    Use char because int might match the return type of a GCC
12238    builtin and then its argument prototype would still apply.  */
12239 #ifdef __cplusplus
12240 extern "C"
12241 #endif
12242 char sin ();
12243 int
12244 main ()
12245 {
12246 return sin ();
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255   *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258   (eval "$ac_link") 2>conftest.er1
12259   ac_status=$?
12260   grep -v '^ *+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } &&
12265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12266   { (case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271   (eval "$ac_try") 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; } &&
12275          { ac_try='test -s conftest$ac_exeext'
12276   { (case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_try") 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; }; then
12285   ac_cv_lib_m_sin=yes
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290         ac_cv_lib_m_sin=no
12291 fi
12292
12293 rm -f core conftest.err conftest.$ac_objext \
12294       conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12296 fi
12297 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12298 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12299 if test $ac_cv_lib_m_sin = yes; then
12300   cat >>confdefs.h <<_ACEOF
12301 #define HAVE_LIBM 1
12302 _ACEOF
12303
12304   LIBS="-lm $LIBS"
12305
12306 fi
12307
12308 if test "$llvm_cv_os_type" = "MingW" ; then
12309
12310 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12311 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12312 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-limagehlp  $LIBS"
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323
12324
12325 int
12326 main ()
12327 {
12328 return main ();
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_link") 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } &&
12347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348   { (case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353   (eval "$ac_try") 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; } &&
12357          { ac_try='test -s conftest$ac_exeext'
12358   { (case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_try") 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; }; then
12367   ac_cv_lib_imagehlp_main=yes
12368 else
12369   echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372         ac_cv_lib_imagehlp_main=no
12373 fi
12374
12375 rm -f core conftest.err conftest.$ac_objext \
12376       conftest$ac_exeext conftest.$ac_ext
12377 LIBS=$ac_check_lib_save_LIBS
12378 fi
12379 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12380 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12381 if test $ac_cv_lib_imagehlp_main = yes; then
12382   cat >>confdefs.h <<_ACEOF
12383 #define HAVE_LIBIMAGEHLP 1
12384 _ACEOF
12385
12386   LIBS="-limagehlp $LIBS"
12387
12388 fi
12389
12390
12391 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12392 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12393 if test "${ac_cv_lib_psapi_main+set}" = set; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396   ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-lpsapi  $LIBS"
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404
12405
12406 int
12407 main ()
12408 {
12409 return main ();
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (ac_try="$ac_link"
12416 case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_link") 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429   { (case "(($ac_try" in
12430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431   *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434   (eval "$ac_try") 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; } &&
12438          { ac_try='test -s conftest$ac_exeext'
12439   { (case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_try") 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; }; then
12448   ac_cv_lib_psapi_main=yes
12449 else
12450   echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453         ac_cv_lib_psapi_main=no
12454 fi
12455
12456 rm -f core conftest.err conftest.$ac_objext \
12457       conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12461 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12462 if test $ac_cv_lib_psapi_main = yes; then
12463   cat >>confdefs.h <<_ACEOF
12464 #define HAVE_LIBPSAPI 1
12465 _ACEOF
12466
12467   LIBS="-lpsapi $LIBS"
12468
12469 fi
12470
12471 fi
12472
12473 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12474 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12475 if test "${ac_cv_search_dlopen+set}" = set; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478   ac_func_search_save_LIBS=$LIBS
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485
12486 /* Override any GCC internal prototype to avoid an error.
12487    Use char because int might match the return type of a GCC
12488    builtin and then its argument prototype would still apply.  */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 char dlopen ();
12493 int
12494 main ()
12495 {
12496 return dlopen ();
12497   ;
12498   return 0;
12499 }
12500 _ACEOF
12501 for ac_lib in '' dl; do
12502   if test -z "$ac_lib"; then
12503     ac_res="none required"
12504   else
12505     ac_res=-l$ac_lib
12506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12507   fi
12508   rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (ac_try="$ac_link"
12510 case "(($ac_try" in
12511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512   *) ac_try_echo=$ac_try;;
12513 esac
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515   (eval "$ac_link") 2>conftest.er1
12516   ac_status=$?
12517   grep -v '^ *+' conftest.er1 >conftest.err
12518   rm -f conftest.er1
12519   cat conftest.err >&5
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } &&
12522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12523   { (case "(($ac_try" in
12524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525   *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528   (eval "$ac_try") 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); }; } &&
12532          { ac_try='test -s conftest$ac_exeext'
12533   { (case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_try") 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; }; then
12542   ac_cv_search_dlopen=$ac_res
12543 else
12544   echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547
12548 fi
12549
12550 rm -f core conftest.err conftest.$ac_objext \
12551       conftest$ac_exeext
12552   if test "${ac_cv_search_dlopen+set}" = set; then
12553   break
12554 fi
12555 done
12556 if test "${ac_cv_search_dlopen+set}" = set; then
12557   :
12558 else
12559   ac_cv_search_dlopen=no
12560 fi
12561 rm conftest.$ac_ext
12562 LIBS=$ac_func_search_save_LIBS
12563 fi
12564 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12565 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12566 ac_res=$ac_cv_search_dlopen
12567 if test "$ac_res" != no; then
12568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12569
12570 cat >>confdefs.h <<\_ACEOF
12571 #define HAVE_DLOPEN 1
12572 _ACEOF
12573
12574 else
12575   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12576 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12577 fi
12578
12579
12580 if test "$llvm_cv_enable_libffi" = "yes" ; then
12581   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12582 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12583 if test "${ac_cv_search_ffi_call+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   ac_func_search_save_LIBS=$LIBS
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595    Use char because int might match the return type of a GCC
12596    builtin and then its argument prototype would still apply.  */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char ffi_call ();
12601 int
12602 main ()
12603 {
12604 return ffi_call ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 for ac_lib in '' ffi; do
12610   if test -z "$ac_lib"; then
12611     ac_res="none required"
12612   else
12613     ac_res=-l$ac_lib
12614     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12615   fi
12616   rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_link") 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } &&
12630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631   { (case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest$ac_exeext'
12641   { (case "(($ac_try" in
12642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643   *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646   (eval "$ac_try") 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; }; then
12650   ac_cv_search_ffi_call=$ac_res
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext \
12659       conftest$ac_exeext
12660   if test "${ac_cv_search_ffi_call+set}" = set; then
12661   break
12662 fi
12663 done
12664 if test "${ac_cv_search_ffi_call+set}" = set; then
12665   :
12666 else
12667   ac_cv_search_ffi_call=no
12668 fi
12669 rm conftest.$ac_ext
12670 LIBS=$ac_func_search_save_LIBS
12671 fi
12672 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12673 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12674 ac_res=$ac_cv_search_ffi_call
12675 if test "$ac_res" != no; then
12676   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12677
12678 cat >>confdefs.h <<\_ACEOF
12679 #define HAVE_FFI_CALL 1
12680 _ACEOF
12681
12682 else
12683   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12684 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12685    { (exit 1); exit 1; }; }
12686 fi
12687
12688 fi
12689
12690 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12691 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12692 if test "${ac_cv_search_mallinfo+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   ac_func_search_save_LIBS=$LIBS
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702
12703 /* Override any GCC internal prototype to avoid an error.
12704    Use char because int might match the return type of a GCC
12705    builtin and then its argument prototype would still apply.  */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 char mallinfo ();
12710 int
12711 main ()
12712 {
12713 return mallinfo ();
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 for ac_lib in '' malloc; do
12719   if test -z "$ac_lib"; then
12720     ac_res="none required"
12721   else
12722     ac_res=-l$ac_lib
12723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12724   fi
12725   rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_link") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740   { (case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_try") 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest$ac_exeext'
12750   { (case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_try") 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759   ac_cv_search_mallinfo=$ac_res
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764
12765 fi
12766
12767 rm -f core conftest.err conftest.$ac_objext \
12768       conftest$ac_exeext
12769   if test "${ac_cv_search_mallinfo+set}" = set; then
12770   break
12771 fi
12772 done
12773 if test "${ac_cv_search_mallinfo+set}" = set; then
12774   :
12775 else
12776   ac_cv_search_mallinfo=no
12777 fi
12778 rm conftest.$ac_ext
12779 LIBS=$ac_func_search_save_LIBS
12780 fi
12781 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12782 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12783 ac_res=$ac_cv_search_mallinfo
12784 if test "$ac_res" != no; then
12785   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12786
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_MALLINFO 1
12789 _ACEOF
12790
12791 fi
12792
12793
12794 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12795
12796 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12797 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12798 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801   ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-lpthread  $LIBS"
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char pthread_mutex_init ();
12817 int
12818 main ()
12819 {
12820 return pthread_mutex_init ();
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832   (eval "$ac_link") 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } &&
12839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840   { (case "(($ac_try" in
12841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842   *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845   (eval "$ac_try") 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; } &&
12849          { ac_try='test -s conftest$ac_exeext'
12850   { (case "(($ac_try" in
12851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852   *) ac_try_echo=$ac_try;;
12853 esac
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855   (eval "$ac_try") 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859   ac_cv_lib_pthread_pthread_mutex_init=yes
12860 else
12861   echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864         ac_cv_lib_pthread_pthread_mutex_init=no
12865 fi
12866
12867 rm -f core conftest.err conftest.$ac_objext \
12868       conftest$ac_exeext conftest.$ac_ext
12869 LIBS=$ac_check_lib_save_LIBS
12870 fi
12871 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12872 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12873 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12874   cat >>confdefs.h <<_ACEOF
12875 #define HAVE_LIBPTHREAD 1
12876 _ACEOF
12877
12878   LIBS="-lpthread $LIBS"
12879
12880 fi
12881
12882   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12883 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12884 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12885   echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887   ac_func_search_save_LIBS=$LIBS
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h.  */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h.  */
12894
12895 /* Override any GCC internal prototype to avoid an error.
12896    Use char because int might match the return type of a GCC
12897    builtin and then its argument prototype would still apply.  */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char pthread_mutex_lock ();
12902 int
12903 main ()
12904 {
12905 return pthread_mutex_lock ();
12906   ;
12907   return 0;
12908 }
12909 _ACEOF
12910 for ac_lib in '' pthread; do
12911   if test -z "$ac_lib"; then
12912     ac_res="none required"
12913   else
12914     ac_res=-l$ac_lib
12915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12916   fi
12917   rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (ac_try="$ac_link"
12919 case "(($ac_try" in
12920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921   *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924   (eval "$ac_link") 2>conftest.er1
12925   ac_status=$?
12926   grep -v '^ *+' conftest.er1 >conftest.err
12927   rm -f conftest.er1
12928   cat conftest.err >&5
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12932   { (case "(($ac_try" in
12933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934   *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937   (eval "$ac_try") 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); }; } &&
12941          { ac_try='test -s conftest$ac_exeext'
12942   { (case "(($ac_try" in
12943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944   *) ac_try_echo=$ac_try;;
12945 esac
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947   (eval "$ac_try") 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; }; then
12951   ac_cv_search_pthread_mutex_lock=$ac_res
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956
12957 fi
12958
12959 rm -f core conftest.err conftest.$ac_objext \
12960       conftest$ac_exeext
12961   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12962   break
12963 fi
12964 done
12965 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12966   :
12967 else
12968   ac_cv_search_pthread_mutex_lock=no
12969 fi
12970 rm conftest.$ac_ext
12971 LIBS=$ac_func_search_save_LIBS
12972 fi
12973 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12974 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12975 ac_res=$ac_cv_search_pthread_mutex_lock
12976 if test "$ac_res" != no; then
12977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12978
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_PTHREAD_MUTEX_LOCK 1
12981 _ACEOF
12982
12983 fi
12984
12985   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12986 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12987 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12988   echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990   ac_func_search_save_LIBS=$LIBS
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h.  */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h.  */
12997
12998 /* Override any GCC internal prototype to avoid an error.
12999    Use char because int might match the return type of a GCC
13000    builtin and then its argument prototype would still apply.  */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char pthread_rwlock_init ();
13005 int
13006 main ()
13007 {
13008 return pthread_rwlock_init ();
13009   ;
13010   return 0;
13011 }
13012 _ACEOF
13013 for ac_lib in '' pthread; do
13014   if test -z "$ac_lib"; then
13015     ac_res="none required"
13016   else
13017     ac_res=-l$ac_lib
13018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13019   fi
13020   rm -f conftest.$ac_objext conftest$ac_exeext
13021 if { (ac_try="$ac_link"
13022 case "(($ac_try" in
13023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024   *) ac_try_echo=$ac_try;;
13025 esac
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027   (eval "$ac_link") 2>conftest.er1
13028   ac_status=$?
13029   grep -v '^ *+' conftest.er1 >conftest.err
13030   rm -f conftest.er1
13031   cat conftest.err >&5
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035   { (case "(($ac_try" in
13036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037   *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040   (eval "$ac_try") 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; } &&
13044          { ac_try='test -s conftest$ac_exeext'
13045   { (case "(($ac_try" in
13046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047   *) ac_try_echo=$ac_try;;
13048 esac
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050   (eval "$ac_try") 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); }; }; then
13054   ac_cv_search_pthread_rwlock_init=$ac_res
13055 else
13056   echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13058
13059
13060 fi
13061
13062 rm -f core conftest.err conftest.$ac_objext \
13063       conftest$ac_exeext
13064   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13065   break
13066 fi
13067 done
13068 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13069   :
13070 else
13071   ac_cv_search_pthread_rwlock_init=no
13072 fi
13073 rm conftest.$ac_ext
13074 LIBS=$ac_func_search_save_LIBS
13075 fi
13076 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13077 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13078 ac_res=$ac_cv_search_pthread_rwlock_init
13079 if test "$ac_res" != no; then
13080   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13081
13082 cat >>confdefs.h <<\_ACEOF
13083 #define HAVE_PTHREAD_RWLOCK_INIT 1
13084 _ACEOF
13085
13086 fi
13087
13088   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13089 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13090 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13091   echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093   ac_func_search_save_LIBS=$LIBS
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100
13101 /* Override any GCC internal prototype to avoid an error.
13102    Use char because int might match the return type of a GCC
13103    builtin and then its argument prototype would still apply.  */
13104 #ifdef __cplusplus
13105 extern "C"
13106 #endif
13107 char pthread_getspecific ();
13108 int
13109 main ()
13110 {
13111 return pthread_getspecific ();
13112   ;
13113   return 0;
13114 }
13115 _ACEOF
13116 for ac_lib in '' pthread; do
13117   if test -z "$ac_lib"; then
13118     ac_res="none required"
13119   else
13120     ac_res=-l$ac_lib
13121     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13122   fi
13123   rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127   *) ac_try_echo=$ac_try;;
13128 esac
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130   (eval "$ac_link") 2>conftest.er1
13131   ac_status=$?
13132   grep -v '^ *+' conftest.er1 >conftest.err
13133   rm -f conftest.er1
13134   cat conftest.err >&5
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); } &&
13137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138   { (case "(($ac_try" in
13139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140   *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143   (eval "$ac_try") 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; } &&
13147          { ac_try='test -s conftest$ac_exeext'
13148   { (case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_try") 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   ac_cv_search_pthread_getspecific=$ac_res
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162
13163 fi
13164
13165 rm -f core conftest.err conftest.$ac_objext \
13166       conftest$ac_exeext
13167   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13168   break
13169 fi
13170 done
13171 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13172   :
13173 else
13174   ac_cv_search_pthread_getspecific=no
13175 fi
13176 rm conftest.$ac_ext
13177 LIBS=$ac_func_search_save_LIBS
13178 fi
13179 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13180 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13181 ac_res=$ac_cv_search_pthread_getspecific
13182 if test "$ac_res" != no; then
13183   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_PTHREAD_GETSPECIFIC 1
13187 _ACEOF
13188
13189 fi
13190
13191 fi
13192
13193
13194 # Check whether --with-udis86 was given.
13195 if test "${with_udis86+set}" = set; then
13196   withval=$with_udis86;
13197       USE_UDIS86=1
13198
13199       case "$withval" in
13200         /usr/lib|yes) ;;
13201         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13202       esac
13203
13204 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13205 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13206 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13207   echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209   ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-ludis86  $LIBS"
13211 cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217
13218 /* Override any GCC internal prototype to avoid an error.
13219    Use char because int might match the return type of a GCC
13220    builtin and then its argument prototype would still apply.  */
13221 #ifdef __cplusplus
13222 extern "C"
13223 #endif
13224 char ud_init ();
13225 int
13226 main ()
13227 {
13228 return ud_init ();
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (ac_try="$ac_link"
13235 case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_link") 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; } &&
13257          { ac_try='test -s conftest$ac_exeext'
13258   { (case "(($ac_try" in
13259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260   *) ac_try_echo=$ac_try;;
13261 esac
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263   (eval "$ac_try") 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   ac_cv_lib_udis86_ud_init=yes
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272         ac_cv_lib_udis86_ud_init=no
13273 fi
13274
13275 rm -f core conftest.err conftest.$ac_objext \
13276       conftest$ac_exeext conftest.$ac_ext
13277 LIBS=$ac_check_lib_save_LIBS
13278 fi
13279 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13280 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13281 if test $ac_cv_lib_udis86_ud_init = yes; then
13282   cat >>confdefs.h <<_ACEOF
13283 #define HAVE_LIBUDIS86 1
13284 _ACEOF
13285
13286   LIBS="-ludis86 $LIBS"
13287
13288 else
13289
13290         echo "Error! You need to have libudis86 around."
13291         exit -1
13292
13293 fi
13294
13295
13296 else
13297   USE_UDIS86=0
13298
13299 fi
13300
13301
13302 cat >>confdefs.h <<_ACEOF
13303 #define USE_UDIS86 $USE_UDIS86
13304 _ACEOF
13305
13306
13307
13308 # Check whether --with-oprofile was given.
13309 if test "${with_oprofile+set}" = set; then
13310   withval=$with_oprofile;
13311       USE_OPROFILE=1
13312
13313       case "$withval" in
13314         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13315         no) llvm_cv_oppath=
13316             USE_OPROFILE=0
13317  ;;
13318         *) llvm_cv_oppath="${withval}/lib/oprofile"
13319            CPPFLAGS="-I${withval}/include";;
13320       esac
13321       if test -n "$llvm_cv_oppath" ; then
13322         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13323                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13324 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13325 if test "${ac_cv_search_bfd_init+set}" = set; then
13326   echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328   ac_func_search_save_LIBS=$LIBS
13329 cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h.  */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h.  */
13335
13336 /* Override any GCC internal prototype to avoid an error.
13337    Use char because int might match the return type of a GCC
13338    builtin and then its argument prototype would still apply.  */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 char bfd_init ();
13343 int
13344 main ()
13345 {
13346 return bfd_init ();
13347   ;
13348   return 0;
13349 }
13350 _ACEOF
13351 for ac_lib in '' bfd; do
13352   if test -z "$ac_lib"; then
13353     ac_res="none required"
13354   else
13355     ac_res=-l$ac_lib
13356     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13357   fi
13358   rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (ac_try="$ac_link"
13360 case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_link") 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } &&
13372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13373   { (case "(($ac_try" in
13374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375   *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378   (eval "$ac_try") 2>&5
13379   ac_status=$?
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); }; } &&
13382          { ac_try='test -s conftest$ac_exeext'
13383   { (case "(($ac_try" in
13384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385   *) ac_try_echo=$ac_try;;
13386 esac
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388   (eval "$ac_try") 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; }; then
13392   ac_cv_search_bfd_init=$ac_res
13393 else
13394   echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13396
13397
13398 fi
13399
13400 rm -f core conftest.err conftest.$ac_objext \
13401       conftest$ac_exeext
13402   if test "${ac_cv_search_bfd_init+set}" = set; then
13403   break
13404 fi
13405 done
13406 if test "${ac_cv_search_bfd_init+set}" = set; then
13407   :
13408 else
13409   ac_cv_search_bfd_init=no
13410 fi
13411 rm conftest.$ac_ext
13412 LIBS=$ac_func_search_save_LIBS
13413 fi
13414 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13415 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13416 ac_res=$ac_cv_search_bfd_init
13417 if test "$ac_res" != no; then
13418   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13419
13420 fi
13421
13422         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13423 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13424 if test "${ac_cv_search_op_open_agent+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   ac_func_search_save_LIBS=$LIBS
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h.  */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h.  */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436    Use char because int might match the return type of a GCC
13437    builtin and then its argument prototype would still apply.  */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char op_open_agent ();
13442 int
13443 main ()
13444 {
13445 return op_open_agent ();
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 for ac_lib in '' opagent; do
13451   if test -z "$ac_lib"; then
13452     ac_res="none required"
13453   else
13454     ac_res=-l$ac_lib
13455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13456   fi
13457   rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (ac_try="$ac_link"
13459 case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_link") 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472   { (case "(($ac_try" in
13473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474   *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477   (eval "$ac_try") 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); }; } &&
13481          { ac_try='test -s conftest$ac_exeext'
13482   { (case "(($ac_try" in
13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484   *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487   (eval "$ac_try") 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   ac_cv_search_op_open_agent=$ac_res
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496
13497 fi
13498
13499 rm -f core conftest.err conftest.$ac_objext \
13500       conftest$ac_exeext
13501   if test "${ac_cv_search_op_open_agent+set}" = set; then
13502   break
13503 fi
13504 done
13505 if test "${ac_cv_search_op_open_agent+set}" = set; then
13506   :
13507 else
13508   ac_cv_search_op_open_agent=no
13509 fi
13510 rm conftest.$ac_ext
13511 LIBS=$ac_func_search_save_LIBS
13512 fi
13513 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13514 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13515 ac_res=$ac_cv_search_op_open_agent
13516 if test "$ac_res" != no; then
13517   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13518
13519 else
13520
13521           echo "Error! You need to have libopagent around."
13522           exit -1
13523
13524 fi
13525
13526         if test "${ac_cv_header_opagent_h+set}" = set; then
13527   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13528 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_opagent_h+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 fi
13532 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13533 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13534 else
13535   # Is the header compilable?
13536 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13537 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544 $ac_includes_default
13545 #include <opagent.h>
13546 _ACEOF
13547 rm -f conftest.$ac_objext
13548 if { (ac_try="$ac_compile"
13549 case "(($ac_try" in
13550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551   *) ac_try_echo=$ac_try;;
13552 esac
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554   (eval "$ac_compile") 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13562   { (case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567   (eval "$ac_try") 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; } &&
13571          { ac_try='test -s conftest.$ac_objext'
13572   { (case "(($ac_try" in
13573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574   *) ac_try_echo=$ac_try;;
13575 esac
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577   (eval "$ac_try") 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   ac_header_compiler=yes
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586         ac_header_compiler=no
13587 fi
13588
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13591 echo "${ECHO_T}$ac_header_compiler" >&6; }
13592
13593 # Is the header present?
13594 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13595 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602 #include <opagent.h>
13603 _ACEOF
13604 if { (ac_try="$ac_cpp conftest.$ac_ext"
13605 case "(($ac_try" in
13606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607   *) ac_try_echo=$ac_try;;
13608 esac
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } >/dev/null; then
13617   if test -s conftest.err; then
13618     ac_cpp_err=$ac_c_preproc_warn_flag
13619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13620   else
13621     ac_cpp_err=
13622   fi
13623 else
13624   ac_cpp_err=yes
13625 fi
13626 if test -z "$ac_cpp_err"; then
13627   ac_header_preproc=yes
13628 else
13629   echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632   ac_header_preproc=no
13633 fi
13634
13635 rm -f conftest.err conftest.$ac_ext
13636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13637 echo "${ECHO_T}$ac_header_preproc" >&6; }
13638
13639 # So?  What about this header?
13640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13641   yes:no: )
13642     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13643 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13644     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13645 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13646     ac_header_preproc=yes
13647     ;;
13648   no:yes:* )
13649     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13650 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13651     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13652 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13653     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13654 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13655     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13656 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13657     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13658 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13659     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13660 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13661     ( cat <<\_ASBOX
13662 ## ----------------------------------- ##
13663 ## Report this to llvmbugs@cs.uiuc.edu ##
13664 ## ----------------------------------- ##
13665 _ASBOX
13666      ) | sed "s/^/$as_me: WARNING:     /" >&2
13667     ;;
13668 esac
13669 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13670 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13671 if test "${ac_cv_header_opagent_h+set}" = set; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   ac_cv_header_opagent_h=$ac_header_preproc
13675 fi
13676 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13677 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13678
13679 fi
13680 if test $ac_cv_header_opagent_h = yes; then
13681   :
13682 else
13683
13684           echo "Error! You need to have opagent.h around."
13685           exit -1
13686
13687 fi
13688
13689
13690       fi
13691
13692 else
13693
13694       USE_OPROFILE=0
13695
13696
13697 fi
13698
13699
13700 cat >>confdefs.h <<_ACEOF
13701 #define USE_OPROFILE $USE_OPROFILE
13702 _ACEOF
13703
13704
13705
13706
13707
13708
13709
13710
13711 ac_header_dirent=no
13712 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13713   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13714 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13715 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h.  */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h.  */
13725 #include <sys/types.h>
13726 #include <$ac_hdr>
13727
13728 int
13729 main ()
13730 {
13731 if ((DIR *) 0)
13732 return 0;
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_compile") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752   { (case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_try") 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest.$ac_objext'
13762   { (case "(($ac_try" in
13763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764   *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767   (eval "$ac_try") 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; }; then
13771   eval "$as_ac_Header=yes"
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776         eval "$as_ac_Header=no"
13777 fi
13778
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 fi
13781 ac_res=`eval echo '${'$as_ac_Header'}'`
13782                { echo "$as_me:$LINENO: result: $ac_res" >&5
13783 echo "${ECHO_T}$ac_res" >&6; }
13784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13785   cat >>confdefs.h <<_ACEOF
13786 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13787 _ACEOF
13788
13789 ac_header_dirent=$ac_hdr; break
13790 fi
13791
13792 done
13793 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13794 if test $ac_header_dirent = dirent.h; then
13795   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13797 if test "${ac_cv_search_opendir+set}" = set; then
13798   echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800   ac_func_search_save_LIBS=$LIBS
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807
13808 /* Override any GCC internal prototype to avoid an error.
13809    Use char because int might match the return type of a GCC
13810    builtin and then its argument prototype would still apply.  */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char opendir ();
13815 int
13816 main ()
13817 {
13818 return opendir ();
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 for ac_lib in '' dir; do
13824   if test -z "$ac_lib"; then
13825     ac_res="none required"
13826   else
13827     ac_res=-l$ac_lib
13828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13829   fi
13830   rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837   (eval "$ac_link") 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845   { (case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_try") 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; } &&
13854          { ac_try='test -s conftest$ac_exeext'
13855   { (case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_try") 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; }; then
13864   ac_cv_search_opendir=$ac_res
13865 else
13866   echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869
13870 fi
13871
13872 rm -f core conftest.err conftest.$ac_objext \
13873       conftest$ac_exeext
13874   if test "${ac_cv_search_opendir+set}" = set; then
13875   break
13876 fi
13877 done
13878 if test "${ac_cv_search_opendir+set}" = set; then
13879   :
13880 else
13881   ac_cv_search_opendir=no
13882 fi
13883 rm conftest.$ac_ext
13884 LIBS=$ac_func_search_save_LIBS
13885 fi
13886 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13887 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13888 ac_res=$ac_cv_search_opendir
13889 if test "$ac_res" != no; then
13890   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13891
13892 fi
13893
13894 else
13895   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13896 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13897 if test "${ac_cv_search_opendir+set}" = set; then
13898   echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900   ac_func_search_save_LIBS=$LIBS
13901 cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907
13908 /* Override any GCC internal prototype to avoid an error.
13909    Use char because int might match the return type of a GCC
13910    builtin and then its argument prototype would still apply.  */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 char opendir ();
13915 int
13916 main ()
13917 {
13918 return opendir ();
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 for ac_lib in '' x; do
13924   if test -z "$ac_lib"; then
13925     ac_res="none required"
13926   else
13927     ac_res=-l$ac_lib
13928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13929   fi
13930   rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_link") 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945   { (case "(($ac_try" in
13946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947   *) ac_try_echo=$ac_try;;
13948 esac
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950   (eval "$ac_try") 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; } &&
13954          { ac_try='test -s conftest$ac_exeext'
13955   { (case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960   (eval "$ac_try") 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; }; then
13964   ac_cv_search_opendir=$ac_res
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969
13970 fi
13971
13972 rm -f core conftest.err conftest.$ac_objext \
13973       conftest$ac_exeext
13974   if test "${ac_cv_search_opendir+set}" = set; then
13975   break
13976 fi
13977 done
13978 if test "${ac_cv_search_opendir+set}" = set; then
13979   :
13980 else
13981   ac_cv_search_opendir=no
13982 fi
13983 rm conftest.$ac_ext
13984 LIBS=$ac_func_search_save_LIBS
13985 fi
13986 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13987 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13988 ac_res=$ac_cv_search_opendir
13989 if test "$ac_res" != no; then
13990   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13991
13992 fi
13993
13994 fi
13995
13996 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13997 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13998 if test "${ac_cv_header_mmap_anon+set}" = set; then
13999   echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001    ac_ext=c
14002 ac_cpp='$CPP $CPPFLAGS'
14003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006
14007   cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h.  */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h.  */
14013 #include <sys/mman.h>
14014 #include <unistd.h>
14015 #include <fcntl.h>
14016 int
14017 main ()
14018 {
14019 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031   (eval "$ac_compile") 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } &&
14038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039   { (case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_try") 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; } &&
14048          { ac_try='test -s conftest.$ac_objext'
14049   { (case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054   (eval "$ac_try") 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; }; then
14058   ac_cv_header_mmap_anon=yes
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063         ac_cv_header_mmap_anon=no
14064 fi
14065
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067   ac_ext=c
14068 ac_cpp='$CPP $CPPFLAGS'
14069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14072
14073
14074 fi
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14076 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14077 if test "$ac_cv_header_mmap_anon" = yes; then
14078
14079 cat >>confdefs.h <<\_ACEOF
14080 #define HAVE_MMAP_ANONYMOUS 1
14081 _ACEOF
14082
14083 fi
14084
14085 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14086 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_stat_broken+set}" = set; then
14088   echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090   cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 #include <sys/types.h>
14097 #include <sys/stat.h>
14098
14099 #if defined S_ISBLK && defined S_IFDIR
14100 # if S_ISBLK (S_IFDIR)
14101 You lose.
14102 # endif
14103 #endif
14104
14105 #if defined S_ISBLK && defined S_IFCHR
14106 # if S_ISBLK (S_IFCHR)
14107 You lose.
14108 # endif
14109 #endif
14110
14111 #if defined S_ISLNK && defined S_IFREG
14112 # if S_ISLNK (S_IFREG)
14113 You lose.
14114 # endif
14115 #endif
14116
14117 #if defined S_ISSOCK && defined S_IFREG
14118 # if S_ISSOCK (S_IFREG)
14119 You lose.
14120 # endif
14121 #endif
14122
14123 _ACEOF
14124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14125   $EGREP "You lose" >/dev/null 2>&1; then
14126   ac_cv_header_stat_broken=yes
14127 else
14128   ac_cv_header_stat_broken=no
14129 fi
14130 rm -f conftest*
14131
14132 fi
14133 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14134 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14135 if test $ac_cv_header_stat_broken = yes; then
14136
14137 cat >>confdefs.h <<\_ACEOF
14138 #define STAT_MACROS_BROKEN 1
14139 _ACEOF
14140
14141 fi
14142
14143 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14144 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14146   echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148   cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154 #include <sys/types.h>
14155 #include <sys/wait.h>
14156 #ifndef WEXITSTATUS
14157 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14158 #endif
14159 #ifndef WIFEXITED
14160 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14161 #endif
14162
14163 int
14164 main ()
14165 {
14166   int s;
14167   wait (&s);
14168   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (ac_try="$ac_compile"
14175 case "(($ac_try" in
14176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177   *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180   (eval "$ac_compile") 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } &&
14187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14188   { (case "(($ac_try" in
14189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190   *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193   (eval "$ac_try") 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; } &&
14197          { ac_try='test -s conftest.$ac_objext'
14198   { (case "(($ac_try" in
14199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200   *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203   (eval "$ac_try") 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); }; }; then
14207   ac_cv_header_sys_wait_h=yes
14208 else
14209   echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14211
14212         ac_cv_header_sys_wait_h=no
14213 fi
14214
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 fi
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14218 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14219 if test $ac_cv_header_sys_wait_h = yes; then
14220
14221 cat >>confdefs.h <<\_ACEOF
14222 #define HAVE_SYS_WAIT_H 1
14223 _ACEOF
14224
14225 fi
14226
14227 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14228 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_time+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 #include <sys/types.h>
14239 #include <sys/time.h>
14240 #include <time.h>
14241
14242 int
14243 main ()
14244 {
14245 if ((struct tm *) 0)
14246 return 0;
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 rm -f conftest.$ac_objext
14252 if { (ac_try="$ac_compile"
14253 case "(($ac_try" in
14254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255   *) ac_try_echo=$ac_try;;
14256 esac
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258   (eval "$ac_compile") 2>conftest.er1
14259   ac_status=$?
14260   grep -v '^ *+' conftest.er1 >conftest.err
14261   rm -f conftest.er1
14262   cat conftest.err >&5
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); } &&
14265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14266   { (case "(($ac_try" in
14267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268   *) ac_try_echo=$ac_try;;
14269 esac
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271   (eval "$ac_try") 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; } &&
14275          { ac_try='test -s conftest.$ac_objext'
14276   { (case "(($ac_try" in
14277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278   *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281   (eval "$ac_try") 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; }; then
14285   ac_cv_header_time=yes
14286 else
14287   echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290         ac_cv_header_time=no
14291 fi
14292
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 fi
14295 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14296 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14297 if test $ac_cv_header_time = yes; then
14298
14299 cat >>confdefs.h <<\_ACEOF
14300 #define TIME_WITH_SYS_TIME 1
14301 _ACEOF
14302
14303 fi
14304
14305
14306
14307
14308
14309
14310
14311
14312 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14313 do
14314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14316   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 fi
14321 ac_res=`eval echo '${'$as_ac_Header'}'`
14322                { echo "$as_me:$LINENO: result: $ac_res" >&5
14323 echo "${ECHO_T}$ac_res" >&6; }
14324 else
14325   # Is the header compilable?
14326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14328 cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334 $ac_includes_default
14335 #include <$ac_header>
14336 _ACEOF
14337 rm -f conftest.$ac_objext
14338 if { (ac_try="$ac_compile"
14339 case "(($ac_try" in
14340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341   *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344   (eval "$ac_compile") 2>conftest.er1
14345   ac_status=$?
14346   grep -v '^ *+' conftest.er1 >conftest.err
14347   rm -f conftest.er1
14348   cat conftest.err >&5
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352   { (case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_try") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; } &&
14361          { ac_try='test -s conftest.$ac_objext'
14362   { (case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_try") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   ac_header_compiler=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376         ac_header_compiler=no
14377 fi
14378
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381 echo "${ECHO_T}$ac_header_compiler" >&6; }
14382
14383 # Is the header present?
14384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h.  */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h.  */
14392 #include <$ac_header>
14393 _ACEOF
14394 if { (ac_try="$ac_cpp conftest.$ac_ext"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } >/dev/null; then
14407   if test -s conftest.err; then
14408     ac_cpp_err=$ac_c_preproc_warn_flag
14409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14410   else
14411     ac_cpp_err=
14412   fi
14413 else
14414   ac_cpp_err=yes
14415 fi
14416 if test -z "$ac_cpp_err"; then
14417   ac_header_preproc=yes
14418 else
14419   echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422   ac_header_preproc=no
14423 fi
14424
14425 rm -f conftest.err conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427 echo "${ECHO_T}$ac_header_preproc" >&6; }
14428
14429 # So?  What about this header?
14430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14431   yes:no: )
14432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14436     ac_header_preproc=yes
14437     ;;
14438   no:yes:* )
14439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14451     ( cat <<\_ASBOX
14452 ## ----------------------------------- ##
14453 ## Report this to llvmbugs@cs.uiuc.edu ##
14454 ## ----------------------------------- ##
14455 _ASBOX
14456      ) | sed "s/^/$as_me: WARNING:     /" >&2
14457     ;;
14458 esac
14459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   eval "$as_ac_Header=\$ac_header_preproc"
14465 fi
14466 ac_res=`eval echo '${'$as_ac_Header'}'`
14467                { echo "$as_me:$LINENO: result: $ac_res" >&5
14468 echo "${ECHO_T}$ac_res" >&6; }
14469
14470 fi
14471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472   cat >>confdefs.h <<_ACEOF
14473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474 _ACEOF
14475
14476 fi
14477
14478 done
14479
14480
14481
14482
14483
14484
14485
14486 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14487 do
14488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14493   echo $ECHO_N "(cached) $ECHO_C" >&6
14494 fi
14495 ac_res=`eval echo '${'$as_ac_Header'}'`
14496                { echo "$as_me:$LINENO: result: $ac_res" >&5
14497 echo "${ECHO_T}$ac_res" >&6; }
14498 else
14499   # Is the header compilable?
14500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h.  */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h.  */
14508 $ac_includes_default
14509 #include <$ac_header>
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (ac_try="$ac_compile"
14513 case "(($ac_try" in
14514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515   *) ac_try_echo=$ac_try;;
14516 esac
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518   (eval "$ac_compile") 2>conftest.er1
14519   ac_status=$?
14520   grep -v '^ *+' conftest.er1 >conftest.err
14521   rm -f conftest.er1
14522   cat conftest.err >&5
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); } &&
14525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14526   { (case "(($ac_try" in
14527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528   *) ac_try_echo=$ac_try;;
14529 esac
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531   (eval "$ac_try") 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); }; } &&
14535          { ac_try='test -s conftest.$ac_objext'
14536   { (case "(($ac_try" in
14537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538   *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541   (eval "$ac_try") 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; }; then
14545   ac_header_compiler=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550         ac_header_compiler=no
14551 fi
14552
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14555 echo "${ECHO_T}$ac_header_compiler" >&6; }
14556
14557 # Is the header present?
14558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 #include <$ac_header>
14567 _ACEOF
14568 if { (ac_try="$ac_cpp conftest.$ac_ext"
14569 case "(($ac_try" in
14570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571   *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } >/dev/null; then
14581   if test -s conftest.err; then
14582     ac_cpp_err=$ac_c_preproc_warn_flag
14583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14584   else
14585     ac_cpp_err=
14586   fi
14587 else
14588   ac_cpp_err=yes
14589 fi
14590 if test -z "$ac_cpp_err"; then
14591   ac_header_preproc=yes
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596   ac_header_preproc=no
14597 fi
14598
14599 rm -f conftest.err conftest.$ac_ext
14600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14601 echo "${ECHO_T}$ac_header_preproc" >&6; }
14602
14603 # So?  What about this header?
14604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14605   yes:no: )
14606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14610     ac_header_preproc=yes
14611     ;;
14612   no:yes:* )
14613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14625     ( cat <<\_ASBOX
14626 ## ----------------------------------- ##
14627 ## Report this to llvmbugs@cs.uiuc.edu ##
14628 ## ----------------------------------- ##
14629 _ASBOX
14630      ) | sed "s/^/$as_me: WARNING:     /" >&2
14631     ;;
14632 esac
14633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   eval "$as_ac_Header=\$ac_header_preproc"
14639 fi
14640 ac_res=`eval echo '${'$as_ac_Header'}'`
14641                { echo "$as_me:$LINENO: result: $ac_res" >&5
14642 echo "${ECHO_T}$ac_res" >&6; }
14643
14644 fi
14645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14646   cat >>confdefs.h <<_ACEOF
14647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14648 _ACEOF
14649
14650 fi
14651
14652 done
14653
14654
14655
14656 for ac_header in utime.h windows.h
14657 do
14658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14660   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663   echo $ECHO_N "(cached) $ECHO_C" >&6
14664 fi
14665 ac_res=`eval echo '${'$as_ac_Header'}'`
14666                { echo "$as_me:$LINENO: result: $ac_res" >&5
14667 echo "${ECHO_T}$ac_res" >&6; }
14668 else
14669   # Is the header compilable?
14670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 $ac_includes_default
14679 #include <$ac_header>
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (ac_try="$ac_compile"
14683 case "(($ac_try" in
14684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685   *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688   (eval "$ac_compile") 2>conftest.er1
14689   ac_status=$?
14690   grep -v '^ *+' conftest.er1 >conftest.err
14691   rm -f conftest.er1
14692   cat conftest.err >&5
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } &&
14695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696   { (case "(($ac_try" in
14697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698   *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701   (eval "$ac_try") 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; } &&
14705          { ac_try='test -s conftest.$ac_objext'
14706   { (case "(($ac_try" in
14707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708   *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711   (eval "$ac_try") 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; }; then
14715   ac_header_compiler=yes
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720         ac_header_compiler=no
14721 fi
14722
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6; }
14726
14727 # Is the header present?
14728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h.  */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h.  */
14736 #include <$ac_header>
14737 _ACEOF
14738 if { (ac_try="$ac_cpp conftest.$ac_ext"
14739 case "(($ac_try" in
14740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741   *) ac_try_echo=$ac_try;;
14742 esac
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14745   ac_status=$?
14746   grep -v '^ *+' conftest.er1 >conftest.err
14747   rm -f conftest.er1
14748   cat conftest.err >&5
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); } >/dev/null; then
14751   if test -s conftest.err; then
14752     ac_cpp_err=$ac_c_preproc_warn_flag
14753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14754   else
14755     ac_cpp_err=
14756   fi
14757 else
14758   ac_cpp_err=yes
14759 fi
14760 if test -z "$ac_cpp_err"; then
14761   ac_header_preproc=yes
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766   ac_header_preproc=no
14767 fi
14768
14769 rm -f conftest.err conftest.$ac_ext
14770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14771 echo "${ECHO_T}$ac_header_preproc" >&6; }
14772
14773 # So?  What about this header?
14774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14775   yes:no: )
14776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14780     ac_header_preproc=yes
14781     ;;
14782   no:yes:* )
14783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14795     ( cat <<\_ASBOX
14796 ## ----------------------------------- ##
14797 ## Report this to llvmbugs@cs.uiuc.edu ##
14798 ## ----------------------------------- ##
14799 _ASBOX
14800      ) | sed "s/^/$as_me: WARNING:     /" >&2
14801     ;;
14802 esac
14803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14806   echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808   eval "$as_ac_Header=\$ac_header_preproc"
14809 fi
14810 ac_res=`eval echo '${'$as_ac_Header'}'`
14811                { echo "$as_me:$LINENO: result: $ac_res" >&5
14812 echo "${ECHO_T}$ac_res" >&6; }
14813
14814 fi
14815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14816   cat >>confdefs.h <<_ACEOF
14817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14818 _ACEOF
14819
14820 fi
14821
14822 done
14823
14824
14825
14826
14827
14828
14829 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14830 do
14831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 fi
14838 ac_res=`eval echo '${'$as_ac_Header'}'`
14839                { echo "$as_me:$LINENO: result: $ac_res" >&5
14840 echo "${ECHO_T}$ac_res" >&6; }
14841 else
14842   # Is the header compilable?
14843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h.  */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h.  */
14851 $ac_includes_default
14852 #include <$ac_header>
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (ac_try="$ac_compile"
14856 case "(($ac_try" in
14857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858   *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861   (eval "$ac_compile") 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869   { (case "(($ac_try" in
14870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871   *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874   (eval "$ac_try") 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; } &&
14878          { ac_try='test -s conftest.$ac_objext'
14879   { (case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_try") 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   ac_header_compiler=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893         ac_header_compiler=no
14894 fi
14895
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14899
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h.  */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h.  */
14909 #include <$ac_header>
14910 _ACEOF
14911 if { (ac_try="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914   *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14918   ac_status=$?
14919   grep -v '^ *+' conftest.er1 >conftest.err
14920   rm -f conftest.er1
14921   cat conftest.err >&5
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } >/dev/null; then
14924   if test -s conftest.err; then
14925     ac_cpp_err=$ac_c_preproc_warn_flag
14926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14927   else
14928     ac_cpp_err=
14929   fi
14930 else
14931   ac_cpp_err=yes
14932 fi
14933 if test -z "$ac_cpp_err"; then
14934   ac_header_preproc=yes
14935 else
14936   echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939   ac_header_preproc=no
14940 fi
14941
14942 rm -f conftest.err conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14944 echo "${ECHO_T}$ac_header_preproc" >&6; }
14945
14946 # So?  What about this header?
14947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14948   yes:no: )
14949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14953     ac_header_preproc=yes
14954     ;;
14955   no:yes:* )
14956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14968     ( cat <<\_ASBOX
14969 ## ----------------------------------- ##
14970 ## Report this to llvmbugs@cs.uiuc.edu ##
14971 ## ----------------------------------- ##
14972 _ASBOX
14973      ) | sed "s/^/$as_me: WARNING:     /" >&2
14974     ;;
14975 esac
14976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14979   echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981   eval "$as_ac_Header=\$ac_header_preproc"
14982 fi
14983 ac_res=`eval echo '${'$as_ac_Header'}'`
14984                { echo "$as_me:$LINENO: result: $ac_res" >&5
14985 echo "${ECHO_T}$ac_res" >&6; }
14986
14987 fi
14988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14989   cat >>confdefs.h <<_ACEOF
14990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14991 _ACEOF
14992
14993 fi
14994
14995 done
14996
14997
14998
14999
15000
15001 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15002 do
15003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008   echo $ECHO_N "(cached) $ECHO_C" >&6
15009 fi
15010 ac_res=`eval echo '${'$as_ac_Header'}'`
15011                { echo "$as_me:$LINENO: result: $ac_res" >&5
15012 echo "${ECHO_T}$ac_res" >&6; }
15013 else
15014   # Is the header compilable?
15015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023 $ac_includes_default
15024 #include <$ac_header>
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_compile") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } &&
15040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15041   { (case "(($ac_try" in
15042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043   *) ac_try_echo=$ac_try;;
15044 esac
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046   (eval "$ac_try") 2>&5
15047   ac_status=$?
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); }; } &&
15050          { ac_try='test -s conftest.$ac_objext'
15051   { (case "(($ac_try" in
15052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053   *) ac_try_echo=$ac_try;;
15054 esac
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056   (eval "$ac_try") 2>&5
15057   ac_status=$?
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); }; }; then
15060   ac_header_compiler=yes
15061 else
15062   echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15064
15065         ac_header_compiler=no
15066 fi
15067
15068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15070 echo "${ECHO_T}$ac_header_compiler" >&6; }
15071
15072 # Is the header present?
15073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081 #include <$ac_header>
15082 _ACEOF
15083 if { (ac_try="$ac_cpp conftest.$ac_ext"
15084 case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } >/dev/null; then
15096   if test -s conftest.err; then
15097     ac_cpp_err=$ac_c_preproc_warn_flag
15098     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15099   else
15100     ac_cpp_err=
15101   fi
15102 else
15103   ac_cpp_err=yes
15104 fi
15105 if test -z "$ac_cpp_err"; then
15106   ac_header_preproc=yes
15107 else
15108   echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15110
15111   ac_header_preproc=no
15112 fi
15113
15114 rm -f conftest.err conftest.$ac_ext
15115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15117
15118 # So?  What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120   yes:no: )
15121     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15125     ac_header_preproc=yes
15126     ;;
15127   no:yes:* )
15128     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15130     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15132     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15134     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15138     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15140     ( cat <<\_ASBOX
15141 ## ----------------------------------- ##
15142 ## Report this to llvmbugs@cs.uiuc.edu ##
15143 ## ----------------------------------- ##
15144 _ASBOX
15145      ) | sed "s/^/$as_me: WARNING:     /" >&2
15146     ;;
15147 esac
15148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153   eval "$as_ac_Header=\$ac_header_preproc"
15154 fi
15155 ac_res=`eval echo '${'$as_ac_Header'}'`
15156                { echo "$as_me:$LINENO: result: $ac_res" >&5
15157 echo "${ECHO_T}$ac_res" >&6; }
15158
15159 fi
15160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15161   cat >>confdefs.h <<_ACEOF
15162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15163 _ACEOF
15164
15165 fi
15166
15167 done
15168
15169
15170 for ac_header in valgrind/valgrind.h
15171 do
15172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177   echo $ECHO_N "(cached) $ECHO_C" >&6
15178 fi
15179 ac_res=`eval echo '${'$as_ac_Header'}'`
15180                { echo "$as_me:$LINENO: result: $ac_res" >&5
15181 echo "${ECHO_T}$ac_res" >&6; }
15182 else
15183   # Is the header compilable?
15184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 $ac_includes_default
15193 #include <$ac_header>
15194 _ACEOF
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199   *) ac_try_echo=$ac_try;;
15200 esac
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202   (eval "$ac_compile") 2>conftest.er1
15203   ac_status=$?
15204   grep -v '^ *+' conftest.er1 >conftest.err
15205   rm -f conftest.er1
15206   cat conftest.err >&5
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } &&
15209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15210   { (case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_try") 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; } &&
15219          { ac_try='test -s conftest.$ac_objext'
15220   { (case "(($ac_try" in
15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222   *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225   (eval "$ac_try") 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); }; }; then
15229   ac_header_compiler=yes
15230 else
15231   echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15233
15234         ac_header_compiler=no
15235 fi
15236
15237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15239 echo "${ECHO_T}$ac_header_compiler" >&6; }
15240
15241 # Is the header present?
15242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250 #include <$ac_header>
15251 _ACEOF
15252 if { (ac_try="$ac_cpp conftest.$ac_ext"
15253 case "(($ac_try" in
15254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255   *) ac_try_echo=$ac_try;;
15256 esac
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15259   ac_status=$?
15260   grep -v '^ *+' conftest.er1 >conftest.err
15261   rm -f conftest.er1
15262   cat conftest.err >&5
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); } >/dev/null; then
15265   if test -s conftest.err; then
15266     ac_cpp_err=$ac_c_preproc_warn_flag
15267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15268   else
15269     ac_cpp_err=
15270   fi
15271 else
15272   ac_cpp_err=yes
15273 fi
15274 if test -z "$ac_cpp_err"; then
15275   ac_header_preproc=yes
15276 else
15277   echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280   ac_header_preproc=no
15281 fi
15282
15283 rm -f conftest.err conftest.$ac_ext
15284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15285 echo "${ECHO_T}$ac_header_preproc" >&6; }
15286
15287 # So?  What about this header?
15288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15289   yes:no: )
15290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15294     ac_header_preproc=yes
15295     ;;
15296   no:yes:* )
15297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15309     ( cat <<\_ASBOX
15310 ## ----------------------------------- ##
15311 ## Report this to llvmbugs@cs.uiuc.edu ##
15312 ## ----------------------------------- ##
15313 _ASBOX
15314      ) | sed "s/^/$as_me: WARNING:     /" >&2
15315     ;;
15316 esac
15317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15320   echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322   eval "$as_ac_Header=\$ac_header_preproc"
15323 fi
15324 ac_res=`eval echo '${'$as_ac_Header'}'`
15325                { echo "$as_me:$LINENO: result: $ac_res" >&5
15326 echo "${ECHO_T}$ac_res" >&6; }
15327
15328 fi
15329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15330   cat >>confdefs.h <<_ACEOF
15331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15332 _ACEOF
15333
15334 fi
15335
15336 done
15337
15338
15339 for ac_header in fenv.h
15340 do
15341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 fi
15348 ac_res=`eval echo '${'$as_ac_Header'}'`
15349                { echo "$as_me:$LINENO: result: $ac_res" >&5
15350 echo "${ECHO_T}$ac_res" >&6; }
15351 else
15352   # Is the header compilable?
15353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 $ac_includes_default
15362 #include <$ac_header>
15363 _ACEOF
15364 rm -f conftest.$ac_objext
15365 if { (ac_try="$ac_compile"
15366 case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371   (eval "$ac_compile") 2>conftest.er1
15372   ac_status=$?
15373   grep -v '^ *+' conftest.er1 >conftest.err
15374   rm -f conftest.er1
15375   cat conftest.err >&5
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379   { (case "(($ac_try" in
15380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381   *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384   (eval "$ac_try") 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; } &&
15388          { ac_try='test -s conftest.$ac_objext'
15389   { (case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_try") 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; }; then
15398   ac_header_compiler=yes
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403         ac_header_compiler=no
15404 fi
15405
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15408 echo "${ECHO_T}$ac_header_compiler" >&6; }
15409
15410 # Is the header present?
15411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h.  */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h.  */
15419 #include <$ac_header>
15420 _ACEOF
15421 if { (ac_try="$ac_cpp conftest.$ac_ext"
15422 case "(($ac_try" in
15423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424   *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15428   ac_status=$?
15429   grep -v '^ *+' conftest.er1 >conftest.err
15430   rm -f conftest.er1
15431   cat conftest.err >&5
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } >/dev/null; then
15434   if test -s conftest.err; then
15435     ac_cpp_err=$ac_c_preproc_warn_flag
15436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15437   else
15438     ac_cpp_err=
15439   fi
15440 else
15441   ac_cpp_err=yes
15442 fi
15443 if test -z "$ac_cpp_err"; then
15444   ac_header_preproc=yes
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449   ac_header_preproc=no
15450 fi
15451
15452 rm -f conftest.err conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454 echo "${ECHO_T}$ac_header_preproc" >&6; }
15455
15456 # So?  What about this header?
15457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15458   yes:no: )
15459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463     ac_header_preproc=yes
15464     ;;
15465   no:yes:* )
15466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15478     ( cat <<\_ASBOX
15479 ## ----------------------------------- ##
15480 ## Report this to llvmbugs@cs.uiuc.edu ##
15481 ## ----------------------------------- ##
15482 _ASBOX
15483      ) | sed "s/^/$as_me: WARNING:     /" >&2
15484     ;;
15485 esac
15486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489   echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491   eval "$as_ac_Header=\$ac_header_preproc"
15492 fi
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494                { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15496
15497 fi
15498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15499   cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501 _ACEOF
15502
15503 fi
15504
15505 done
15506
15507 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15508
15509 for ac_header in pthread.h
15510 do
15511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15513   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516   echo $ECHO_N "(cached) $ECHO_C" >&6
15517 fi
15518 ac_res=`eval echo '${'$as_ac_Header'}'`
15519                { echo "$as_me:$LINENO: result: $ac_res" >&5
15520 echo "${ECHO_T}$ac_res" >&6; }
15521 else
15522   # Is the header compilable?
15523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 $ac_includes_default
15532 #include <$ac_header>
15533 _ACEOF
15534 rm -f conftest.$ac_objext
15535 if { (ac_try="$ac_compile"
15536 case "(($ac_try" in
15537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538   *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541   (eval "$ac_compile") 2>conftest.er1
15542   ac_status=$?
15543   grep -v '^ *+' conftest.er1 >conftest.err
15544   rm -f conftest.er1
15545   cat conftest.err >&5
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } &&
15548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549   { (case "(($ac_try" in
15550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551   *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554   (eval "$ac_try") 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; } &&
15558          { ac_try='test -s conftest.$ac_objext'
15559   { (case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_try") 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; }; then
15568   ac_header_compiler=yes
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573         ac_header_compiler=no
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15578 echo "${ECHO_T}$ac_header_compiler" >&6; }
15579
15580 # Is the header present?
15581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15583 cat >conftest.$ac_ext <<_ACEOF
15584 /* confdefs.h.  */
15585 _ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h.  */
15589 #include <$ac_header>
15590 _ACEOF
15591 if { (ac_try="$ac_cpp conftest.$ac_ext"
15592 case "(($ac_try" in
15593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594   *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15598   ac_status=$?
15599   grep -v '^ *+' conftest.er1 >conftest.err
15600   rm -f conftest.er1
15601   cat conftest.err >&5
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); } >/dev/null; then
15604   if test -s conftest.err; then
15605     ac_cpp_err=$ac_c_preproc_warn_flag
15606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15607   else
15608     ac_cpp_err=
15609   fi
15610 else
15611   ac_cpp_err=yes
15612 fi
15613 if test -z "$ac_cpp_err"; then
15614   ac_header_preproc=yes
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619   ac_header_preproc=no
15620 fi
15621
15622 rm -f conftest.err conftest.$ac_ext
15623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15624 echo "${ECHO_T}$ac_header_preproc" >&6; }
15625
15626 # So?  What about this header?
15627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15628   yes:no: )
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15633     ac_header_preproc=yes
15634     ;;
15635   no:yes:* )
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15648     ( cat <<\_ASBOX
15649 ## ----------------------------------- ##
15650 ## Report this to llvmbugs@cs.uiuc.edu ##
15651 ## ----------------------------------- ##
15652 _ASBOX
15653      ) | sed "s/^/$as_me: WARNING:     /" >&2
15654     ;;
15655 esac
15656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659   echo $ECHO_N "(cached) $ECHO_C" >&6
15660 else
15661   eval "$as_ac_Header=\$ac_header_preproc"
15662 fi
15663 ac_res=`eval echo '${'$as_ac_Header'}'`
15664                { echo "$as_me:$LINENO: result: $ac_res" >&5
15665 echo "${ECHO_T}$ac_res" >&6; }
15666
15667 fi
15668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15669   cat >>confdefs.h <<_ACEOF
15670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15671 _ACEOF
15672  HAVE_PTHREAD=1
15673
15674 else
15675   HAVE_PTHREAD=0
15676
15677 fi
15678
15679 done
15680
15681 else
15682   HAVE_PTHREAD=0
15683
15684 fi
15685
15686 if test "$llvm_cv_enable_libffi" = "yes" ; then
15687
15688
15689 for ac_header in ffi.h ffi/ffi.h
15690 do
15691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 fi
15698 ac_res=`eval echo '${'$as_ac_Header'}'`
15699                { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15701 else
15702   # Is the header compilable?
15703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711 $ac_includes_default
15712 #include <$ac_header>
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721   (eval "$ac_compile") 2>conftest.er1
15722   ac_status=$?
15723   grep -v '^ *+' conftest.er1 >conftest.err
15724   rm -f conftest.er1
15725   cat conftest.err >&5
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } &&
15728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729   { (case "(($ac_try" in
15730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731   *) ac_try_echo=$ac_try;;
15732 esac
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734   (eval "$ac_try") 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (case "(($ac_try" in
15740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741   *) ac_try_echo=$ac_try;;
15742 esac
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744   (eval "$ac_try") 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); }; }; then
15748   ac_header_compiler=yes
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753         ac_header_compiler=no
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6; }
15759
15760 # Is the header present?
15761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769 #include <$ac_header>
15770 _ACEOF
15771 if { (ac_try="$ac_cpp conftest.$ac_ext"
15772 case "(($ac_try" in
15773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774   *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15778   ac_status=$?
15779   grep -v '^ *+' conftest.er1 >conftest.err
15780   rm -f conftest.er1
15781   cat conftest.err >&5
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } >/dev/null; then
15784   if test -s conftest.err; then
15785     ac_cpp_err=$ac_c_preproc_warn_flag
15786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15787   else
15788     ac_cpp_err=
15789   fi
15790 else
15791   ac_cpp_err=yes
15792 fi
15793 if test -z "$ac_cpp_err"; then
15794   ac_header_preproc=yes
15795 else
15796   echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15798
15799   ac_header_preproc=no
15800 fi
15801
15802 rm -f conftest.err conftest.$ac_ext
15803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15804 echo "${ECHO_T}$ac_header_preproc" >&6; }
15805
15806 # So?  What about this header?
15807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15808   yes:no: )
15809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15813     ac_header_preproc=yes
15814     ;;
15815   no:yes:* )
15816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15828     ( cat <<\_ASBOX
15829 ## ----------------------------------- ##
15830 ## Report this to llvmbugs@cs.uiuc.edu ##
15831 ## ----------------------------------- ##
15832 _ASBOX
15833      ) | sed "s/^/$as_me: WARNING:     /" >&2
15834     ;;
15835 esac
15836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839   echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841   eval "$as_ac_Header=\$ac_header_preproc"
15842 fi
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844                { echo "$as_me:$LINENO: result: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15846
15847 fi
15848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15849   cat >>confdefs.h <<_ACEOF
15850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15851 _ACEOF
15852
15853 fi
15854
15855 done
15856
15857 fi
15858
15859
15860 for ac_header in CrashReporterClient.h
15861 do
15862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 fi
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870                { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15872 else
15873   # Is the header compilable?
15874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 $ac_includes_default
15883 #include <$ac_header>
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_compile") 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900   { (case "(($ac_try" in
15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902   *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905   (eval "$ac_try") 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; } &&
15909          { ac_try='test -s conftest.$ac_objext'
15910   { (case "(($ac_try" in
15911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912   *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915   (eval "$ac_try") 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; }; then
15919   ac_header_compiler=yes
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924         ac_header_compiler=no
15925 fi
15926
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6; }
15930
15931 # Is the header present?
15932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h.  */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h.  */
15940 #include <$ac_header>
15941 _ACEOF
15942 if { (ac_try="$ac_cpp conftest.$ac_ext"
15943 case "(($ac_try" in
15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945   *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15949   ac_status=$?
15950   grep -v '^ *+' conftest.er1 >conftest.err
15951   rm -f conftest.er1
15952   cat conftest.err >&5
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); } >/dev/null; then
15955   if test -s conftest.err; then
15956     ac_cpp_err=$ac_c_preproc_warn_flag
15957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15958   else
15959     ac_cpp_err=
15960   fi
15961 else
15962   ac_cpp_err=yes
15963 fi
15964 if test -z "$ac_cpp_err"; then
15965   ac_header_preproc=yes
15966 else
15967   echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15969
15970   ac_header_preproc=no
15971 fi
15972
15973 rm -f conftest.err conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975 echo "${ECHO_T}$ac_header_preproc" >&6; }
15976
15977 # So?  What about this header?
15978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15979   yes:no: )
15980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984     ac_header_preproc=yes
15985     ;;
15986   no:yes:* )
15987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15999     ( cat <<\_ASBOX
16000 ## ----------------------------------- ##
16001 ## Report this to llvmbugs@cs.uiuc.edu ##
16002 ## ----------------------------------- ##
16003 _ASBOX
16004      ) | sed "s/^/$as_me: WARNING:     /" >&2
16005     ;;
16006 esac
16007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010   echo $ECHO_N "(cached) $ECHO_C" >&6
16011 else
16012   eval "$as_ac_Header=\$ac_header_preproc"
16013 fi
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015                { echo "$as_me:$LINENO: result: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16017
16018 fi
16019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020   cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022 _ACEOF
16023
16024 fi
16025
16026 done
16027
16028
16029 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16030 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 extern const char *__crashreporter_info__;
16038       int main() {
16039         __crashreporter_info__ = "test";
16040         return 0;
16041       }
16042
16043 _ACEOF
16044 rm -f conftest.$ac_objext conftest$ac_exeext
16045 if { (ac_try="$ac_link"
16046 case "(($ac_try" in
16047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048   *) ac_try_echo=$ac_try;;
16049 esac
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051   (eval "$ac_link") 2>conftest.er1
16052   ac_status=$?
16053   grep -v '^ *+' conftest.er1 >conftest.err
16054   rm -f conftest.er1
16055   cat conftest.err >&5
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } &&
16058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16059   { (case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_try") 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; } &&
16068          { ac_try='test -s conftest$ac_exeext'
16069   { (case "(($ac_try" in
16070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071   *) ac_try_echo=$ac_try;;
16072 esac
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074   (eval "$ac_try") 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); }; }; then
16078   { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16080
16081 cat >>confdefs.h <<\_ACEOF
16082 #define HAVE_CRASHREPORTER_INFO 1
16083 _ACEOF
16084
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089         { echo "$as_me:$LINENO: result: no" >&5
16090 echo "${ECHO_T}no" >&6; }
16091
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_CRASHREPORTER_INFO 0
16094 _ACEOF
16095
16096 fi
16097
16098 rm -f core conftest.err conftest.$ac_objext \
16099       conftest$ac_exeext conftest.$ac_ext
16100
16101
16102
16103
16104   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16105 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16106 if test "${ac_cv_huge_val_sanity+set}" = set; then
16107   echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109
16110     ac_ext=cpp
16111 ac_cpp='$CXXCPP $CPPFLAGS'
16112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16115
16116     ac_save_CXXFLAGS=$CXXFLAGS
16117     CXXFLAGS=-pedantic
16118     if test "$cross_compiling" = yes; then
16119   ac_cv_huge_val_sanity=yes
16120 else
16121   cat >conftest.$ac_ext <<_ACEOF
16122 /* confdefs.h.  */
16123 _ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h.  */
16127 #include <math.h>
16128 int
16129 main ()
16130 {
16131 double x = HUGE_VAL; return x != x;
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140   *) ac_try_echo=$ac_try;;
16141 esac
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143   (eval "$ac_link") 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16147   { (case "(($ac_try" in
16148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149   *) ac_try_echo=$ac_try;;
16150 esac
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152   (eval "$ac_try") 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; }; then
16156   ac_cv_huge_val_sanity=yes
16157 else
16158   echo "$as_me: program exited with status $ac_status" >&5
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162 ( exit $ac_status )
16163 ac_cv_huge_val_sanity=no
16164 fi
16165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16166 fi
16167
16168
16169     CXXFLAGS=$ac_save_CXXFLAGS
16170     ac_ext=c
16171 ac_cpp='$CPP $CPPFLAGS'
16172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16175
16176
16177 fi
16178 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16179 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16180   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16181
16182
16183 { echo "$as_me:$LINENO: checking for pid_t" >&5
16184 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16185 if test "${ac_cv_type_pid_t+set}" = set; then
16186   echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188   cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h.  */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h.  */
16194 $ac_includes_default
16195 typedef pid_t ac__type_new_;
16196 int
16197 main ()
16198 {
16199 if ((ac__type_new_ *) 0)
16200   return 0;
16201 if (sizeof (ac__type_new_))
16202   return 0;
16203   ;
16204   return 0;
16205 }
16206 _ACEOF
16207 rm -f conftest.$ac_objext
16208 if { (ac_try="$ac_compile"
16209 case "(($ac_try" in
16210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211   *) ac_try_echo=$ac_try;;
16212 esac
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214   (eval "$ac_compile") 2>conftest.er1
16215   ac_status=$?
16216   grep -v '^ *+' conftest.er1 >conftest.err
16217   rm -f conftest.er1
16218   cat conftest.err >&5
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); } &&
16221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222   { (case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_try") 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; } &&
16231          { ac_try='test -s conftest.$ac_objext'
16232   { (case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_try") 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); }; }; then
16241   ac_cv_type_pid_t=yes
16242 else
16243   echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246         ac_cv_type_pid_t=no
16247 fi
16248
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 fi
16251 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16252 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16253 if test $ac_cv_type_pid_t = yes; then
16254   :
16255 else
16256
16257 cat >>confdefs.h <<_ACEOF
16258 #define pid_t int
16259 _ACEOF
16260
16261 fi
16262
16263 { echo "$as_me:$LINENO: checking for size_t" >&5
16264 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16265 if test "${ac_cv_type_size_t+set}" = set; then
16266   echo $ECHO_N "(cached) $ECHO_C" >&6
16267 else
16268   cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h.  */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h.  */
16274 $ac_includes_default
16275 typedef size_t ac__type_new_;
16276 int
16277 main ()
16278 {
16279 if ((ac__type_new_ *) 0)
16280   return 0;
16281 if (sizeof (ac__type_new_))
16282   return 0;
16283   ;
16284   return 0;
16285 }
16286 _ACEOF
16287 rm -f conftest.$ac_objext
16288 if { (ac_try="$ac_compile"
16289 case "(($ac_try" in
16290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291   *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294   (eval "$ac_compile") 2>conftest.er1
16295   ac_status=$?
16296   grep -v '^ *+' conftest.er1 >conftest.err
16297   rm -f conftest.er1
16298   cat conftest.err >&5
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); } &&
16301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302   { (case "(($ac_try" in
16303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304   *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307   (eval "$ac_try") 2>&5
16308   ac_status=$?
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); }; } &&
16311          { ac_try='test -s conftest.$ac_objext'
16312   { (case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_try") 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; }; then
16321   ac_cv_type_size_t=yes
16322 else
16323   echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326         ac_cv_type_size_t=no
16327 fi
16328
16329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 fi
16331 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16332 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16333 if test $ac_cv_type_size_t = yes; then
16334   :
16335 else
16336
16337 cat >>confdefs.h <<_ACEOF
16338 #define size_t unsigned int
16339 _ACEOF
16340
16341 fi
16342
16343
16344 cat >>confdefs.h <<_ACEOF
16345 #define RETSIGTYPE void
16346 _ACEOF
16347
16348 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16349 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16350 if test "${ac_cv_struct_tm+set}" = set; then
16351   echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353   cat >conftest.$ac_ext <<_ACEOF
16354 /* confdefs.h.  */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h.  */
16359 #include <sys/types.h>
16360 #include <time.h>
16361
16362 int
16363 main ()
16364 {
16365 struct tm *tp; tp->tm_sec;
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_compile") 2>conftest.er1
16378   ac_status=$?
16379   grep -v '^ *+' conftest.er1 >conftest.err
16380   rm -f conftest.er1
16381   cat conftest.err >&5
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); } &&
16384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385   { (case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_try") 2>&5
16391   ac_status=$?
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); }; } &&
16394          { ac_try='test -s conftest.$ac_objext'
16395   { (case "(($ac_try" in
16396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397   *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400   (eval "$ac_try") 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); }; }; then
16404   ac_cv_struct_tm=time.h
16405 else
16406   echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16408
16409         ac_cv_struct_tm=sys/time.h
16410 fi
16411
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 fi
16414 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16415 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16416 if test $ac_cv_struct_tm = sys/time.h; then
16417
16418 cat >>confdefs.h <<\_ACEOF
16419 #define TM_IN_SYS_TIME 1
16420 _ACEOF
16421
16422 fi
16423
16424 { echo "$as_me:$LINENO: checking for int64_t" >&5
16425 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16426 if test "${ac_cv_type_int64_t+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h.  */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h.  */
16435 $ac_includes_default
16436 typedef int64_t ac__type_new_;
16437 int
16438 main ()
16439 {
16440 if ((ac__type_new_ *) 0)
16441   return 0;
16442 if (sizeof (ac__type_new_))
16443   return 0;
16444   ;
16445   return 0;
16446 }
16447 _ACEOF
16448 rm -f conftest.$ac_objext
16449 if { (ac_try="$ac_compile"
16450 case "(($ac_try" in
16451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452   *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455   (eval "$ac_compile") 2>conftest.er1
16456   ac_status=$?
16457   grep -v '^ *+' conftest.er1 >conftest.err
16458   rm -f conftest.er1
16459   cat conftest.err >&5
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); } &&
16462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463   { (case "(($ac_try" in
16464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465   *) ac_try_echo=$ac_try;;
16466 esac
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468   (eval "$ac_try") 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); }; } &&
16472          { ac_try='test -s conftest.$ac_objext'
16473   { (case "(($ac_try" in
16474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475   *) ac_try_echo=$ac_try;;
16476 esac
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478   (eval "$ac_try") 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); }; }; then
16482   ac_cv_type_int64_t=yes
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487         ac_cv_type_int64_t=no
16488 fi
16489
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491 fi
16492 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16493 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16494 if test $ac_cv_type_int64_t = yes; then
16495
16496 cat >>confdefs.h <<_ACEOF
16497 #define HAVE_INT64_T 1
16498 _ACEOF
16499
16500
16501 else
16502   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16503 echo "$as_me: error: Type int64_t required but not found" >&2;}
16504    { (exit 1); exit 1; }; }
16505 fi
16506
16507 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16508 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16509 if test "${ac_cv_type_uint64_t+set}" = set; then
16510   echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512   cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519 typedef uint64_t ac__type_new_;
16520 int
16521 main ()
16522 {
16523 if ((ac__type_new_ *) 0)
16524   return 0;
16525 if (sizeof (ac__type_new_))
16526   return 0;
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 rm -f conftest.$ac_objext
16532 if { (ac_try="$ac_compile"
16533 case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538   (eval "$ac_compile") 2>conftest.er1
16539   ac_status=$?
16540   grep -v '^ *+' conftest.er1 >conftest.err
16541   rm -f conftest.er1
16542   cat conftest.err >&5
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); } &&
16545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546   { (case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_try") 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; } &&
16555          { ac_try='test -s conftest.$ac_objext'
16556   { (case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_try") 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; }; then
16565   ac_cv_type_uint64_t=yes
16566 else
16567   echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16569
16570         ac_cv_type_uint64_t=no
16571 fi
16572
16573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16574 fi
16575 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16576 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16577 if test $ac_cv_type_uint64_t = yes; then
16578
16579 cat >>confdefs.h <<_ACEOF
16580 #define HAVE_UINT64_T 1
16581 _ACEOF
16582
16583
16584 else
16585   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16586 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16587 if test "${ac_cv_type_u_int64_t+set}" = set; then
16588   echo $ECHO_N "(cached) $ECHO_C" >&6
16589 else
16590   cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h.  */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h.  */
16596 $ac_includes_default
16597 typedef u_int64_t ac__type_new_;
16598 int
16599 main ()
16600 {
16601 if ((ac__type_new_ *) 0)
16602   return 0;
16603 if (sizeof (ac__type_new_))
16604   return 0;
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_compile") 2>conftest.er1
16617   ac_status=$?
16618   grep -v '^ *+' conftest.er1 >conftest.err
16619   rm -f conftest.er1
16620   cat conftest.err >&5
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); } &&
16623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624   { (case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_try") 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; } &&
16633          { ac_try='test -s conftest.$ac_objext'
16634   { (case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_try") 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; }; then
16643   ac_cv_type_u_int64_t=yes
16644 else
16645   echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648         ac_cv_type_u_int64_t=no
16649 fi
16650
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 fi
16653 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16654 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16655 if test $ac_cv_type_u_int64_t = yes; then
16656
16657 cat >>confdefs.h <<_ACEOF
16658 #define HAVE_U_INT64_T 1
16659 _ACEOF
16660
16661
16662 else
16663   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16664 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16665    { (exit 1); exit 1; }; }
16666 fi
16667
16668 fi
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16680 do
16681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16695 #define $ac_func innocuous_$ac_func
16696
16697 /* System header to define __stub macros and hopefully few prototypes,
16698     which can conflict with char $ac_func (); below.
16699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700     <limits.h> exists even on freestanding compilers.  */
16701
16702 #ifdef __STDC__
16703 # include <limits.h>
16704 #else
16705 # include <assert.h>
16706 #endif
16707
16708 #undef $ac_func
16709
16710 /* Override any GCC internal prototype to avoid an error.
16711    Use char because int might match the return type of a GCC
16712    builtin and then its argument prototype would still apply.  */
16713 #ifdef __cplusplus
16714 extern "C"
16715 #endif
16716 char $ac_func ();
16717 /* The GNU C library defines this for functions which it implements
16718     to always fail with ENOSYS.  Some functions are actually named
16719     something starting with __ and the normal name is an alias.  */
16720 #if defined __stub_$ac_func || defined __stub___$ac_func
16721 choke me
16722 #endif
16723
16724 int
16725 main ()
16726 {
16727 return $ac_func ();
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736   *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739   (eval "$ac_link") 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } &&
16746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747   { (case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_try") 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; } &&
16756          { ac_try='test -s conftest$ac_exeext'
16757   { (case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_try") 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; }; then
16766   eval "$as_ac_var=yes"
16767 else
16768   echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16770
16771         eval "$as_ac_var=no"
16772 fi
16773
16774 rm -f core conftest.err conftest.$ac_objext \
16775       conftest$ac_exeext conftest.$ac_ext
16776 fi
16777 ac_res=`eval echo '${'$as_ac_var'}'`
16778                { echo "$as_me:$LINENO: result: $ac_res" >&5
16779 echo "${ECHO_T}$ac_res" >&6; }
16780 if test `eval echo '${'$as_ac_var'}'` = yes; then
16781   cat >>confdefs.h <<_ACEOF
16782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16783 _ACEOF
16784
16785 fi
16786 done
16787
16788
16789
16790
16791
16792 for ac_func in powf fmodf strtof round
16793 do
16794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800   cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h.  */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h.  */
16806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16808 #define $ac_func innocuous_$ac_func
16809
16810 /* System header to define __stub macros and hopefully few prototypes,
16811     which can conflict with char $ac_func (); below.
16812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16813     <limits.h> exists even on freestanding compilers.  */
16814
16815 #ifdef __STDC__
16816 # include <limits.h>
16817 #else
16818 # include <assert.h>
16819 #endif
16820
16821 #undef $ac_func
16822
16823 /* Override any GCC internal prototype to avoid an error.
16824    Use char because int might match the return type of a GCC
16825    builtin and then its argument prototype would still apply.  */
16826 #ifdef __cplusplus
16827 extern "C"
16828 #endif
16829 char $ac_func ();
16830 /* The GNU C library defines this for functions which it implements
16831     to always fail with ENOSYS.  Some functions are actually named
16832     something starting with __ and the normal name is an alias.  */
16833 #if defined __stub_$ac_func || defined __stub___$ac_func
16834 choke me
16835 #endif
16836
16837 int
16838 main ()
16839 {
16840 return $ac_func ();
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (ac_try="$ac_link"
16847 case "(($ac_try" in
16848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849   *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852   (eval "$ac_link") 2>conftest.er1
16853   ac_status=$?
16854   grep -v '^ *+' conftest.er1 >conftest.err
16855   rm -f conftest.er1
16856   cat conftest.err >&5
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } &&
16859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860   { (case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_try") 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); }; } &&
16869          { ac_try='test -s conftest$ac_exeext'
16870   { (case "(($ac_try" in
16871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872   *) ac_try_echo=$ac_try;;
16873 esac
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875   (eval "$ac_try") 2>&5
16876   ac_status=$?
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); }; }; then
16879   eval "$as_ac_var=yes"
16880 else
16881   echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884         eval "$as_ac_var=no"
16885 fi
16886
16887 rm -f core conftest.err conftest.$ac_objext \
16888       conftest$ac_exeext conftest.$ac_ext
16889 fi
16890 ac_res=`eval echo '${'$as_ac_var'}'`
16891                { echo "$as_me:$LINENO: result: $ac_res" >&5
16892 echo "${ECHO_T}$ac_res" >&6; }
16893 if test `eval echo '${'$as_ac_var'}'` = yes; then
16894   cat >>confdefs.h <<_ACEOF
16895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16896 _ACEOF
16897
16898 fi
16899 done
16900
16901
16902
16903
16904
16905
16906 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16907 do
16908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914   cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16922 #define $ac_func innocuous_$ac_func
16923
16924 /* System header to define __stub macros and hopefully few prototypes,
16925     which can conflict with char $ac_func (); below.
16926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927     <limits.h> exists even on freestanding compilers.  */
16928
16929 #ifdef __STDC__
16930 # include <limits.h>
16931 #else
16932 # include <assert.h>
16933 #endif
16934
16935 #undef $ac_func
16936
16937 /* Override any GCC internal prototype to avoid an error.
16938    Use char because int might match the return type of a GCC
16939    builtin and then its argument prototype would still apply.  */
16940 #ifdef __cplusplus
16941 extern "C"
16942 #endif
16943 char $ac_func ();
16944 /* The GNU C library defines this for functions which it implements
16945     to always fail with ENOSYS.  Some functions are actually named
16946     something starting with __ and the normal name is an alias.  */
16947 #if defined __stub_$ac_func || defined __stub___$ac_func
16948 choke me
16949 #endif
16950
16951 int
16952 main ()
16953 {
16954 return $ac_func ();
16955   ;
16956   return 0;
16957 }
16958 _ACEOF
16959 rm -f conftest.$ac_objext conftest$ac_exeext
16960 if { (ac_try="$ac_link"
16961 case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_link") 2>conftest.er1
16967   ac_status=$?
16968   grep -v '^ *+' conftest.er1 >conftest.err
16969   rm -f conftest.er1
16970   cat conftest.err >&5
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); } &&
16973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16974   { (case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_try") 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }; } &&
16983          { ac_try='test -s conftest$ac_exeext'
16984   { (case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_try") 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; }; then
16993   eval "$as_ac_var=yes"
16994 else
16995   echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16997
16998         eval "$as_ac_var=no"
16999 fi
17000
17001 rm -f core conftest.err conftest.$ac_objext \
17002       conftest$ac_exeext conftest.$ac_ext
17003 fi
17004 ac_res=`eval echo '${'$as_ac_var'}'`
17005                { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17007 if test `eval echo '${'$as_ac_var'}'` = yes; then
17008   cat >>confdefs.h <<_ACEOF
17009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17010 _ACEOF
17011
17012 fi
17013 done
17014
17015
17016
17017
17018 for ac_func in isatty mkdtemp mkstemp
17019 do
17020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026   cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17034 #define $ac_func innocuous_$ac_func
17035
17036 /* System header to define __stub macros and hopefully few prototypes,
17037     which can conflict with char $ac_func (); below.
17038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17039     <limits.h> exists even on freestanding compilers.  */
17040
17041 #ifdef __STDC__
17042 # include <limits.h>
17043 #else
17044 # include <assert.h>
17045 #endif
17046
17047 #undef $ac_func
17048
17049 /* Override any GCC internal prototype to avoid an error.
17050    Use char because int might match the return type of a GCC
17051    builtin and then its argument prototype would still apply.  */
17052 #ifdef __cplusplus
17053 extern "C"
17054 #endif
17055 char $ac_func ();
17056 /* The GNU C library defines this for functions which it implements
17057     to always fail with ENOSYS.  Some functions are actually named
17058     something starting with __ and the normal name is an alias.  */
17059 #if defined __stub_$ac_func || defined __stub___$ac_func
17060 choke me
17061 #endif
17062
17063 int
17064 main ()
17065 {
17066 return $ac_func ();
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075   *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078   (eval "$ac_link") 2>conftest.er1
17079   ac_status=$?
17080   grep -v '^ *+' conftest.er1 >conftest.err
17081   rm -f conftest.er1
17082   cat conftest.err >&5
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } &&
17085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; } &&
17095          { ac_try='test -s conftest$ac_exeext'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105   eval "$as_ac_var=yes"
17106 else
17107   echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110         eval "$as_ac_var=no"
17111 fi
17112
17113 rm -f core conftest.err conftest.$ac_objext \
17114       conftest$ac_exeext conftest.$ac_ext
17115 fi
17116 ac_res=`eval echo '${'$as_ac_var'}'`
17117                { echo "$as_me:$LINENO: result: $ac_res" >&5
17118 echo "${ECHO_T}$ac_res" >&6; }
17119 if test `eval echo '${'$as_ac_var'}'` = yes; then
17120   cat >>confdefs.h <<_ACEOF
17121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17122 _ACEOF
17123
17124 fi
17125 done
17126
17127
17128
17129
17130
17131
17132
17133 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17134 do
17135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141   cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17149 #define $ac_func innocuous_$ac_func
17150
17151 /* System header to define __stub macros and hopefully few prototypes,
17152     which can conflict with char $ac_func (); below.
17153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17154     <limits.h> exists even on freestanding compilers.  */
17155
17156 #ifdef __STDC__
17157 # include <limits.h>
17158 #else
17159 # include <assert.h>
17160 #endif
17161
17162 #undef $ac_func
17163
17164 /* Override any GCC internal prototype to avoid an error.
17165    Use char because int might match the return type of a GCC
17166    builtin and then its argument prototype would still apply.  */
17167 #ifdef __cplusplus
17168 extern "C"
17169 #endif
17170 char $ac_func ();
17171 /* The GNU C library defines this for functions which it implements
17172     to always fail with ENOSYS.  Some functions are actually named
17173     something starting with __ and the normal name is an alias.  */
17174 #if defined __stub_$ac_func || defined __stub___$ac_func
17175 choke me
17176 #endif
17177
17178 int
17179 main ()
17180 {
17181 return $ac_func ();
17182   ;
17183   return 0;
17184 }
17185 _ACEOF
17186 rm -f conftest.$ac_objext conftest$ac_exeext
17187 if { (ac_try="$ac_link"
17188 case "(($ac_try" in
17189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190   *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193   (eval "$ac_link") 2>conftest.er1
17194   ac_status=$?
17195   grep -v '^ *+' conftest.er1 >conftest.err
17196   rm -f conftest.er1
17197   cat conftest.err >&5
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); } &&
17200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201   { (case "(($ac_try" in
17202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203   *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206   (eval "$ac_try") 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; } &&
17210          { ac_try='test -s conftest$ac_exeext'
17211   { (case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216   (eval "$ac_try") 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; }; then
17220   eval "$as_ac_var=yes"
17221 else
17222   echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17224
17225         eval "$as_ac_var=no"
17226 fi
17227
17228 rm -f core conftest.err conftest.$ac_objext \
17229       conftest$ac_exeext conftest.$ac_ext
17230 fi
17231 ac_res=`eval echo '${'$as_ac_var'}'`
17232                { echo "$as_me:$LINENO: result: $ac_res" >&5
17233 echo "${ECHO_T}$ac_res" >&6; }
17234 if test `eval echo '${'$as_ac_var'}'` = yes; then
17235   cat >>confdefs.h <<_ACEOF
17236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17237 _ACEOF
17238
17239 fi
17240 done
17241
17242
17243
17244
17245 for ac_func in strerror strerror_r setenv
17246 do
17247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253   cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17261 #define $ac_func innocuous_$ac_func
17262
17263 /* System header to define __stub macros and hopefully few prototypes,
17264     which can conflict with char $ac_func (); below.
17265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17266     <limits.h> exists even on freestanding compilers.  */
17267
17268 #ifdef __STDC__
17269 # include <limits.h>
17270 #else
17271 # include <assert.h>
17272 #endif
17273
17274 #undef $ac_func
17275
17276 /* Override any GCC internal prototype to avoid an error.
17277    Use char because int might match the return type of a GCC
17278    builtin and then its argument prototype would still apply.  */
17279 #ifdef __cplusplus
17280 extern "C"
17281 #endif
17282 char $ac_func ();
17283 /* The GNU C library defines this for functions which it implements
17284     to always fail with ENOSYS.  Some functions are actually named
17285     something starting with __ and the normal name is an alias.  */
17286 #if defined __stub_$ac_func || defined __stub___$ac_func
17287 choke me
17288 #endif
17289
17290 int
17291 main ()
17292 {
17293 return $ac_func ();
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305   (eval "$ac_link") 2>conftest.er1
17306   ac_status=$?
17307   grep -v '^ *+' conftest.er1 >conftest.err
17308   rm -f conftest.er1
17309   cat conftest.err >&5
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); } &&
17312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313   { (case "(($ac_try" in
17314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315   *) ac_try_echo=$ac_try;;
17316 esac
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318   (eval "$ac_try") 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; } &&
17322          { ac_try='test -s conftest$ac_exeext'
17323   { (case "(($ac_try" in
17324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325   *) ac_try_echo=$ac_try;;
17326 esac
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328   (eval "$ac_try") 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); }; }; then
17332   eval "$as_ac_var=yes"
17333 else
17334   echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337         eval "$as_ac_var=no"
17338 fi
17339
17340 rm -f core conftest.err conftest.$ac_objext \
17341       conftest$ac_exeext conftest.$ac_ext
17342 fi
17343 ac_res=`eval echo '${'$as_ac_var'}'`
17344                { echo "$as_me:$LINENO: result: $ac_res" >&5
17345 echo "${ECHO_T}$ac_res" >&6; }
17346 if test `eval echo '${'$as_ac_var'}'` = yes; then
17347   cat >>confdefs.h <<_ACEOF
17348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17349 _ACEOF
17350
17351 fi
17352 done
17353
17354
17355
17356
17357
17358 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17359 do
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17374 #define $ac_func innocuous_$ac_func
17375
17376 /* System header to define __stub macros and hopefully few prototypes,
17377     which can conflict with char $ac_func (); below.
17378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379     <limits.h> exists even on freestanding compilers.  */
17380
17381 #ifdef __STDC__
17382 # include <limits.h>
17383 #else
17384 # include <assert.h>
17385 #endif
17386
17387 #undef $ac_func
17388
17389 /* Override any GCC internal prototype to avoid an error.
17390    Use char because int might match the return type of a GCC
17391    builtin and then its argument prototype would still apply.  */
17392 #ifdef __cplusplus
17393 extern "C"
17394 #endif
17395 char $ac_func ();
17396 /* The GNU C library defines this for functions which it implements
17397     to always fail with ENOSYS.  Some functions are actually named
17398     something starting with __ and the normal name is an alias.  */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17400 choke me
17401 #endif
17402
17403 int
17404 main ()
17405 {
17406 return $ac_func ();
17407   ;
17408   return 0;
17409 }
17410 _ACEOF
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418   (eval "$ac_link") 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426   { (case "(($ac_try" in
17427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428   *) ac_try_echo=$ac_try;;
17429 esac
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431   (eval "$ac_try") 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; } &&
17435          { ac_try='test -s conftest$ac_exeext'
17436   { (case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_try") 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; }; then
17445   eval "$as_ac_var=yes"
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450         eval "$as_ac_var=no"
17451 fi
17452
17453 rm -f core conftest.err conftest.$ac_objext \
17454       conftest$ac_exeext conftest.$ac_ext
17455 fi
17456 ac_res=`eval echo '${'$as_ac_var'}'`
17457                { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17459 if test `eval echo '${'$as_ac_var'}'` = yes; then
17460   cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17462 _ACEOF
17463
17464 fi
17465 done
17466
17467
17468
17469
17470
17471
17472 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17473 do
17474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17478   echo $ECHO_N "(cached) $ECHO_C" >&6
17479 else
17480   cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h.  */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h.  */
17486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17488 #define $ac_func innocuous_$ac_func
17489
17490 /* System header to define __stub macros and hopefully few prototypes,
17491     which can conflict with char $ac_func (); below.
17492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17493     <limits.h> exists even on freestanding compilers.  */
17494
17495 #ifdef __STDC__
17496 # include <limits.h>
17497 #else
17498 # include <assert.h>
17499 #endif
17500
17501 #undef $ac_func
17502
17503 /* Override any GCC internal prototype to avoid an error.
17504    Use char because int might match the return type of a GCC
17505    builtin and then its argument prototype would still apply.  */
17506 #ifdef __cplusplus
17507 extern "C"
17508 #endif
17509 char $ac_func ();
17510 /* The GNU C library defines this for functions which it implements
17511     to always fail with ENOSYS.  Some functions are actually named
17512     something starting with __ and the normal name is an alias.  */
17513 #if defined __stub_$ac_func || defined __stub___$ac_func
17514 choke me
17515 #endif
17516
17517 int
17518 main ()
17519 {
17520 return $ac_func ();
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (ac_try="$ac_link"
17527 case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532   (eval "$ac_link") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } &&
17539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540   { (case "(($ac_try" in
17541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542   *) ac_try_echo=$ac_try;;
17543 esac
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545   (eval "$ac_try") 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; } &&
17549          { ac_try='test -s conftest$ac_exeext'
17550   { (case "(($ac_try" in
17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552   *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555   (eval "$ac_try") 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); }; }; then
17559   eval "$as_ac_var=yes"
17560 else
17561   echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564         eval "$as_ac_var=no"
17565 fi
17566
17567 rm -f core conftest.err conftest.$ac_objext \
17568       conftest$ac_exeext conftest.$ac_ext
17569 fi
17570 ac_res=`eval echo '${'$as_ac_var'}'`
17571                { echo "$as_me:$LINENO: result: $ac_res" >&5
17572 echo "${ECHO_T}$ac_res" >&6; }
17573 if test `eval echo '${'$as_ac_var'}'` = yes; then
17574   cat >>confdefs.h <<_ACEOF
17575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17576 _ACEOF
17577
17578 fi
17579 done
17580
17581 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17582 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17583 if test "${llvm_cv_c_printf_a+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   ac_ext=c
17587 ac_cpp='$CPP $CPPFLAGS'
17588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17591
17592  if test "$cross_compiling" = yes; then
17593   llvmac_cv_c_printf_a=no
17594 else
17595   cat >conftest.$ac_ext <<_ACEOF
17596
17597   /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602
17603 #include <stdio.h>
17604 #include <stdlib.h>
17605
17606 int
17607 main ()
17608 {
17609
17610 volatile double A, B;
17611 char Buffer[100];
17612 A = 1;
17613 A /= 10.0;
17614 sprintf(Buffer, "%a", A);
17615 B = atof(Buffer);
17616 if (A != B)
17617   return (1);
17618 if (A != 0x1.999999999999ap-4)
17619   return (1);
17620 return (0);
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest$ac_exeext
17626 if { (ac_try="$ac_link"
17627 case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632   (eval "$ac_link") 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17636   { (case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_try") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; }; then
17645   llvm_cv_c_printf_a=yes
17646 else
17647   echo "$as_me: program exited with status $ac_status" >&5
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ( exit $ac_status )
17652 llvmac_cv_c_printf_a=no
17653 fi
17654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17655 fi
17656
17657
17658  ac_ext=c
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
17664 fi
17665 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17666 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17667  if test "$llvm_cv_c_printf_a" = "yes"; then
17668
17669 cat >>confdefs.h <<\_ACEOF
17670 #define HAVE_PRINTF_A 1
17671 _ACEOF
17672
17673  fi
17674
17675
17676 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17677 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17678 if test "${ac_cv_func_rand48+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681   ac_ext=cpp
17682 ac_cpp='$CXXCPP $CPPFLAGS'
17683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17686
17687    cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h.  */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h.  */
17693 #include <stdlib.h>
17694 int
17695 main ()
17696 {
17697 srand48(0);lrand48();drand48();
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706   *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709   (eval "$ac_compile") 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17717   { (case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_try") 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; } &&
17726          { ac_try='test -s conftest.$ac_objext'
17727   { (case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_try") 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; }; then
17736   ac_cv_func_rand48=yes
17737 else
17738   echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741         ac_cv_func_rand48=no
17742 fi
17743
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745   ac_ext=c
17746 ac_cpp='$CPP $CPPFLAGS'
17747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17750
17751 fi
17752 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17753 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17754
17755 if test "$ac_cv_func_rand48" = "yes" ; then
17756
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_RAND48 1
17759 _ACEOF
17760
17761 fi
17762
17763
17764 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17765 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17766 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775 $ac_includes_default
17776 int
17777 main ()
17778 {
17779 #ifndef strerror_s
17780   char *p = (char *) strerror_s;
17781   return !p;
17782 #endif
17783
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext
17789 if { (ac_try="$ac_compile"
17790 case "(($ac_try" in
17791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792   *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795   (eval "$ac_compile") 2>conftest.er1
17796   ac_status=$?
17797   grep -v '^ *+' conftest.er1 >conftest.err
17798   rm -f conftest.er1
17799   cat conftest.err >&5
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } &&
17802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803   { (case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808   (eval "$ac_try") 2>&5
17809   ac_status=$?
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); }; } &&
17812          { ac_try='test -s conftest.$ac_objext'
17813   { (case "(($ac_try" in
17814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815   *) ac_try_echo=$ac_try;;
17816 esac
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818   (eval "$ac_try") 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822   ac_cv_have_decl_strerror_s=yes
17823 else
17824   echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827         ac_cv_have_decl_strerror_s=no
17828 fi
17829
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831 fi
17832 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17833 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17834 if test $ac_cv_have_decl_strerror_s = yes; then
17835
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_DECL_STRERROR_S 1
17838 _ACEOF
17839
17840
17841 else
17842   cat >>confdefs.h <<_ACEOF
17843 #define HAVE_DECL_STRERROR_S 0
17844 _ACEOF
17845
17846
17847 fi
17848
17849
17850
17851 if test "$llvm_cv_os_type" = "MingW" ; then
17852   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17853 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17854 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17855   echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857   ac_check_lib_save_LIBS=$LIBS
17858 LIBS="-lgcc  $LIBS"
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h.  */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h.  */
17865
17866 /* Override any GCC internal prototype to avoid an error.
17867    Use char because int might match the return type of a GCC
17868    builtin and then its argument prototype would still apply.  */
17869 #ifdef __cplusplus
17870 extern "C"
17871 #endif
17872 char _alloca ();
17873 int
17874 main ()
17875 {
17876 return _alloca ();
17877   ;
17878   return 0;
17879 }
17880 _ACEOF
17881 rm -f conftest.$ac_objext conftest$ac_exeext
17882 if { (ac_try="$ac_link"
17883 case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888   (eval "$ac_link") 2>conftest.er1
17889   ac_status=$?
17890   grep -v '^ *+' conftest.er1 >conftest.err
17891   rm -f conftest.er1
17892   cat conftest.err >&5
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } &&
17895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17896   { (case "(($ac_try" in
17897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898   *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901   (eval "$ac_try") 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); }; } &&
17905          { ac_try='test -s conftest$ac_exeext'
17906   { (case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911   (eval "$ac_try") 2>&5
17912   ac_status=$?
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); }; }; then
17915   ac_cv_lib_gcc__alloca=yes
17916 else
17917   echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920         ac_cv_lib_gcc__alloca=no
17921 fi
17922
17923 rm -f core conftest.err conftest.$ac_objext \
17924       conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17926 fi
17927 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17928 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17929 if test $ac_cv_lib_gcc__alloca = yes; then
17930
17931 cat >>confdefs.h <<\_ACEOF
17932 #define HAVE__ALLOCA 1
17933 _ACEOF
17934
17935 fi
17936
17937   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17938 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17939 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   ac_check_lib_save_LIBS=$LIBS
17943 LIBS="-lgcc  $LIBS"
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h.  */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h.  */
17950
17951 /* Override any GCC internal prototype to avoid an error.
17952    Use char because int might match the return type of a GCC
17953    builtin and then its argument prototype would still apply.  */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char __alloca ();
17958 int
17959 main ()
17960 {
17961 return __alloca ();
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970   *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973   (eval "$ac_link") 2>conftest.er1
17974   ac_status=$?
17975   grep -v '^ *+' conftest.er1 >conftest.err
17976   rm -f conftest.er1
17977   cat conftest.err >&5
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } &&
17980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981   { (case "(($ac_try" in
17982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983   *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986   (eval "$ac_try") 2>&5
17987   ac_status=$?
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); }; } &&
17990          { ac_try='test -s conftest$ac_exeext'
17991   { (case "(($ac_try" in
17992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993   *) ac_try_echo=$ac_try;;
17994 esac
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996   (eval "$ac_try") 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); }; }; then
18000   ac_cv_lib_gcc___alloca=yes
18001 else
18002   echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18004
18005         ac_cv_lib_gcc___alloca=no
18006 fi
18007
18008 rm -f core conftest.err conftest.$ac_objext \
18009       conftest$ac_exeext conftest.$ac_ext
18010 LIBS=$ac_check_lib_save_LIBS
18011 fi
18012 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18013 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18014 if test $ac_cv_lib_gcc___alloca = yes; then
18015
18016 cat >>confdefs.h <<\_ACEOF
18017 #define HAVE___ALLOCA 1
18018 _ACEOF
18019
18020 fi
18021
18022   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18023 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18024 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lgcc  $LIBS"
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h.  */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h.  */
18035
18036 /* Override any GCC internal prototype to avoid an error.
18037    Use char because int might match the return type of a GCC
18038    builtin and then its argument prototype would still apply.  */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char __chkstk ();
18043 int
18044 main ()
18045 {
18046 return __chkstk ();
18047   ;
18048   return 0;
18049 }
18050 _ACEOF
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055   *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058   (eval "$ac_link") 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } &&
18065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066   { (case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_try") 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; } &&
18075          { ac_try='test -s conftest$ac_exeext'
18076   { (case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_try") 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; }; then
18085   ac_cv_lib_gcc___chkstk=yes
18086 else
18087   echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090         ac_cv_lib_gcc___chkstk=no
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext \
18094       conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18096 fi
18097 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18098 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18099 if test $ac_cv_lib_gcc___chkstk = yes; then
18100
18101 cat >>confdefs.h <<\_ACEOF
18102 #define HAVE___CHKSTK 1
18103 _ACEOF
18104
18105 fi
18106
18107   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18108 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18110   echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112   ac_check_lib_save_LIBS=$LIBS
18113 LIBS="-lgcc  $LIBS"
18114 cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120
18121 /* Override any GCC internal prototype to avoid an error.
18122    Use char because int might match the return type of a GCC
18123    builtin and then its argument prototype would still apply.  */
18124 #ifdef __cplusplus
18125 extern "C"
18126 #endif
18127 char ___chkstk ();
18128 int
18129 main ()
18130 {
18131 return ___chkstk ();
18132   ;
18133   return 0;
18134 }
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_link") 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } &&
18150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18151   { (case "(($ac_try" in
18152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153   *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156   (eval "$ac_try") 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; } &&
18160          { ac_try='test -s conftest$ac_exeext'
18161   { (case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_try") 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; }; then
18170   ac_cv_lib_gcc____chkstk=yes
18171 else
18172   echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175         ac_cv_lib_gcc____chkstk=no
18176 fi
18177
18178 rm -f core conftest.err conftest.$ac_objext \
18179       conftest$ac_exeext conftest.$ac_ext
18180 LIBS=$ac_check_lib_save_LIBS
18181 fi
18182 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18183 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18184 if test $ac_cv_lib_gcc____chkstk = yes; then
18185
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE____CHKSTK 1
18188 _ACEOF
18189
18190 fi
18191
18192
18193   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18194 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18195 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198   ac_check_lib_save_LIBS=$LIBS
18199 LIBS="-lgcc  $LIBS"
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206
18207 /* Override any GCC internal prototype to avoid an error.
18208    Use char because int might match the return type of a GCC
18209    builtin and then its argument prototype would still apply.  */
18210 #ifdef __cplusplus
18211 extern "C"
18212 #endif
18213 char __ashldi3 ();
18214 int
18215 main ()
18216 {
18217 return __ashldi3 ();
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (ac_try="$ac_link"
18224 case "(($ac_try" in
18225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226   *) ac_try_echo=$ac_try;;
18227 esac
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229   (eval "$ac_link") 2>conftest.er1
18230   ac_status=$?
18231   grep -v '^ *+' conftest.er1 >conftest.err
18232   rm -f conftest.er1
18233   cat conftest.err >&5
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); } &&
18236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237   { (case "(($ac_try" in
18238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239   *) ac_try_echo=$ac_try;;
18240 esac
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242   (eval "$ac_try") 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; } &&
18246          { ac_try='test -s conftest$ac_exeext'
18247   { (case "(($ac_try" in
18248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249   *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252   (eval "$ac_try") 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256   ac_cv_lib_gcc___ashldi3=yes
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261         ac_cv_lib_gcc___ashldi3=no
18262 fi
18263
18264 rm -f core conftest.err conftest.$ac_objext \
18265       conftest$ac_exeext conftest.$ac_ext
18266 LIBS=$ac_check_lib_save_LIBS
18267 fi
18268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18269 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18270 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18271
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE___ASHLDI3 1
18274 _ACEOF
18275
18276 fi
18277
18278   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18279 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18280 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18281   echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283   ac_check_lib_save_LIBS=$LIBS
18284 LIBS="-lgcc  $LIBS"
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291
18292 /* Override any GCC internal prototype to avoid an error.
18293    Use char because int might match the return type of a GCC
18294    builtin and then its argument prototype would still apply.  */
18295 #ifdef __cplusplus
18296 extern "C"
18297 #endif
18298 char __ashrdi3 ();
18299 int
18300 main ()
18301 {
18302 return __ashrdi3 ();
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (ac_try="$ac_link"
18309 case "(($ac_try" in
18310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311   *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314   (eval "$ac_link") 2>conftest.er1
18315   ac_status=$?
18316   grep -v '^ *+' conftest.er1 >conftest.err
18317   rm -f conftest.er1
18318   cat conftest.err >&5
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); } &&
18321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322   { (case "(($ac_try" in
18323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324   *) ac_try_echo=$ac_try;;
18325 esac
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327   (eval "$ac_try") 2>&5
18328   ac_status=$?
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); }; } &&
18331          { ac_try='test -s conftest$ac_exeext'
18332   { (case "(($ac_try" in
18333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334   *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337   (eval "$ac_try") 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   ac_cv_lib_gcc___ashrdi3=yes
18342 else
18343   echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18345
18346         ac_cv_lib_gcc___ashrdi3=no
18347 fi
18348
18349 rm -f core conftest.err conftest.$ac_objext \
18350       conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18352 fi
18353 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18354 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18355 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18356
18357 cat >>confdefs.h <<\_ACEOF
18358 #define HAVE___ASHRDI3 1
18359 _ACEOF
18360
18361 fi
18362
18363   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18364 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18365 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18366   echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368   ac_check_lib_save_LIBS=$LIBS
18369 LIBS="-lgcc  $LIBS"
18370 cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376
18377 /* Override any GCC internal prototype to avoid an error.
18378    Use char because int might match the return type of a GCC
18379    builtin and then its argument prototype would still apply.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char __divdi3 ();
18384 int
18385 main ()
18386 {
18387 return __divdi3 ();
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (ac_try="$ac_link"
18394 case "(($ac_try" in
18395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396   *) ac_try_echo=$ac_try;;
18397 esac
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399   (eval "$ac_link") 2>conftest.er1
18400   ac_status=$?
18401   grep -v '^ *+' conftest.er1 >conftest.err
18402   rm -f conftest.er1
18403   cat conftest.err >&5
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); } &&
18406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407   { (case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_try") 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; } &&
18416          { ac_try='test -s conftest$ac_exeext'
18417   { (case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422   (eval "$ac_try") 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; }; then
18426   ac_cv_lib_gcc___divdi3=yes
18427 else
18428   echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431         ac_cv_lib_gcc___divdi3=no
18432 fi
18433
18434 rm -f core conftest.err conftest.$ac_objext \
18435       conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18437 fi
18438 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18439 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18440 if test $ac_cv_lib_gcc___divdi3 = yes; then
18441
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE___DIVDI3 1
18444 _ACEOF
18445
18446 fi
18447
18448   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18449 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18450 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   ac_check_lib_save_LIBS=$LIBS
18454 LIBS="-lgcc  $LIBS"
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461
18462 /* Override any GCC internal prototype to avoid an error.
18463    Use char because int might match the return type of a GCC
18464    builtin and then its argument prototype would still apply.  */
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 char __fixdfdi ();
18469 int
18470 main ()
18471 {
18472 return __fixdfdi ();
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_link") 2>conftest.er1
18485   ac_status=$?
18486   grep -v '^ *+' conftest.er1 >conftest.err
18487   rm -f conftest.er1
18488   cat conftest.err >&5
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } &&
18491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492   { (case "(($ac_try" in
18493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494   *) ac_try_echo=$ac_try;;
18495 esac
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497   (eval "$ac_try") 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; } &&
18501          { ac_try='test -s conftest$ac_exeext'
18502   { (case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507   (eval "$ac_try") 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; }; then
18511   ac_cv_lib_gcc___fixdfdi=yes
18512 else
18513   echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18515
18516         ac_cv_lib_gcc___fixdfdi=no
18517 fi
18518
18519 rm -f core conftest.err conftest.$ac_objext \
18520       conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18522 fi
18523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18524 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18525 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18526
18527 cat >>confdefs.h <<\_ACEOF
18528 #define HAVE___FIXDFDI 1
18529 _ACEOF
18530
18531 fi
18532
18533   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18534 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18535 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18536   echo $ECHO_N "(cached) $ECHO_C" >&6
18537 else
18538   ac_check_lib_save_LIBS=$LIBS
18539 LIBS="-lgcc  $LIBS"
18540 cat >conftest.$ac_ext <<_ACEOF
18541 /* confdefs.h.  */
18542 _ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h.  */
18546
18547 /* Override any GCC internal prototype to avoid an error.
18548    Use char because int might match the return type of a GCC
18549    builtin and then its argument prototype would still apply.  */
18550 #ifdef __cplusplus
18551 extern "C"
18552 #endif
18553 char __fixsfdi ();
18554 int
18555 main ()
18556 {
18557 return __fixsfdi ();
18558   ;
18559   return 0;
18560 }
18561 _ACEOF
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (ac_try="$ac_link"
18564 case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569   (eval "$ac_link") 2>conftest.er1
18570   ac_status=$?
18571   grep -v '^ *+' conftest.er1 >conftest.err
18572   rm -f conftest.er1
18573   cat conftest.err >&5
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); } &&
18576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577   { (case "(($ac_try" in
18578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579   *) ac_try_echo=$ac_try;;
18580 esac
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582   (eval "$ac_try") 2>&5
18583   ac_status=$?
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); }; } &&
18586          { ac_try='test -s conftest$ac_exeext'
18587   { (case "(($ac_try" in
18588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589   *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592   (eval "$ac_try") 2>&5
18593   ac_status=$?
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); }; }; then
18596   ac_cv_lib_gcc___fixsfdi=yes
18597 else
18598   echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18600
18601         ac_cv_lib_gcc___fixsfdi=no
18602 fi
18603
18604 rm -f core conftest.err conftest.$ac_objext \
18605       conftest$ac_exeext conftest.$ac_ext
18606 LIBS=$ac_check_lib_save_LIBS
18607 fi
18608 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18609 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18610 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18611
18612 cat >>confdefs.h <<\_ACEOF
18613 #define HAVE___FIXSFDI 1
18614 _ACEOF
18615
18616 fi
18617
18618   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18619 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18621   echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623   ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-lgcc  $LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631
18632 /* Override any GCC internal prototype to avoid an error.
18633    Use char because int might match the return type of a GCC
18634    builtin and then its argument prototype would still apply.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 char __floatdidf ();
18639 int
18640 main ()
18641 {
18642 return __floatdidf ();
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_link") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } &&
18661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662   { (case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_try") 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; } &&
18671          { ac_try='test -s conftest$ac_exeext'
18672   { (case "(($ac_try" in
18673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674   *) ac_try_echo=$ac_try;;
18675 esac
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677   (eval "$ac_try") 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; }; then
18681   ac_cv_lib_gcc___floatdidf=yes
18682 else
18683   echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686         ac_cv_lib_gcc___floatdidf=no
18687 fi
18688
18689 rm -f core conftest.err conftest.$ac_objext \
18690       conftest$ac_exeext conftest.$ac_ext
18691 LIBS=$ac_check_lib_save_LIBS
18692 fi
18693 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18694 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18695 if test $ac_cv_lib_gcc___floatdidf = yes; then
18696
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE___FLOATDIDF 1
18699 _ACEOF
18700
18701 fi
18702
18703   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18704 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18705 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708   ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-lgcc  $LIBS"
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716
18717 /* Override any GCC internal prototype to avoid an error.
18718    Use char because int might match the return type of a GCC
18719    builtin and then its argument prototype would still apply.  */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 char __lshrdi3 ();
18724 int
18725 main ()
18726 {
18727 return __lshrdi3 ();
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_link") 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } &&
18746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18747   { (case "(($ac_try" in
18748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749   *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752   (eval "$ac_try") 2>&5
18753   ac_status=$?
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); }; } &&
18756          { ac_try='test -s conftest$ac_exeext'
18757   { (case "(($ac_try" in
18758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759   *) ac_try_echo=$ac_try;;
18760 esac
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762   (eval "$ac_try") 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }; }; then
18766   ac_cv_lib_gcc___lshrdi3=yes
18767 else
18768   echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771         ac_cv_lib_gcc___lshrdi3=no
18772 fi
18773
18774 rm -f core conftest.err conftest.$ac_objext \
18775       conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18777 fi
18778 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18779 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18780 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18781
18782 cat >>confdefs.h <<\_ACEOF
18783 #define HAVE___LSHRDI3 1
18784 _ACEOF
18785
18786 fi
18787
18788   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18789 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18790 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-lgcc  $LIBS"
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h.  */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h.  */
18801
18802 /* Override any GCC internal prototype to avoid an error.
18803    Use char because int might match the return type of a GCC
18804    builtin and then its argument prototype would still apply.  */
18805 #ifdef __cplusplus
18806 extern "C"
18807 #endif
18808 char __moddi3 ();
18809 int
18810 main ()
18811 {
18812 return __moddi3 ();
18813   ;
18814   return 0;
18815 }
18816 _ACEOF
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821   *) ac_try_echo=$ac_try;;
18822 esac
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824   (eval "$ac_link") 2>conftest.er1
18825   ac_status=$?
18826   grep -v '^ *+' conftest.er1 >conftest.err
18827   rm -f conftest.er1
18828   cat conftest.err >&5
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); } &&
18831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832   { (case "(($ac_try" in
18833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834   *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837   (eval "$ac_try") 2>&5
18838   ac_status=$?
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); }; } &&
18841          { ac_try='test -s conftest$ac_exeext'
18842   { (case "(($ac_try" in
18843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844   *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847   (eval "$ac_try") 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; }; then
18851   ac_cv_lib_gcc___moddi3=yes
18852 else
18853   echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856         ac_cv_lib_gcc___moddi3=no
18857 fi
18858
18859 rm -f core conftest.err conftest.$ac_objext \
18860       conftest$ac_exeext conftest.$ac_ext
18861 LIBS=$ac_check_lib_save_LIBS
18862 fi
18863 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18864 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18865 if test $ac_cv_lib_gcc___moddi3 = yes; then
18866
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE___MODDI3 1
18869 _ACEOF
18870
18871 fi
18872
18873   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18874 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18875 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   ac_check_lib_save_LIBS=$LIBS
18879 LIBS="-lgcc  $LIBS"
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886
18887 /* Override any GCC internal prototype to avoid an error.
18888    Use char because int might match the return type of a GCC
18889    builtin and then its argument prototype would still apply.  */
18890 #ifdef __cplusplus
18891 extern "C"
18892 #endif
18893 char __udivdi3 ();
18894 int
18895 main ()
18896 {
18897 return __udivdi3 ();
18898   ;
18899   return 0;
18900 }
18901 _ACEOF
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
18904 case "(($ac_try" in
18905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906   *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909   (eval "$ac_link") 2>conftest.er1
18910   ac_status=$?
18911   grep -v '^ *+' conftest.er1 >conftest.err
18912   rm -f conftest.er1
18913   cat conftest.err >&5
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); } &&
18916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917   { (case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922   (eval "$ac_try") 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); }; } &&
18926          { ac_try='test -s conftest$ac_exeext'
18927   { (case "(($ac_try" in
18928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929   *) ac_try_echo=$ac_try;;
18930 esac
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932   (eval "$ac_try") 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; }; then
18936   ac_cv_lib_gcc___udivdi3=yes
18937 else
18938   echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941         ac_cv_lib_gcc___udivdi3=no
18942 fi
18943
18944 rm -f core conftest.err conftest.$ac_objext \
18945       conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18947 fi
18948 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18949 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18950 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18951
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE___UDIVDI3 1
18954 _ACEOF
18955
18956 fi
18957
18958   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18959 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18960 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18961   echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963   ac_check_lib_save_LIBS=$LIBS
18964 LIBS="-lgcc  $LIBS"
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971
18972 /* Override any GCC internal prototype to avoid an error.
18973    Use char because int might match the return type of a GCC
18974    builtin and then its argument prototype would still apply.  */
18975 #ifdef __cplusplus
18976 extern "C"
18977 #endif
18978 char __umoddi3 ();
18979 int
18980 main ()
18981 {
18982 return __umoddi3 ();
18983   ;
18984   return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (ac_try="$ac_link"
18989 case "(($ac_try" in
18990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991   *) ac_try_echo=$ac_try;;
18992 esac
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994   (eval "$ac_link") 2>conftest.er1
18995   ac_status=$?
18996   grep -v '^ *+' conftest.er1 >conftest.err
18997   rm -f conftest.er1
18998   cat conftest.err >&5
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); } &&
19001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002   { (case "(($ac_try" in
19003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004   *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007   (eval "$ac_try") 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; } &&
19011          { ac_try='test -s conftest$ac_exeext'
19012   { (case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_try") 2>&5
19018   ac_status=$?
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); }; }; then
19021   ac_cv_lib_gcc___umoddi3=yes
19022 else
19023   echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19025
19026         ac_cv_lib_gcc___umoddi3=no
19027 fi
19028
19029 rm -f core conftest.err conftest.$ac_objext \
19030       conftest$ac_exeext conftest.$ac_ext
19031 LIBS=$ac_check_lib_save_LIBS
19032 fi
19033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19034 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19035 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19036
19037 cat >>confdefs.h <<\_ACEOF
19038 #define HAVE___UMODDI3 1
19039 _ACEOF
19040
19041 fi
19042
19043
19044   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19045 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19046 if test "${ac_cv_lib_gcc___main+set}" = set; then
19047   echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049   ac_check_lib_save_LIBS=$LIBS
19050 LIBS="-lgcc  $LIBS"
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h.  */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h.  */
19057
19058 /* Override any GCC internal prototype to avoid an error.
19059    Use char because int might match the return type of a GCC
19060    builtin and then its argument prototype would still apply.  */
19061 #ifdef __cplusplus
19062 extern "C"
19063 #endif
19064 char __main ();
19065 int
19066 main ()
19067 {
19068 return __main ();
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077   *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080   (eval "$ac_link") 2>conftest.er1
19081   ac_status=$?
19082   grep -v '^ *+' conftest.er1 >conftest.err
19083   rm -f conftest.er1
19084   cat conftest.err >&5
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } &&
19087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088   { (case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_try") 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; } &&
19097          { ac_try='test -s conftest$ac_exeext'
19098   { (case "(($ac_try" in
19099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100   *) ac_try_echo=$ac_try;;
19101 esac
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103   (eval "$ac_try") 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); }; }; then
19107   ac_cv_lib_gcc___main=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112         ac_cv_lib_gcc___main=no
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext \
19116       conftest$ac_exeext conftest.$ac_ext
19117 LIBS=$ac_check_lib_save_LIBS
19118 fi
19119 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19120 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19121 if test $ac_cv_lib_gcc___main = yes; then
19122
19123 cat >>confdefs.h <<\_ACEOF
19124 #define HAVE___MAIN 1
19125 _ACEOF
19126
19127 fi
19128
19129   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19130 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19131 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19132   echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134   ac_check_lib_save_LIBS=$LIBS
19135 LIBS="-lgcc  $LIBS"
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142
19143 /* Override any GCC internal prototype to avoid an error.
19144    Use char because int might match the return type of a GCC
19145    builtin and then its argument prototype would still apply.  */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 char __cmpdi2 ();
19150 int
19151 main ()
19152 {
19153 return __cmpdi2 ();
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_link") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } &&
19172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173   { (case "(($ac_try" in
19174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175   *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178   (eval "$ac_try") 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; } &&
19182          { ac_try='test -s conftest$ac_exeext'
19183   { (case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_try") 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192   ac_cv_lib_gcc___cmpdi2=yes
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197         ac_cv_lib_gcc___cmpdi2=no
19198 fi
19199
19200 rm -f core conftest.err conftest.$ac_objext \
19201       conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19203 fi
19204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19205 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19206 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19207
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE___CMPDI2 1
19210 _ACEOF
19211
19212 fi
19213
19214 fi
19215
19216 if test "$llvm_cv_os_type" = "MingW" ; then
19217   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19218 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19219   cat >conftest.$ac_ext <<_ACEOF
19220 #include <windows.h>
19221 #include <imagehlp.h>
19222 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19223 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_compile") 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } &&
19239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; } &&
19249          { ac_try='test -s conftest.$ac_objext'
19250   { (case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_try") 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; }; then
19259
19260   { echo "$as_me:$LINENO: result: yes" >&5
19261 echo "${ECHO_T}yes" >&6; }
19262   llvm_cv_win32_elmcb_pcstr="PCSTR"
19263
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268
19269   { echo "$as_me:$LINENO: result: no" >&5
19270 echo "${ECHO_T}no" >&6; }
19271   llvm_cv_win32_elmcb_pcstr="PSTR"
19272
19273 fi
19274
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276
19277 cat >>confdefs.h <<_ACEOF
19278 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19279 _ACEOF
19280
19281 fi
19282
19283
19284 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19285 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19286 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19287   echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289   ac_ext=cpp
19290 ac_cpp='$CXXCPP $CPPFLAGS'
19291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19294
19295    cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h.  */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h.  */
19301 #include <math.h>
19302 int
19303 main ()
19304 {
19305 float f; isnan(f);
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (ac_try="$ac_compile"
19312 case "(($ac_try" in
19313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314   *) ac_try_echo=$ac_try;;
19315 esac
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317   (eval "$ac_compile") 2>conftest.er1
19318   ac_status=$?
19319   grep -v '^ *+' conftest.er1 >conftest.err
19320   rm -f conftest.er1
19321   cat conftest.err >&5
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } &&
19324          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19325   { (case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_try") 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; } &&
19334          { ac_try='test -s conftest.$ac_objext'
19335   { (case "(($ac_try" in
19336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337   *) ac_try_echo=$ac_try;;
19338 esac
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340   (eval "$ac_try") 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344   ac_cv_func_isnan_in_math_h=yes
19345 else
19346   echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19348
19349         ac_cv_func_isnan_in_math_h=no
19350 fi
19351
19352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353   ac_ext=c
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358
19359 fi
19360 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19361 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19362
19363
19364 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19365
19366 cat >>confdefs.h <<\_ACEOF
19367 #define HAVE_ISNAN_IN_MATH_H 1
19368 _ACEOF
19369
19370 fi
19371
19372 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19373 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   ac_ext=cpp
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
19383    cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389 #include <cmath>
19390 int
19391 main ()
19392 {
19393 float f; isnan(f);
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_compile") 2>conftest.er1
19406   ac_status=$?
19407   grep -v '^ *+' conftest.er1 >conftest.err
19408   rm -f conftest.er1
19409   cat conftest.err >&5
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } &&
19412          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413   { (case "(($ac_try" in
19414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415   *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418   (eval "$ac_try") 2>&5
19419   ac_status=$?
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); }; } &&
19422          { ac_try='test -s conftest.$ac_objext'
19423   { (case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428   (eval "$ac_try") 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_func_isnan_in_cmath=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437         ac_cv_func_isnan_in_cmath=no
19438 fi
19439
19440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441   ac_ext=c
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446
19447 fi
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19449 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19450
19451 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19452
19453 cat >>confdefs.h <<\_ACEOF
19454 #define HAVE_ISNAN_IN_CMATH 1
19455 _ACEOF
19456
19457 fi
19458
19459 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19460 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19461 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464   ac_ext=cpp
19465 ac_cpp='$CXXCPP $CPPFLAGS'
19466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19469
19470    cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476 #include <cmath>
19477 int
19478 main ()
19479 {
19480 float f; std::isnan(f);
19481   ;
19482   return 0;
19483 }
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489   *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492   (eval "$ac_compile") 2>conftest.er1
19493   ac_status=$?
19494   grep -v '^ *+' conftest.er1 >conftest.err
19495   rm -f conftest.er1
19496   cat conftest.err >&5
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); } &&
19499          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19500   { (case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_try") 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; } &&
19509          { ac_try='test -s conftest.$ac_objext'
19510   { (case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_try") 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; }; then
19519   ac_cv_func_std_isnan_in_cmath=yes
19520 else
19521   echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524         ac_cv_func_std_isnan_in_cmath=no
19525 fi
19526
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528   ac_ext=c
19529 ac_cpp='$CPP $CPPFLAGS'
19530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19533
19534 fi
19535 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19536 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19537
19538 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19539
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_STD_ISNAN_IN_CMATH 1
19542 _ACEOF
19543
19544 fi
19545
19546
19547 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19548 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19549 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552   ac_ext=cpp
19553 ac_cpp='$CXXCPP $CPPFLAGS'
19554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19557
19558    cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564 #include <math.h>
19565 int
19566 main ()
19567 {
19568 float f; isinf(f);
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (ac_try="$ac_compile"
19575 case "(($ac_try" in
19576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577   *) ac_try_echo=$ac_try;;
19578 esac
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580   (eval "$ac_compile") 2>conftest.er1
19581   ac_status=$?
19582   grep -v '^ *+' conftest.er1 >conftest.err
19583   rm -f conftest.er1
19584   cat conftest.err >&5
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); } &&
19587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588   { (case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_try") 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; } &&
19597          { ac_try='test -s conftest.$ac_objext'
19598   { (case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_try") 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; }; then
19607   ac_cv_func_isinf_in_math_h=yes
19608 else
19609   echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19611
19612         ac_cv_func_isinf_in_math_h=no
19613 fi
19614
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616   ac_ext=c
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622 fi
19623 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19624 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19625
19626 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_ISINF_IN_MATH_H 1
19630 _ACEOF
19631
19632 fi
19633
19634 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19635 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19636 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19637   echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639   ac_ext=cpp
19640 ac_cpp='$CXXCPP $CPPFLAGS'
19641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19644
19645    cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 #include <cmath>
19652 int
19653 main ()
19654 {
19655 float f; isinf(f);
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_compile") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } &&
19674          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19675   { (case "(($ac_try" in
19676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677   *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680   (eval "$ac_try") 2>&5
19681   ac_status=$?
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); }; } &&
19684          { ac_try='test -s conftest.$ac_objext'
19685   { (case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_try") 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   ac_cv_func_isinf_in_cmath=yes
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699         ac_cv_func_isinf_in_cmath=no
19700 fi
19701
19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703   ac_ext=c
19704 ac_cpp='$CPP $CPPFLAGS'
19705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708
19709 fi
19710 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19711 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19712
19713 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19714
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_ISINF_IN_CMATH 1
19717 _ACEOF
19718
19719 fi
19720
19721 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19722 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19723 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 else
19726   ac_ext=cpp
19727 ac_cpp='$CXXCPP $CPPFLAGS'
19728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19731
19732    cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h.  */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h.  */
19738 #include <cmath>
19739 int
19740 main ()
19741 {
19742 float f; std::isinf(f)}
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (ac_try="$ac_compile"
19749 case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_compile") 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } &&
19761          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19762   { (case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_try") 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; } &&
19771          { ac_try='test -s conftest.$ac_objext'
19772   { (case "(($ac_try" in
19773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774   *) ac_try_echo=$ac_try;;
19775 esac
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777   (eval "$ac_try") 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; }; then
19781   ac_cv_func_std_isinf_in_cmath=yes
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786         ac_cv_func_std_isinf_in_cmath=no
19787 fi
19788
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790   ac_ext=c
19791 ac_cpp='$CPP $CPPFLAGS'
19792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19795
19796 fi
19797 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19798 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19799
19800 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_STD_ISINF_IN_CMATH 1
19804 _ACEOF
19805
19806 fi
19807
19808 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19809 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19810 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19811   echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813   ac_ext=cpp
19814 ac_cpp='$CXXCPP $CPPFLAGS'
19815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19818
19819    cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 #include <ieeefp.h>
19826 int
19827 main ()
19828 {
19829 float f; finite(f);
19830   ;
19831   return 0;
19832 }
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838   *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841   (eval "$ac_compile") 2>conftest.er1
19842   ac_status=$?
19843   grep -v '^ *+' conftest.er1 >conftest.err
19844   rm -f conftest.er1
19845   cat conftest.err >&5
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } &&
19848          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19849   { (case "(($ac_try" in
19850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851   *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854   (eval "$ac_try") 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; } &&
19858          { ac_try='test -s conftest.$ac_objext'
19859   { (case "(($ac_try" in
19860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861   *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864   (eval "$ac_try") 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; }; then
19868   ac_cv_func_finite_in_ieeefp_h=yes
19869 else
19870   echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19872
19873         ac_cv_func_finite_in_ieeefp_h=no
19874 fi
19875
19876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19877   ac_ext=c
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882
19883 fi
19884 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19885 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19886
19887 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19888
19889 cat >>confdefs.h <<\_ACEOF
19890 #define HAVE_FINITE_IN_IEEEFP_H 1
19891 _ACEOF
19892
19893 fi
19894
19895
19896
19897 if test "$llvm_cv_platform_type" = "Unix" ; then
19898
19899
19900 for ac_header in stdlib.h unistd.h
19901 do
19902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907   echo $ECHO_N "(cached) $ECHO_C" >&6
19908 fi
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910                { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19912 else
19913   # Is the header compilable?
19914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 $ac_includes_default
19923 #include <$ac_header>
19924 _ACEOF
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929   *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932   (eval "$ac_compile") 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } &&
19939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940   { (case "(($ac_try" in
19941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942   *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945   (eval "$ac_try") 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; } &&
19949          { ac_try='test -s conftest.$ac_objext'
19950   { (case "(($ac_try" in
19951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952   *) ac_try_echo=$ac_try;;
19953 esac
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955   (eval "$ac_try") 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); }; }; then
19959   ac_header_compiler=yes
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964         ac_header_compiler=no
19965 fi
19966
19967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19969 echo "${ECHO_T}$ac_header_compiler" >&6; }
19970
19971 # Is the header present?
19972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19974 cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 #include <$ac_header>
19981 _ACEOF
19982 if { (ac_try="$ac_cpp conftest.$ac_ext"
19983 case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } >/dev/null; then
19995   if test -s conftest.err; then
19996     ac_cpp_err=$ac_c_preproc_warn_flag
19997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19998   else
19999     ac_cpp_err=
20000   fi
20001 else
20002   ac_cpp_err=yes
20003 fi
20004 if test -z "$ac_cpp_err"; then
20005   ac_header_preproc=yes
20006 else
20007   echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010   ac_header_preproc=no
20011 fi
20012
20013 rm -f conftest.err conftest.$ac_ext
20014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20015 echo "${ECHO_T}$ac_header_preproc" >&6; }
20016
20017 # So?  What about this header?
20018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20019   yes:no: )
20020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20024     ac_header_preproc=yes
20025     ;;
20026   no:yes:* )
20027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20039     ( cat <<\_ASBOX
20040 ## ----------------------------------- ##
20041 ## Report this to llvmbugs@cs.uiuc.edu ##
20042 ## ----------------------------------- ##
20043 _ASBOX
20044      ) | sed "s/^/$as_me: WARNING:     /" >&2
20045     ;;
20046 esac
20047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   eval "$as_ac_Header=\$ac_header_preproc"
20053 fi
20054 ac_res=`eval echo '${'$as_ac_Header'}'`
20055                { echo "$as_me:$LINENO: result: $ac_res" >&5
20056 echo "${ECHO_T}$ac_res" >&6; }
20057
20058 fi
20059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20060   cat >>confdefs.h <<_ACEOF
20061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20062 _ACEOF
20063
20064 fi
20065
20066 done
20067
20068
20069 for ac_func in getpagesize
20070 do
20071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20075   echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077   cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20085 #define $ac_func innocuous_$ac_func
20086
20087 /* System header to define __stub macros and hopefully few prototypes,
20088     which can conflict with char $ac_func (); below.
20089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20090     <limits.h> exists even on freestanding compilers.  */
20091
20092 #ifdef __STDC__
20093 # include <limits.h>
20094 #else
20095 # include <assert.h>
20096 #endif
20097
20098 #undef $ac_func
20099
20100 /* Override any GCC internal prototype to avoid an error.
20101    Use char because int might match the return type of a GCC
20102    builtin and then its argument prototype would still apply.  */
20103 #ifdef __cplusplus
20104 extern "C"
20105 #endif
20106 char $ac_func ();
20107 /* The GNU C library defines this for functions which it implements
20108     to always fail with ENOSYS.  Some functions are actually named
20109     something starting with __ and the normal name is an alias.  */
20110 #if defined __stub_$ac_func || defined __stub___$ac_func
20111 choke me
20112 #endif
20113
20114 int
20115 main ()
20116 {
20117 return $ac_func ();
20118   ;
20119   return 0;
20120 }
20121 _ACEOF
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (ac_try="$ac_link"
20124 case "(($ac_try" in
20125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126   *) ac_try_echo=$ac_try;;
20127 esac
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129   (eval "$ac_link") 2>conftest.er1
20130   ac_status=$?
20131   grep -v '^ *+' conftest.er1 >conftest.err
20132   rm -f conftest.er1
20133   cat conftest.err >&5
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); } &&
20136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20137   { (case "(($ac_try" in
20138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139   *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142   (eval "$ac_try") 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; } &&
20146          { ac_try='test -s conftest$ac_exeext'
20147   { (case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_try") 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; }; then
20156   eval "$as_ac_var=yes"
20157 else
20158   echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161         eval "$as_ac_var=no"
20162 fi
20163
20164 rm -f core conftest.err conftest.$ac_objext \
20165       conftest$ac_exeext conftest.$ac_ext
20166 fi
20167 ac_res=`eval echo '${'$as_ac_var'}'`
20168                { echo "$as_me:$LINENO: result: $ac_res" >&5
20169 echo "${ECHO_T}$ac_res" >&6; }
20170 if test `eval echo '${'$as_ac_var'}'` = yes; then
20171   cat >>confdefs.h <<_ACEOF
20172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20173 _ACEOF
20174
20175 fi
20176 done
20177
20178 { echo "$as_me:$LINENO: checking for working mmap" >&5
20179 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20180 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183   if test "$cross_compiling" = yes; then
20184   ac_cv_func_mmap_fixed_mapped=no
20185 else
20186   cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h.  */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h.  */
20192 $ac_includes_default
20193 /* malloc might have been renamed as rpl_malloc. */
20194 #undef malloc
20195
20196 /* Thanks to Mike Haertel and Jim Avera for this test.
20197    Here is a matrix of mmap possibilities:
20198         mmap private not fixed
20199         mmap private fixed at somewhere currently unmapped
20200         mmap private fixed at somewhere already mapped
20201         mmap shared not fixed
20202         mmap shared fixed at somewhere currently unmapped
20203         mmap shared fixed at somewhere already mapped
20204    For private mappings, we should verify that changes cannot be read()
20205    back from the file, nor mmap's back from the file at a different
20206    address.  (There have been systems where private was not correctly
20207    implemented like the infamous i386 svr4.0, and systems where the
20208    VM page cache was not coherent with the file system buffer cache
20209    like early versions of FreeBSD and possibly contemporary NetBSD.)
20210    For shared mappings, we should conversely verify that changes get
20211    propagated back to all the places they're supposed to be.
20212
20213    Grep wants private fixed already mapped.
20214    The main things grep needs to know about mmap are:
20215    * does it exist and is it safe to write into the mmap'd area
20216    * how to use it (BSD variants)  */
20217
20218 #include <fcntl.h>
20219 #include <sys/mman.h>
20220
20221 #if !STDC_HEADERS && !HAVE_STDLIB_H
20222 char *malloc ();
20223 #endif
20224
20225 /* This mess was copied from the GNU getpagesize.h.  */
20226 #if !HAVE_GETPAGESIZE
20227 /* Assume that all systems that can run configure have sys/param.h.  */
20228 # if !HAVE_SYS_PARAM_H
20229 #  define HAVE_SYS_PARAM_H 1
20230 # endif
20231
20232 # ifdef _SC_PAGESIZE
20233 #  define getpagesize() sysconf(_SC_PAGESIZE)
20234 # else /* no _SC_PAGESIZE */
20235 #  if HAVE_SYS_PARAM_H
20236 #   include <sys/param.h>
20237 #   ifdef EXEC_PAGESIZE
20238 #    define getpagesize() EXEC_PAGESIZE
20239 #   else /* no EXEC_PAGESIZE */
20240 #    ifdef NBPG
20241 #     define getpagesize() NBPG * CLSIZE
20242 #     ifndef CLSIZE
20243 #      define CLSIZE 1
20244 #     endif /* no CLSIZE */
20245 #    else /* no NBPG */
20246 #     ifdef NBPC
20247 #      define getpagesize() NBPC
20248 #     else /* no NBPC */
20249 #      ifdef PAGESIZE
20250 #       define getpagesize() PAGESIZE
20251 #      endif /* PAGESIZE */
20252 #     endif /* no NBPC */
20253 #    endif /* no NBPG */
20254 #   endif /* no EXEC_PAGESIZE */
20255 #  else /* no HAVE_SYS_PARAM_H */
20256 #   define getpagesize() 8192   /* punt totally */
20257 #  endif /* no HAVE_SYS_PARAM_H */
20258 # endif /* no _SC_PAGESIZE */
20259
20260 #endif /* no HAVE_GETPAGESIZE */
20261
20262 int
20263 main ()
20264 {
20265   char *data, *data2, *data3;
20266   int i, pagesize;
20267   int fd;
20268
20269   pagesize = getpagesize ();
20270
20271   /* First, make a file with some known garbage in it. */
20272   data = (char *) malloc (pagesize);
20273   if (!data)
20274     return 1;
20275   for (i = 0; i < pagesize; ++i)
20276     *(data + i) = rand ();
20277   umask (0);
20278   fd = creat ("conftest.mmap", 0600);
20279   if (fd < 0)
20280     return 1;
20281   if (write (fd, data, pagesize) != pagesize)
20282     return 1;
20283   close (fd);
20284
20285   /* Next, try to mmap the file at a fixed address which already has
20286      something else allocated at it.  If we can, also make sure that
20287      we see the same garbage.  */
20288   fd = open ("conftest.mmap", O_RDWR);
20289   if (fd < 0)
20290     return 1;
20291   data2 = (char *) malloc (2 * pagesize);
20292   if (!data2)
20293     return 1;
20294   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20295   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20296                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20297     return 1;
20298   for (i = 0; i < pagesize; ++i)
20299     if (*(data + i) != *(data2 + i))
20300       return 1;
20301
20302   /* Finally, make sure that changes to the mapped area do not
20303      percolate back to the file as seen by read().  (This is a bug on
20304      some variants of i386 svr4.0.)  */
20305   for (i = 0; i < pagesize; ++i)
20306     *(data2 + i) = *(data2 + i) + 1;
20307   data3 = (char *) malloc (pagesize);
20308   if (!data3)
20309     return 1;
20310   if (read (fd, data3, pagesize) != pagesize)
20311     return 1;
20312   for (i = 0; i < pagesize; ++i)
20313     if (*(data + i) != *(data3 + i))
20314       return 1;
20315   close (fd);
20316   return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest$ac_exeext
20320 if { (ac_try="$ac_link"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_link") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20330   { (case "(($ac_try" in
20331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332   *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335   (eval "$ac_try") 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; }; then
20339   ac_cv_func_mmap_fixed_mapped=yes
20340 else
20341   echo "$as_me: program exited with status $ac_status" >&5
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ( exit $ac_status )
20346 ac_cv_func_mmap_fixed_mapped=no
20347 fi
20348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20349 fi
20350
20351
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20354 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20355 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20356
20357 cat >>confdefs.h <<\_ACEOF
20358 #define HAVE_MMAP 1
20359 _ACEOF
20360
20361 fi
20362 rm -f conftest.mmap
20363
20364   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20365 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20366 if test "${ac_cv_func_mmap_file+set}" = set; then
20367   echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369    ac_ext=c
20370 ac_cpp='$CPP $CPPFLAGS'
20371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20374
20375   if test "$cross_compiling" = yes; then
20376   ac_cv_func_mmap_file=no
20377 else
20378   cat >conftest.$ac_ext <<_ACEOF
20379
20380     /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386 #include <sys/types.h>
20387 #include <sys/mman.h>
20388 #include <fcntl.h>
20389
20390 int
20391 main ()
20392 {
20393
20394   int fd;
20395   fd = creat ("foo",0777);
20396   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20397   unlink ("foo");
20398   return (fd != (int) MAP_FAILED);
20399   ;
20400   return 0;
20401 }
20402 _ACEOF
20403 rm -f conftest$ac_exeext
20404 if { (ac_try="$ac_link"
20405 case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_link") 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20414   { (case "(($ac_try" in
20415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416   *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419   (eval "$ac_try") 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; }; then
20423   ac_cv_func_mmap_file=yes
20424 else
20425   echo "$as_me: program exited with status $ac_status" >&5
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ( exit $ac_status )
20430 ac_cv_func_mmap_file=no
20431 fi
20432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20433 fi
20434
20435
20436   ac_ext=c
20437 ac_cpp='$CPP $CPPFLAGS'
20438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20441
20442
20443 fi
20444 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20445 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20446 if test "$ac_cv_func_mmap_file" = yes; then
20447
20448 cat >>confdefs.h <<\_ACEOF
20449 #define HAVE_MMAP_FILE
20450 _ACEOF
20451
20452    MMAP_FILE=yes
20453
20454 fi
20455
20456   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20457 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20458 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20459   echo $ECHO_N "(cached) $ECHO_C" >&6
20460 else
20461   if test "$llvm_cv_os_type" = "Interix" ; then
20462    ac_cv_need_dev_zero_for_mmap=yes
20463  else
20464    ac_cv_need_dev_zero_for_mmap=no
20465  fi
20466
20467 fi
20468 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20469 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20470 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20471
20472 cat >>confdefs.h <<\_ACEOF
20473 #define NEED_DEV_ZERO_FOR_MMAP 1
20474 _ACEOF
20475
20476 fi
20477
20478   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20479   then
20480     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20481 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20482   fi
20483   if test "$ac_cv_func_mmap_file" = "no"
20484   then
20485     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20486 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20487   fi
20488 fi
20489
20490 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20491 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20492 ac_ext=cpp
20493 ac_cpp='$CXXCPP $CPPFLAGS'
20494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20497
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504 int main() {
20505         volatile unsigned long val = 1;
20506         __sync_synchronize();
20507         __sync_val_compare_and_swap(&val, 1, 0);
20508         __sync_add_and_fetch(&val, 1);
20509         __sync_sub_and_fetch(&val, 1);
20510         return 0;
20511       }
20512
20513 _ACEOF
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518   *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521   (eval "$ac_link") 2>conftest.er1
20522   ac_status=$?
20523   grep -v '^ *+' conftest.er1 >conftest.err
20524   rm -f conftest.er1
20525   cat conftest.err >&5
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); } &&
20528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20529   { (case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_try") 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; } &&
20538          { ac_try='test -s conftest$ac_exeext'
20539   { (case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544   (eval "$ac_try") 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; }; then
20548   ac_ext=c
20549 ac_cpp='$CPP $CPPFLAGS'
20550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553
20554   { echo "$as_me:$LINENO: result: yes" >&5
20555 echo "${ECHO_T}yes" >&6; }
20556
20557 cat >>confdefs.h <<\_ACEOF
20558 #define LLVM_HAS_ATOMICS 1
20559 _ACEOF
20560
20561 else
20562   echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565         { echo "$as_me:$LINENO: result: no" >&5
20566 echo "${ECHO_T}no" >&6; }
20567
20568 cat >>confdefs.h <<\_ACEOF
20569 #define LLVM_HAS_ATOMICS 0
20570 _ACEOF
20571
20572   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20573 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20574 fi
20575
20576 rm -f core conftest.err conftest.$ac_objext \
20577       conftest$ac_exeext conftest.$ac_ext
20578
20579
20580 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20581   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20582 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20583 if test "${llvm_cv_linux_mixed+set}" = set; then
20584   echo $ECHO_N "(cached) $ECHO_C" >&6
20585 else
20586    ac_ext=c
20587 ac_cpp='$CPP $CPPFLAGS'
20588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20591
20592   cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 #ifndef __x86_64__
20599        error: Not x86-64 even if uname says so!
20600       #endif
20601
20602 int
20603 main ()
20604 {
20605
20606   ;
20607   return 0;
20608 }
20609 _ACEOF
20610 rm -f conftest.$ac_objext
20611 if { (ac_try="$ac_compile"
20612 case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_compile") 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } &&
20624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20625   { (case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_try") 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; } &&
20634          { ac_try='test -s conftest.$ac_objext'
20635   { (case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_try") 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; }; then
20644   llvm_cv_linux_mixed=no
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649         llvm_cv_linux_mixed=yes
20650 fi
20651
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653   ac_ext=c
20654 ac_cpp='$CPP $CPPFLAGS'
20655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20658
20659
20660 fi
20661 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20662 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20663
20664   if test "$llvm_cv_linux_mixed" = "yes"; then
20665     llvm_cv_target_arch="x86"
20666     ARCH="x86"
20667   fi
20668 fi
20669
20670
20671 for ac_func in __dso_handle
20672 do
20673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20677   echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679   cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h.  */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h.  */
20685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20687 #define $ac_func innocuous_$ac_func
20688
20689 /* System header to define __stub macros and hopefully few prototypes,
20690     which can conflict with char $ac_func (); below.
20691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20692     <limits.h> exists even on freestanding compilers.  */
20693
20694 #ifdef __STDC__
20695 # include <limits.h>
20696 #else
20697 # include <assert.h>
20698 #endif
20699
20700 #undef $ac_func
20701
20702 /* Override any GCC internal prototype to avoid an error.
20703    Use char because int might match the return type of a GCC
20704    builtin and then its argument prototype would still apply.  */
20705 #ifdef __cplusplus
20706 extern "C"
20707 #endif
20708 char $ac_func ();
20709 /* The GNU C library defines this for functions which it implements
20710     to always fail with ENOSYS.  Some functions are actually named
20711     something starting with __ and the normal name is an alias.  */
20712 #if defined __stub_$ac_func || defined __stub___$ac_func
20713 choke me
20714 #endif
20715
20716 int
20717 main ()
20718 {
20719 return $ac_func ();
20720   ;
20721   return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (ac_try="$ac_link"
20726 case "(($ac_try" in
20727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728   *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731   (eval "$ac_link") 2>conftest.er1
20732   ac_status=$?
20733   grep -v '^ *+' conftest.er1 >conftest.err
20734   rm -f conftest.er1
20735   cat conftest.err >&5
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); } &&
20738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20739   { (case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_try") 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; } &&
20748          { ac_try='test -s conftest$ac_exeext'
20749   { (case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_try") 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); }; }; then
20758   eval "$as_ac_var=yes"
20759 else
20760   echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763         eval "$as_ac_var=no"
20764 fi
20765
20766 rm -f core conftest.err conftest.$ac_objext \
20767       conftest$ac_exeext conftest.$ac_ext
20768 fi
20769 ac_res=`eval echo '${'$as_ac_var'}'`
20770                { echo "$as_me:$LINENO: result: $ac_res" >&5
20771 echo "${ECHO_T}$ac_res" >&6; }
20772 if test `eval echo '${'$as_ac_var'}'` = yes; then
20773   cat >>confdefs.h <<_ACEOF
20774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20775 _ACEOF
20776
20777 fi
20778 done
20779
20780
20781 SHLIBEXT=$libltdl_cv_shlibext
20782
20783
20784 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20785
20786
20787 # Translate the various configuration directories and other basic
20788 # information into substitutions that will end up in Makefile.config.in
20789 # that these configured values can be used by the makefiles
20790 if test "${prefix}" = "NONE" ; then
20791   prefix="/usr/local"
20792 fi
20793 eval LLVM_PREFIX="${prefix}";
20794 eval LLVM_BINDIR="${prefix}/bin";
20795 eval LLVM_LIBDIR="${prefix}/lib";
20796 eval LLVM_DATADIR="${prefix}/share/llvm";
20797 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20798 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20799 eval LLVM_INCLUDEDIR="${prefix}/include";
20800 eval LLVM_INFODIR="${prefix}/info";
20801 eval LLVM_MANDIR="${prefix}/man";
20802 LLVM_CONFIGTIME=`date`
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814 # Place the various directores into the config.h file as #defines so that we
20815 # can know about the installation paths within LLVM.
20816
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_PREFIX "$LLVM_PREFIX"
20819 _ACEOF
20820
20821
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_BINDIR "$LLVM_BINDIR"
20824 _ACEOF
20825
20826
20827 cat >>confdefs.h <<_ACEOF
20828 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20829 _ACEOF
20830
20831
20832 cat >>confdefs.h <<_ACEOF
20833 #define LLVM_DATADIR "$LLVM_DATADIR"
20834 _ACEOF
20835
20836
20837 cat >>confdefs.h <<_ACEOF
20838 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20839 _ACEOF
20840
20841
20842 cat >>confdefs.h <<_ACEOF
20843 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20844 _ACEOF
20845
20846
20847 cat >>confdefs.h <<_ACEOF
20848 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20849 _ACEOF
20850
20851
20852 cat >>confdefs.h <<_ACEOF
20853 #define LLVM_INFODIR "$LLVM_INFODIR"
20854 _ACEOF
20855
20856
20857 cat >>confdefs.h <<_ACEOF
20858 #define LLVM_MANDIR "$LLVM_MANDIR"
20859 _ACEOF
20860
20861
20862 cat >>confdefs.h <<_ACEOF
20863 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20864 _ACEOF
20865
20866
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20869 _ACEOF
20870
20871
20872 # Determine which bindings to build.
20873 if test "$BINDINGS_TO_BUILD" = auto ; then
20874   BINDINGS_TO_BUILD=""
20875   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20876     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20877   fi
20878 fi
20879 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20880
20881
20882 # This isn't really configurey, but it avoids having to repeat the list in
20883 # other files.
20884 ALL_BINDINGS=ocaml
20885
20886
20887 # Do any work necessary to ensure that bindings have what they need.
20888 binding_prereqs_failed=0
20889 for a_binding in $BINDINGS_TO_BUILD ; do
20890   case "$a_binding" in
20891   ocaml)
20892     if test "x$OCAMLC" = x ; then
20893       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20894 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20895       binding_prereqs_failed=1
20896     fi
20897     if test "x$OCAMLDEP" = x ; then
20898       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20900       binding_prereqs_failed=1
20901     fi
20902     if test "x$OCAMLOPT" = x ; then
20903       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20904 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20905           fi
20906     if test "x$with_ocaml_libdir" != xauto ; then
20907       OCAML_LIBDIR=$with_ocaml_libdir
20908
20909     else
20910       ocaml_stdlib="`"$OCAMLC" -where`"
20911       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20912       then
20913         # ocaml stdlib is beneath our prefix; use stdlib
20914         OCAML_LIBDIR=$ocaml_stdlib
20915
20916       else
20917         # ocaml stdlib is outside our prefix; use libdir/ocaml
20918         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20919
20920       fi
20921     fi
20922     ;;
20923   esac
20924 done
20925 if test "$binding_prereqs_failed" = 1 ; then
20926   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20927 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20928    { (exit 1); exit 1; }; }
20929 fi
20930
20931 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20932 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20933 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936    ac_ext=cpp
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942   oldcxxflags="$CXXFLAGS"
20943   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950
20951 int
20952 main ()
20953 {
20954
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963   *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966   (eval "$ac_compile") 2>conftest.er1
20967   ac_status=$?
20968   grep -v '^ *+' conftest.er1 >conftest.err
20969   rm -f conftest.er1
20970   cat conftest.err >&5
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); } &&
20973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974   { (case "(($ac_try" in
20975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976   *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979   (eval "$ac_try") 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; } &&
20983          { ac_try='test -s conftest.$ac_objext'
20984   { (case "(($ac_try" in
20985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986   *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989   (eval "$ac_try") 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }; then
20993   llvm_cv_cxx_visibility_inlines_hidden=yes
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998         llvm_cv_cxx_visibility_inlines_hidden=no
20999 fi
21000
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002   CXXFLAGS="$oldcxxflags"
21003   ac_ext=c
21004 ac_cpp='$CPP $CPPFLAGS'
21005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010 fi
21011 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21012 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21013 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21014   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21015
21016 else
21017   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21018
21019 fi
21020
21021
21022 if test "$llvm_cv_link_use_r" = "yes" ; then
21023   RPATH="-Wl,-R"
21024 else
21025   RPATH="-Wl,-rpath"
21026 fi
21027
21028
21029 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21030   RDYNAMIC="-Wl,-export-dynamic"
21031 else
21032   RDYNAMIC=""
21033 fi
21034
21035
21036
21037 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21038
21039
21040
21041
21042
21043
21044 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21045
21046 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21047
21048 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21049
21050 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21051
21052 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21053
21054
21055 ac_config_files="$ac_config_files Makefile.config"
21056
21057
21058 ac_config_files="$ac_config_files llvm.spec"
21059
21060
21061 ac_config_files="$ac_config_files docs/doxygen.cfg"
21062
21063 if test -f ${srcdir}/tools/clang/README.txt; then
21064   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21065
21066 fi
21067
21068
21069
21070
21071 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21072
21073
21074 ac_config_commands="$ac_config_commands setup"
21075
21076 ac_config_commands="$ac_config_commands Makefile"
21077
21078
21079 ac_config_commands="$ac_config_commands Makefile.common"
21080
21081
21082 ac_config_commands="$ac_config_commands examples/Makefile"
21083
21084
21085 ac_config_commands="$ac_config_commands lib/Makefile"
21086
21087
21088 ac_config_commands="$ac_config_commands runtime/Makefile"
21089
21090
21091 ac_config_commands="$ac_config_commands test/Makefile"
21092
21093
21094 ac_config_commands="$ac_config_commands test/Makefile.tests"
21095
21096
21097 ac_config_commands="$ac_config_commands unittests/Makefile"
21098
21099
21100 ac_config_commands="$ac_config_commands tools/Makefile"
21101
21102
21103 ac_config_commands="$ac_config_commands utils/Makefile"
21104
21105
21106 ac_config_commands="$ac_config_commands projects/Makefile"
21107
21108
21109 ac_config_commands="$ac_config_commands bindings/Makefile"
21110
21111
21112 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21113
21114
21115
21116 cat >confcache <<\_ACEOF
21117 # This file is a shell script that caches the results of configure
21118 # tests run on this system so they can be shared between configure
21119 # scripts and configure runs, see configure's option --config-cache.
21120 # It is not useful on other systems.  If it contains results you don't
21121 # want to keep, you may remove or edit it.
21122 #
21123 # config.status only pays attention to the cache file if you give it
21124 # the --recheck option to rerun configure.
21125 #
21126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21128 # following values.
21129
21130 _ACEOF
21131
21132 # The following way of writing the cache mishandles newlines in values,
21133 # but we know of no workaround that is simple, portable, and efficient.
21134 # So, we kill variables containing newlines.
21135 # Ultrix sh set writes to stderr and can't be redirected directly,
21136 # and sets the high bit in the cache file unless we assign to the vars.
21137 (
21138   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21139     eval ac_val=\$$ac_var
21140     case $ac_val in #(
21141     *${as_nl}*)
21142       case $ac_var in #(
21143       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21144 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21145       esac
21146       case $ac_var in #(
21147       _ | IFS | as_nl) ;; #(
21148       *) $as_unset $ac_var ;;
21149       esac ;;
21150     esac
21151   done
21152
21153   (set) 2>&1 |
21154     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21155     *${as_nl}ac_space=\ *)
21156       # `set' does not quote correctly, so add quotes (double-quote
21157       # substitution turns \\\\ into \\, and sed turns \\ into \).
21158       sed -n \
21159         "s/'/'\\\\''/g;
21160           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21161       ;; #(
21162     *)
21163       # `set' quotes correctly as required by POSIX, so do not add quotes.
21164       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21165       ;;
21166     esac |
21167     sort
21168 ) |
21169   sed '
21170      /^ac_cv_env_/b end
21171      t clear
21172      :clear
21173      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21174      t end
21175      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21176      :end' >>confcache
21177 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21178   if test -w "$cache_file"; then
21179     test "x$cache_file" != "x/dev/null" &&
21180       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21181 echo "$as_me: updating cache $cache_file" >&6;}
21182     cat confcache >$cache_file
21183   else
21184     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21185 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21186   fi
21187 fi
21188 rm -f confcache
21189
21190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21191 # Let make expand exec_prefix.
21192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21193
21194 DEFS=-DHAVE_CONFIG_H
21195
21196 ac_libobjs=
21197 ac_ltlibobjs=
21198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21199   # 1. Remove the extension, and $U if already installed.
21200   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21201   ac_i=`echo "$ac_i" | sed "$ac_script"`
21202   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21203   #    will be set to the directory where LIBOBJS objects are built.
21204   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21205   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21206 done
21207 LIBOBJS=$ac_libobjs
21208
21209 LTLIBOBJS=$ac_ltlibobjs
21210
21211
21212 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21213   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21214 Usually this means the macro was only invoked conditionally." >&5
21215 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21216 Usually this means the macro was only invoked conditionally." >&2;}
21217    { (exit 1); exit 1; }; }
21218 fi
21219 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21220   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21221 Usually this means the macro was only invoked conditionally." >&5
21222 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21223 Usually this means the macro was only invoked conditionally." >&2;}
21224    { (exit 1); exit 1; }; }
21225 fi
21226
21227 : ${CONFIG_STATUS=./config.status}
21228 ac_clean_files_save=$ac_clean_files
21229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21230 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21231 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21232 cat >$CONFIG_STATUS <<_ACEOF
21233 #! $SHELL
21234 # Generated by $as_me.
21235 # Run this file to recreate the current configuration.
21236 # Compiler output produced by configure, useful for debugging
21237 # configure, is in config.log if it exists.
21238
21239 debug=false
21240 ac_cs_recheck=false
21241 ac_cs_silent=false
21242 SHELL=\${CONFIG_SHELL-$SHELL}
21243 _ACEOF
21244
21245 cat >>$CONFIG_STATUS <<\_ACEOF
21246 ## --------------------- ##
21247 ## M4sh Initialization.  ##
21248 ## --------------------- ##
21249
21250 # Be Bourne compatible
21251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21252   emulate sh
21253   NULLCMD=:
21254   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21255   # is contrary to our usage.  Disable this feature.
21256   alias -g '${1+"$@"}'='"$@"'
21257   setopt NO_GLOB_SUBST
21258 else
21259   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21260 fi
21261 BIN_SH=xpg4; export BIN_SH # for Tru64
21262 DUALCASE=1; export DUALCASE # for MKS sh
21263
21264
21265 # PATH needs CR
21266 # Avoid depending upon Character Ranges.
21267 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21268 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21269 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21270 as_cr_digits='0123456789'
21271 as_cr_alnum=$as_cr_Letters$as_cr_digits
21272
21273 # The user is always right.
21274 if test "${PATH_SEPARATOR+set}" != set; then
21275   echo "#! /bin/sh" >conf$$.sh
21276   echo  "exit 0"   >>conf$$.sh
21277   chmod +x conf$$.sh
21278   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21279     PATH_SEPARATOR=';'
21280   else
21281     PATH_SEPARATOR=:
21282   fi
21283   rm -f conf$$.sh
21284 fi
21285
21286 # Support unset when possible.
21287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21288   as_unset=unset
21289 else
21290   as_unset=false
21291 fi
21292
21293
21294 # IFS
21295 # We need space, tab and new line, in precisely that order.  Quoting is
21296 # there to prevent editors from complaining about space-tab.
21297 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21298 # splitting by setting IFS to empty value.)
21299 as_nl='
21300 '
21301 IFS=" ""        $as_nl"
21302
21303 # Find who we are.  Look in the path if we contain no directory separator.
21304 case $0 in
21305   *[\\/]* ) as_myself=$0 ;;
21306   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21307 for as_dir in $PATH
21308 do
21309   IFS=$as_save_IFS
21310   test -z "$as_dir" && as_dir=.
21311   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21312 done
21313 IFS=$as_save_IFS
21314
21315      ;;
21316 esac
21317 # We did not find ourselves, most probably we were run as `sh COMMAND'
21318 # in which case we are not to be found in the path.
21319 if test "x$as_myself" = x; then
21320   as_myself=$0
21321 fi
21322 if test ! -f "$as_myself"; then
21323   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21324   { (exit 1); exit 1; }
21325 fi
21326
21327 # Work around bugs in pre-3.0 UWIN ksh.
21328 for as_var in ENV MAIL MAILPATH
21329 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21330 done
21331 PS1='$ '
21332 PS2='> '
21333 PS4='+ '
21334
21335 # NLS nuisances.
21336 for as_var in \
21337   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21338   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21339   LC_TELEPHONE LC_TIME
21340 do
21341   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21342     eval $as_var=C; export $as_var
21343   else
21344     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21345   fi
21346 done
21347
21348 # Required to use basename.
21349 if expr a : '\(a\)' >/dev/null 2>&1 &&
21350    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21351   as_expr=expr
21352 else
21353   as_expr=false
21354 fi
21355
21356 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21357   as_basename=basename
21358 else
21359   as_basename=false
21360 fi
21361
21362
21363 # Name of the executable.
21364 as_me=`$as_basename -- "$0" ||
21365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21366          X"$0" : 'X\(//\)$' \| \
21367          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21368 echo X/"$0" |
21369     sed '/^.*\/\([^/][^/]*\)\/*$/{
21370             s//\1/
21371             q
21372           }
21373           /^X\/\(\/\/\)$/{
21374             s//\1/
21375             q
21376           }
21377           /^X\/\(\/\).*/{
21378             s//\1/
21379             q
21380           }
21381           s/.*/./; q'`
21382
21383 # CDPATH.
21384 $as_unset CDPATH
21385
21386
21387
21388   as_lineno_1=$LINENO
21389   as_lineno_2=$LINENO
21390   test "x$as_lineno_1" != "x$as_lineno_2" &&
21391   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21392
21393   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21394   # uniformly replaced by the line number.  The first 'sed' inserts a
21395   # line-number line after each line using $LINENO; the second 'sed'
21396   # does the real work.  The second script uses 'N' to pair each
21397   # line-number line with the line containing $LINENO, and appends
21398   # trailing '-' during substitution so that $LINENO is not a special
21399   # case at line end.
21400   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21401   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21402   # E. McMahon (1931-1989) for sed's syntax.  :-)
21403   sed -n '
21404     p
21405     /[$]LINENO/=
21406   ' <$as_myself |
21407     sed '
21408       s/[$]LINENO.*/&-/
21409       t lineno
21410       b
21411       :lineno
21412       N
21413       :loop
21414       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21415       t loop
21416       s/-\n.*//
21417     ' >$as_me.lineno &&
21418   chmod +x "$as_me.lineno" ||
21419     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21420    { (exit 1); exit 1; }; }
21421
21422   # Don't try to exec as it changes $[0], causing all sort of problems
21423   # (the dirname of $[0] is not the place where we might find the
21424   # original and so on.  Autoconf is especially sensitive to this).
21425   . "./$as_me.lineno"
21426   # Exit status is that of the last command.
21427   exit
21428 }
21429
21430
21431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21432   as_dirname=dirname
21433 else
21434   as_dirname=false
21435 fi
21436
21437 ECHO_C= ECHO_N= ECHO_T=
21438 case `echo -n x` in
21439 -n*)
21440   case `echo 'x\c'` in
21441   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21442   *)   ECHO_C='\c';;
21443   esac;;
21444 *)
21445   ECHO_N='-n';;
21446 esac
21447
21448 if expr a : '\(a\)' >/dev/null 2>&1 &&
21449    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21450   as_expr=expr
21451 else
21452   as_expr=false
21453 fi
21454
21455 rm -f conf$$ conf$$.exe conf$$.file
21456 if test -d conf$$.dir; then
21457   rm -f conf$$.dir/conf$$.file
21458 else
21459   rm -f conf$$.dir
21460   mkdir conf$$.dir
21461 fi
21462 echo >conf$$.file
21463 if ln -s conf$$.file conf$$ 2>/dev/null; then
21464   as_ln_s='ln -s'
21465   # ... but there are two gotchas:
21466   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21467   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21468   # In both cases, we have to default to `cp -p'.
21469   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21470     as_ln_s='cp -p'
21471 elif ln conf$$.file conf$$ 2>/dev/null; then
21472   as_ln_s=ln
21473 else
21474   as_ln_s='cp -p'
21475 fi
21476 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21477 rmdir conf$$.dir 2>/dev/null
21478
21479 if mkdir -p . 2>/dev/null; then
21480   as_mkdir_p=:
21481 else
21482   test -d ./-p && rmdir ./-p
21483   as_mkdir_p=false
21484 fi
21485
21486 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21487 # systems may use methods other than mode bits to determine executability.
21488 cat >conf$$.file <<_ASEOF
21489 #! /bin/sh
21490 exit 0
21491 _ASEOF
21492 chmod +x conf$$.file
21493 if test -x conf$$.file >/dev/null 2>&1; then
21494   as_executable_p="test -x"
21495 else
21496   as_executable_p=:
21497 fi
21498 rm -f conf$$.file
21499
21500 # Sed expression to map a string onto a valid CPP name.
21501 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21502
21503 # Sed expression to map a string onto a valid variable name.
21504 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21505
21506
21507 exec 6>&1
21508
21509 # Save the log message, to keep $[0] and so on meaningful, and to
21510 # report actual input values of CONFIG_FILES etc. instead of their
21511 # values after options handling.
21512 ac_log="
21513 This file was extended by llvm $as_me 3.1svn, which was
21514 generated by GNU Autoconf 2.60.  Invocation command line was
21515
21516   CONFIG_FILES    = $CONFIG_FILES
21517   CONFIG_HEADERS  = $CONFIG_HEADERS
21518   CONFIG_LINKS    = $CONFIG_LINKS
21519   CONFIG_COMMANDS = $CONFIG_COMMANDS
21520   $ $0 $@
21521
21522 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21523 "
21524
21525 _ACEOF
21526
21527 cat >>$CONFIG_STATUS <<_ACEOF
21528 # Files that config.status was made for.
21529 config_files="$ac_config_files"
21530 config_headers="$ac_config_headers"
21531 config_commands="$ac_config_commands"
21532
21533 _ACEOF
21534
21535 cat >>$CONFIG_STATUS <<\_ACEOF
21536 ac_cs_usage="\
21537 \`$as_me' instantiates files from templates according to the
21538 current configuration.
21539
21540 Usage: $0 [OPTIONS] [FILE]...
21541
21542   -h, --help       print this help, then exit
21543   -V, --version    print version number, then exit
21544   -q, --quiet      do not print progress messages
21545   -d, --debug      don't remove temporary files
21546       --recheck    update $as_me by reconfiguring in the same conditions
21547   --file=FILE[:TEMPLATE]
21548                    instantiate the configuration file FILE
21549   --header=FILE[:TEMPLATE]
21550                    instantiate the configuration header FILE
21551
21552 Configuration files:
21553 $config_files
21554
21555 Configuration headers:
21556 $config_headers
21557
21558 Configuration commands:
21559 $config_commands
21560
21561 Report bugs to <bug-autoconf@gnu.org>."
21562
21563 _ACEOF
21564 cat >>$CONFIG_STATUS <<_ACEOF
21565 ac_cs_version="\\
21566 llvm config.status 3.1svn
21567 configured by $0, generated by GNU Autoconf 2.60,
21568   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21569
21570 Copyright (C) 2006 Free Software Foundation, Inc.
21571 This config.status script is free software; the Free Software Foundation
21572 gives unlimited permission to copy, distribute and modify it."
21573
21574 ac_pwd='$ac_pwd'
21575 srcdir='$srcdir'
21576 INSTALL='$INSTALL'
21577 _ACEOF
21578
21579 cat >>$CONFIG_STATUS <<\_ACEOF
21580 # If no file are specified by the user, then we need to provide default
21581 # value.  By we need to know if files were specified by the user.
21582 ac_need_defaults=:
21583 while test $# != 0
21584 do
21585   case $1 in
21586   --*=*)
21587     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21588     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21589     ac_shift=:
21590     ;;
21591   *)
21592     ac_option=$1
21593     ac_optarg=$2
21594     ac_shift=shift
21595     ;;
21596   esac
21597
21598   case $ac_option in
21599   # Handling of the options.
21600   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21601     ac_cs_recheck=: ;;
21602   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21603     echo "$ac_cs_version"; exit ;;
21604   --debug | --debu | --deb | --de | --d | -d )
21605     debug=: ;;
21606   --file | --fil | --fi | --f )
21607     $ac_shift
21608     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21609     ac_need_defaults=false;;
21610   --header | --heade | --head | --hea )
21611     $ac_shift
21612     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21613     ac_need_defaults=false;;
21614   --he | --h)
21615     # Conflict between --help and --header
21616     { echo "$as_me: error: ambiguous option: $1
21617 Try \`$0 --help' for more information." >&2
21618    { (exit 1); exit 1; }; };;
21619   --help | --hel | -h )
21620     echo "$ac_cs_usage"; exit ;;
21621   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21622   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21623     ac_cs_silent=: ;;
21624
21625   # This is an error.
21626   -*) { echo "$as_me: error: unrecognized option: $1
21627 Try \`$0 --help' for more information." >&2
21628    { (exit 1); exit 1; }; } ;;
21629
21630   *) ac_config_targets="$ac_config_targets $1"
21631      ac_need_defaults=false ;;
21632
21633   esac
21634   shift
21635 done
21636
21637 ac_configure_extra_args=
21638
21639 if $ac_cs_silent; then
21640   exec 6>/dev/null
21641   ac_configure_extra_args="$ac_configure_extra_args --silent"
21642 fi
21643
21644 _ACEOF
21645 cat >>$CONFIG_STATUS <<_ACEOF
21646 if \$ac_cs_recheck; then
21647   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21648   CONFIG_SHELL=$SHELL
21649   export CONFIG_SHELL
21650   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21651 fi
21652
21653 _ACEOF
21654 cat >>$CONFIG_STATUS <<\_ACEOF
21655 exec 5>>config.log
21656 {
21657   echo
21658   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21659 ## Running $as_me. ##
21660 _ASBOX
21661   echo "$ac_log"
21662 } >&5
21663
21664 _ACEOF
21665 cat >>$CONFIG_STATUS <<_ACEOF
21666 #
21667 # INIT-COMMANDS
21668 #
21669 llvm_src="${srcdir}"
21670
21671 _ACEOF
21672
21673 cat >>$CONFIG_STATUS <<\_ACEOF
21674
21675 # Handling of arguments.
21676 for ac_config_target in $ac_config_targets
21677 do
21678   case $ac_config_target in
21679     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21680     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21681     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21682     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21683     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21684     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21685     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21686     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21687     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21688     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21689     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21690     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21691     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21692     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21693     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21694     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21695     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21696     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21697     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21698     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21699     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21700     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21701     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21702     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21703     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21704     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21705     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21706
21707   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21708 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21709    { (exit 1); exit 1; }; };;
21710   esac
21711 done
21712
21713
21714 # If the user did not use the arguments to specify the items to instantiate,
21715 # then the envvar interface is used.  Set only those that are not.
21716 # We use the long form for the default assignment because of an extremely
21717 # bizarre bug on SunOS 4.1.3.
21718 if $ac_need_defaults; then
21719   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21720   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21721   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21722 fi
21723
21724 # Have a temporary directory for convenience.  Make it in the build tree
21725 # simply because there is no reason against having it here, and in addition,
21726 # creating and moving files from /tmp can sometimes cause problems.
21727 # Hook for its removal unless debugging.
21728 # Note that there is a small window in which the directory will not be cleaned:
21729 # after its creation but before its name has been assigned to `$tmp'.
21730 $debug ||
21731 {
21732   tmp=
21733   trap 'exit_status=$?
21734   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21735 ' 0
21736   trap '{ (exit 1); exit 1; }' 1 2 13 15
21737 }
21738 # Create a (secure) tmp directory for tmp files.
21739
21740 {
21741   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21742   test -n "$tmp" && test -d "$tmp"
21743 }  ||
21744 {
21745   tmp=./conf$$-$RANDOM
21746   (umask 077 && mkdir "$tmp")
21747 } ||
21748 {
21749    echo "$me: cannot create a temporary directory in ." >&2
21750    { (exit 1); exit 1; }
21751 }
21752
21753 #
21754 # Set up the sed scripts for CONFIG_FILES section.
21755 #
21756
21757 # No need to generate the scripts if there are no CONFIG_FILES.
21758 # This happens for instance when ./config.status config.h
21759 if test -n "$CONFIG_FILES"; then
21760
21761 _ACEOF
21762
21763
21764
21765 ac_delim='%!_!# '
21766 for ac_last_try in false false false false false :; do
21767   cat >conf$$subs.sed <<_ACEOF
21768 SHELL!$SHELL$ac_delim
21769 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21770 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21771 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21772 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21773 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21774 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21775 exec_prefix!$exec_prefix$ac_delim
21776 prefix!$prefix$ac_delim
21777 program_transform_name!$program_transform_name$ac_delim
21778 bindir!$bindir$ac_delim
21779 sbindir!$sbindir$ac_delim
21780 libexecdir!$libexecdir$ac_delim
21781 datarootdir!$datarootdir$ac_delim
21782 datadir!$datadir$ac_delim
21783 sysconfdir!$sysconfdir$ac_delim
21784 sharedstatedir!$sharedstatedir$ac_delim
21785 localstatedir!$localstatedir$ac_delim
21786 includedir!$includedir$ac_delim
21787 oldincludedir!$oldincludedir$ac_delim
21788 docdir!$docdir$ac_delim
21789 infodir!$infodir$ac_delim
21790 htmldir!$htmldir$ac_delim
21791 dvidir!$dvidir$ac_delim
21792 pdfdir!$pdfdir$ac_delim
21793 psdir!$psdir$ac_delim
21794 libdir!$libdir$ac_delim
21795 localedir!$localedir$ac_delim
21796 mandir!$mandir$ac_delim
21797 DEFS!$DEFS$ac_delim
21798 ECHO_C!$ECHO_C$ac_delim
21799 ECHO_N!$ECHO_N$ac_delim
21800 ECHO_T!$ECHO_T$ac_delim
21801 LIBS!$LIBS$ac_delim
21802 build_alias!$build_alias$ac_delim
21803 host_alias!$host_alias$ac_delim
21804 target_alias!$target_alias$ac_delim
21805 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21806 CC!$CC$ac_delim
21807 CFLAGS!$CFLAGS$ac_delim
21808 LDFLAGS!$LDFLAGS$ac_delim
21809 CPPFLAGS!$CPPFLAGS$ac_delim
21810 ac_ct_CC!$ac_ct_CC$ac_delim
21811 EXEEXT!$EXEEXT$ac_delim
21812 OBJEXT!$OBJEXT$ac_delim
21813 CXX!$CXX$ac_delim
21814 CXXFLAGS!$CXXFLAGS$ac_delim
21815 ac_ct_CXX!$ac_ct_CXX$ac_delim
21816 CPP!$CPP$ac_delim
21817 subdirs!$subdirs$ac_delim
21818 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21819 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21820 build!$build$ac_delim
21821 build_cpu!$build_cpu$ac_delim
21822 build_vendor!$build_vendor$ac_delim
21823 build_os!$build_os$ac_delim
21824 host!$host$ac_delim
21825 host_cpu!$host_cpu$ac_delim
21826 host_vendor!$host_vendor$ac_delim
21827 host_os!$host_os$ac_delim
21828 target!$target$ac_delim
21829 target_cpu!$target_cpu$ac_delim
21830 target_vendor!$target_vendor$ac_delim
21831 target_os!$target_os$ac_delim
21832 OS!$OS$ac_delim
21833 HOST_OS!$HOST_OS$ac_delim
21834 TARGET_OS!$TARGET_OS$ac_delim
21835 LINKALL!$LINKALL$ac_delim
21836 NOLINKALL!$NOLINKALL$ac_delim
21837 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21838 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21839 ARCH!$ARCH$ac_delim
21840 ENDIAN!$ENDIAN$ac_delim
21841 GREP!$GREP$ac_delim
21842 EGREP!$EGREP$ac_delim
21843 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21844 BUILD_CC!$BUILD_CC$ac_delim
21845 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21846 BUILD_CXX!$BUILD_CXX$ac_delim
21847 CVSBUILD!$CVSBUILD$ac_delim
21848 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21849 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21850 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21851 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21852 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21853 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21854 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21855 JIT!$JIT$ac_delim
21856 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21857 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21858 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21859 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21860 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21861 ENABLE_PIC!$ENABLE_PIC$ac_delim
21862 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21863 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21864 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21865 _ACEOF
21866
21867   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21868     break
21869   elif $ac_last_try; then
21870     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21871 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21872    { (exit 1); exit 1; }; }
21873   else
21874     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21875   fi
21876 done
21877
21878 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21879 if test -n "$ac_eof"; then
21880   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21881   ac_eof=`expr $ac_eof + 1`
21882 fi
21883
21884 cat >>$CONFIG_STATUS <<_ACEOF
21885 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21887 _ACEOF
21888 sed '
21889 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21890 s/^/s,@/; s/!/@,|#_!!_#|/
21891 :n
21892 t n
21893 s/'"$ac_delim"'$/,g/; t
21894 s/$/\\/; p
21895 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21896 ' >>$CONFIG_STATUS <conf$$subs.sed
21897 rm -f conf$$subs.sed
21898 cat >>$CONFIG_STATUS <<_ACEOF
21899 CEOF$ac_eof
21900 _ACEOF
21901
21902
21903 ac_delim='%!_!# '
21904 for ac_last_try in false false false false false :; do
21905   cat >conf$$subs.sed <<_ACEOF
21906 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21907 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21908 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21909 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21910 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21911 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21912 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21913 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21914 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21915 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21916 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21917 NM!$NM$ac_delim
21918 ifGNUmake!$ifGNUmake$ac_delim
21919 LN_S!$LN_S$ac_delim
21920 CMP!$CMP$ac_delim
21921 CP!$CP$ac_delim
21922 DATE!$DATE$ac_delim
21923 FIND!$FIND$ac_delim
21924 MKDIR!$MKDIR$ac_delim
21925 MV!$MV$ac_delim
21926 RANLIB!$RANLIB$ac_delim
21927 AR!$AR$ac_delim
21928 RM!$RM$ac_delim
21929 SED!$SED$ac_delim
21930 TAR!$TAR$ac_delim
21931 BINPWD!$BINPWD$ac_delim
21932 GRAPHVIZ!$GRAPHVIZ$ac_delim
21933 DOT!$DOT$ac_delim
21934 FDP!$FDP$ac_delim
21935 NEATO!$NEATO$ac_delim
21936 TWOPI!$TWOPI$ac_delim
21937 CIRCO!$CIRCO$ac_delim
21938 GV!$GV$ac_delim
21939 DOTTY!$DOTTY$ac_delim
21940 XDOT_PY!$XDOT_PY$ac_delim
21941 PERL!$PERL$ac_delim
21942 HAVE_PERL!$HAVE_PERL$ac_delim
21943 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21944 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21945 INSTALL_DATA!$INSTALL_DATA$ac_delim
21946 BZIP2!$BZIP2$ac_delim
21947 CAT!$CAT$ac_delim
21948 DOXYGEN!$DOXYGEN$ac_delim
21949 GROFF!$GROFF$ac_delim
21950 GZIPBIN!$GZIPBIN$ac_delim
21951 POD2HTML!$POD2HTML$ac_delim
21952 POD2MAN!$POD2MAN$ac_delim
21953 PDFROFF!$PDFROFF$ac_delim
21954 RUNTEST!$RUNTEST$ac_delim
21955 TCLSH!$TCLSH$ac_delim
21956 ZIP!$ZIP$ac_delim
21957 OCAMLC!$OCAMLC$ac_delim
21958 OCAMLOPT!$OCAMLOPT$ac_delim
21959 OCAMLDEP!$OCAMLDEP$ac_delim
21960 OCAMLDOC!$OCAMLDOC$ac_delim
21961 GAS!$GAS$ac_delim
21962 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21963 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21964 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21965 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21966 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21967 LIBADD_DL!$LIBADD_DL$ac_delim
21968 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21969 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21970 USE_UDIS86!$USE_UDIS86$ac_delim
21971 USE_OPROFILE!$USE_OPROFILE$ac_delim
21972 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21973 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21974 MMAP_FILE!$MMAP_FILE$ac_delim
21975 SHLIBEXT!$SHLIBEXT$ac_delim
21976 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21977 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21978 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21979 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21980 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21981 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21982 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21983 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21984 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21985 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21986 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21987 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21988 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21989 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21990 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21991 RPATH!$RPATH$ac_delim
21992 RDYNAMIC!$RDYNAMIC$ac_delim
21993 LIBOBJS!$LIBOBJS$ac_delim
21994 LTLIBOBJS!$LTLIBOBJS$ac_delim
21995 _ACEOF
21996
21997   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21998     break
21999   elif $ac_last_try; then
22000     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22001 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22002    { (exit 1); exit 1; }; }
22003   else
22004     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22005   fi
22006 done
22007
22008 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22009 if test -n "$ac_eof"; then
22010   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22011   ac_eof=`expr $ac_eof + 1`
22012 fi
22013
22014 cat >>$CONFIG_STATUS <<_ACEOF
22015 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22017 _ACEOF
22018 sed '
22019 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22020 s/^/s,@/; s/!/@,|#_!!_#|/
22021 :n
22022 t n
22023 s/'"$ac_delim"'$/,g/; t
22024 s/$/\\/; p
22025 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22026 ' >>$CONFIG_STATUS <conf$$subs.sed
22027 rm -f conf$$subs.sed
22028 cat >>$CONFIG_STATUS <<_ACEOF
22029 :end
22030 s/|#_!!_#|//g
22031 CEOF$ac_eof
22032 _ACEOF
22033
22034
22035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22037 # trailing colons and then remove the whole line if VPATH becomes empty
22038 # (actually we leave an empty line to preserve line numbers).
22039 if test "x$srcdir" = x.; then
22040   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22041 s/:*\$(srcdir):*/:/
22042 s/:*\${srcdir}:*/:/
22043 s/:*@srcdir@:*/:/
22044 s/^\([^=]*=[     ]*\):*/\1/
22045 s/:*$//
22046 s/^[^=]*=[       ]*$//
22047 }'
22048 fi
22049
22050 cat >>$CONFIG_STATUS <<\_ACEOF
22051 fi # test -n "$CONFIG_FILES"
22052
22053
22054 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22055 do
22056   case $ac_tag in
22057   :[FHLC]) ac_mode=$ac_tag; continue;;
22058   esac
22059   case $ac_mode$ac_tag in
22060   :[FHL]*:*);;
22061   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22062 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22063    { (exit 1); exit 1; }; };;
22064   :[FH]-) ac_tag=-:-;;
22065   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22066   esac
22067   ac_save_IFS=$IFS
22068   IFS=:
22069   set x $ac_tag
22070   IFS=$ac_save_IFS
22071   shift
22072   ac_file=$1
22073   shift
22074
22075   case $ac_mode in
22076   :L) ac_source=$1;;
22077   :[FH])
22078     ac_file_inputs=
22079     for ac_f
22080     do
22081       case $ac_f in
22082       -) ac_f="$tmp/stdin";;
22083       *) # Look for the file first in the build tree, then in the source tree
22084          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22085          # because $ac_f cannot contain `:'.
22086          test -f "$ac_f" ||
22087            case $ac_f in
22088            [\\/$]*) false;;
22089            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22090            esac ||
22091            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22092 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22093    { (exit 1); exit 1; }; };;
22094       esac
22095       ac_file_inputs="$ac_file_inputs $ac_f"
22096     done
22097
22098     # Let's still pretend it is `configure' which instantiates (i.e., don't
22099     # use $as_me), people would be surprised to read:
22100     #    /* config.h.  Generated by config.status.  */
22101     configure_input="Generated from "`IFS=:
22102           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22103     if test x"$ac_file" != x-; then
22104       configure_input="$ac_file.  $configure_input"
22105       { echo "$as_me:$LINENO: creating $ac_file" >&5
22106 echo "$as_me: creating $ac_file" >&6;}
22107     fi
22108
22109     case $ac_tag in
22110     *:-:* | *:-) cat >"$tmp/stdin";;
22111     esac
22112     ;;
22113   esac
22114
22115   ac_dir=`$as_dirname -- "$ac_file" ||
22116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22117          X"$ac_file" : 'X\(//\)[^/]' \| \
22118          X"$ac_file" : 'X\(//\)$' \| \
22119          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22120 echo X"$ac_file" |
22121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22122             s//\1/
22123             q
22124           }
22125           /^X\(\/\/\)[^/].*/{
22126             s//\1/
22127             q
22128           }
22129           /^X\(\/\/\)$/{
22130             s//\1/
22131             q
22132           }
22133           /^X\(\/\).*/{
22134             s//\1/
22135             q
22136           }
22137           s/.*/./; q'`
22138   { as_dir="$ac_dir"
22139   case $as_dir in #(
22140   -*) as_dir=./$as_dir;;
22141   esac
22142   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22143     as_dirs=
22144     while :; do
22145       case $as_dir in #(
22146       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22147       *) as_qdir=$as_dir;;
22148       esac
22149       as_dirs="'$as_qdir' $as_dirs"
22150       as_dir=`$as_dirname -- "$as_dir" ||
22151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22152          X"$as_dir" : 'X\(//\)[^/]' \| \
22153          X"$as_dir" : 'X\(//\)$' \| \
22154          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22155 echo X"$as_dir" |
22156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22157             s//\1/
22158             q
22159           }
22160           /^X\(\/\/\)[^/].*/{
22161             s//\1/
22162             q
22163           }
22164           /^X\(\/\/\)$/{
22165             s//\1/
22166             q
22167           }
22168           /^X\(\/\).*/{
22169             s//\1/
22170             q
22171           }
22172           s/.*/./; q'`
22173       test -d "$as_dir" && break
22174     done
22175     test -z "$as_dirs" || eval "mkdir $as_dirs"
22176   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22177 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22178    { (exit 1); exit 1; }; }; }
22179   ac_builddir=.
22180
22181 case "$ac_dir" in
22182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22183 *)
22184   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22185   # A ".." for each directory in $ac_dir_suffix.
22186   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22187   case $ac_top_builddir_sub in
22188   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22189   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22190   esac ;;
22191 esac
22192 ac_abs_top_builddir=$ac_pwd
22193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22194 # for backward compatibility:
22195 ac_top_builddir=$ac_top_build_prefix
22196
22197 case $srcdir in
22198   .)  # We are building in place.
22199     ac_srcdir=.
22200     ac_top_srcdir=$ac_top_builddir_sub
22201     ac_abs_top_srcdir=$ac_pwd ;;
22202   [\\/]* | ?:[\\/]* )  # Absolute name.
22203     ac_srcdir=$srcdir$ac_dir_suffix;
22204     ac_top_srcdir=$srcdir
22205     ac_abs_top_srcdir=$srcdir ;;
22206   *) # Relative name.
22207     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22208     ac_top_srcdir=$ac_top_build_prefix$srcdir
22209     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22210 esac
22211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22212
22213
22214   case $ac_mode in
22215   :F)
22216   #
22217   # CONFIG_FILE
22218   #
22219
22220   case $INSTALL in
22221   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22222   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22223   esac
22224 _ACEOF
22225
22226 cat >>$CONFIG_STATUS <<\_ACEOF
22227 # If the template does not know about datarootdir, expand it.
22228 # FIXME: This hack should be removed a few years after 2.60.
22229 ac_datarootdir_hack=; ac_datarootdir_seen=
22230
22231 case `sed -n '/datarootdir/ {
22232   p
22233   q
22234 }
22235 /@datadir@/p
22236 /@docdir@/p
22237 /@infodir@/p
22238 /@localedir@/p
22239 /@mandir@/p
22240 ' $ac_file_inputs` in
22241 *datarootdir*) ac_datarootdir_seen=yes;;
22242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22243   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22244 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22245 _ACEOF
22246 cat >>$CONFIG_STATUS <<_ACEOF
22247   ac_datarootdir_hack='
22248   s&@datadir@&$datadir&g
22249   s&@docdir@&$docdir&g
22250   s&@infodir@&$infodir&g
22251   s&@localedir@&$localedir&g
22252   s&@mandir@&$mandir&g
22253     s&\\\${datarootdir}&$datarootdir&g' ;;
22254 esac
22255 _ACEOF
22256
22257 # Neutralize VPATH when `$srcdir' = `.'.
22258 # Shell code in configure.ac might set extrasub.
22259 # FIXME: do we really want to maintain this feature?
22260 cat >>$CONFIG_STATUS <<_ACEOF
22261   sed "$ac_vpsub
22262 $extrasub
22263 _ACEOF
22264 cat >>$CONFIG_STATUS <<\_ACEOF
22265 :t
22266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22267 s&@configure_input@&$configure_input&;t t
22268 s&@top_builddir@&$ac_top_builddir_sub&;t t
22269 s&@srcdir@&$ac_srcdir&;t t
22270 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22271 s&@top_srcdir@&$ac_top_srcdir&;t t
22272 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22273 s&@builddir@&$ac_builddir&;t t
22274 s&@abs_builddir@&$ac_abs_builddir&;t t
22275 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22276 s&@INSTALL@&$ac_INSTALL&;t t
22277 $ac_datarootdir_hack
22278 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22279
22280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22281   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22282   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22283   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22284 which seems to be undefined.  Please make sure it is defined." >&5
22285 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22286 which seems to be undefined.  Please make sure it is defined." >&2;}
22287
22288   rm -f "$tmp/stdin"
22289   case $ac_file in
22290   -) cat "$tmp/out"; rm -f "$tmp/out";;
22291   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22292   esac
22293  ;;
22294   :H)
22295   #
22296   # CONFIG_HEADER
22297   #
22298 _ACEOF
22299
22300 # Transform confdefs.h into a sed script `conftest.defines', that
22301 # substitutes the proper values into config.h.in to produce config.h.
22302 rm -f conftest.defines conftest.tail
22303 # First, append a space to every undef/define line, to ease matching.
22304 echo 's/$/ /' >conftest.defines
22305 # Then, protect against being on the right side of a sed subst, or in
22306 # an unquoted here document, in config.status.  If some macros were
22307 # called several times there might be several #defines for the same
22308 # symbol, which is useless.  But do not sort them, since the last
22309 # AC_DEFINE must be honored.
22310 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22311 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22312 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22313 # PARAMS is the parameter list in the macro definition--in most cases, it's
22314 # just an empty string.
22315 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22316 ac_dB='\\)[      (].*,\\1define\\2'
22317 ac_dC=' '
22318 ac_dD=' ,'
22319
22320 uniq confdefs.h |
22321   sed -n '
22322         t rset
22323         :rset
22324         s/^[     ]*#[    ]*define[       ][      ]*//
22325         t ok
22326         d
22327         :ok
22328         s/[\\&,]/\\&/g
22329         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22330         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22331   ' >>conftest.defines
22332
22333 # Remove the space that was appended to ease matching.
22334 # Then replace #undef with comments.  This is necessary, for
22335 # example, in the case of _POSIX_SOURCE, which is predefined and required
22336 # on some systems where configure will not decide to define it.
22337 # (The regexp can be short, since the line contains either #define or #undef.)
22338 echo 's/ $//
22339 s,^[     #]*u.*,/* & */,' >>conftest.defines
22340
22341 # Break up conftest.defines:
22342 ac_max_sed_lines=50
22343
22344 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22345 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22346 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22347 # et cetera.
22348 ac_in='$ac_file_inputs'
22349 ac_out='"$tmp/out1"'
22350 ac_nxt='"$tmp/out2"'
22351
22352 while :
22353 do
22354   # Write a here document:
22355     cat >>$CONFIG_STATUS <<_ACEOF
22356     # First, check the format of the line:
22357     cat >"\$tmp/defines.sed" <<\\CEOF
22358 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22359 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22360 b
22361 :def
22362 _ACEOF
22363   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22364   echo 'CEOF
22365     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22366   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22367   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22368   grep . conftest.tail >/dev/null || break
22369   rm -f conftest.defines
22370   mv conftest.tail conftest.defines
22371 done
22372 rm -f conftest.defines conftest.tail
22373
22374 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22375 cat >>$CONFIG_STATUS <<\_ACEOF
22376   if test x"$ac_file" != x-; then
22377     echo "/* $configure_input  */" >"$tmp/config.h"
22378     cat "$ac_result" >>"$tmp/config.h"
22379     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22380       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22381 echo "$as_me: $ac_file is unchanged" >&6;}
22382     else
22383       rm -f $ac_file
22384       mv "$tmp/config.h" $ac_file
22385     fi
22386   else
22387     echo "/* $configure_input  */"
22388     cat "$ac_result"
22389   fi
22390   rm -f "$tmp/out12"
22391  ;;
22392
22393   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22394 echo "$as_me: executing $ac_file commands" >&6;}
22395  ;;
22396   esac
22397
22398
22399   case $ac_file$ac_mode in
22400     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22401    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22402     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22403    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22404     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22405    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22406     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22407    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22408     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22409    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22410     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22411    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22412     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22413    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22414     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22415    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22416     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22417    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22418     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22419    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22420     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22421    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22422     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22423    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22424     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22425    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22426
22427   esac
22428 done # for ac_tag
22429
22430
22431 { (exit 0); exit 0; }
22432 _ACEOF
22433 chmod +x $CONFIG_STATUS
22434 ac_clean_files=$ac_clean_files_save
22435
22436
22437 # configure is writing to config.log, and then calls config.status.
22438 # config.status does its own redirection, appending to config.log.
22439 # Unfortunately, on DOS this fails, as config.log is still kept open
22440 # by configure, so config.status won't be able to write to it; its
22441 # output is simply discarded.  So we exec the FD to /dev/null,
22442 # effectively closing config.log, so it can be properly (re)opened and
22443 # appended to by config.status.  When coming back to configure, we
22444 # need to make the FD available again.
22445 if test "$no_create" != yes; then
22446   ac_cs_success=:
22447   ac_config_status_args=
22448   test "$silent" = yes &&
22449     ac_config_status_args="$ac_config_status_args --quiet"
22450   exec 5>/dev/null
22451   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22452   exec 5>>config.log
22453   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22454   # would make configure fail if this is the last instruction.
22455   $ac_cs_success || { (exit 1); exit 1; }
22456 fi
22457
22458 #
22459 # CONFIG_SUBDIRS section.
22460 #
22461 if test "$no_recursion" != yes; then
22462
22463   # Remove --cache-file and --srcdir arguments so they do not pile up.
22464   ac_sub_configure_args=
22465   ac_prev=
22466   eval "set x $ac_configure_args"
22467   shift
22468   for ac_arg
22469   do
22470     if test -n "$ac_prev"; then
22471       ac_prev=
22472       continue
22473     fi
22474     case $ac_arg in
22475     -cache-file | --cache-file | --cache-fil | --cache-fi \
22476     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22477       ac_prev=cache_file ;;
22478     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22479     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22480     | --c=*)
22481       ;;
22482     --config-cache | -C)
22483       ;;
22484     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22485       ac_prev=srcdir ;;
22486     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22487       ;;
22488     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22489       ac_prev=prefix ;;
22490     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22491       ;;
22492     *)
22493       case $ac_arg in
22494       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22495       esac
22496       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22497     esac
22498   done
22499
22500   # Always prepend --prefix to ensure using the same prefix
22501   # in subdir configurations.
22502   ac_arg="--prefix=$prefix"
22503   case $ac_arg in
22504   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22505   esac
22506   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22507
22508   ac_popdir=`pwd`
22509   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22510
22511     # Do not complain, so a configure script can configure whichever
22512     # parts of a large source tree are present.
22513     test -d "$srcdir/$ac_dir" || continue
22514
22515     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22516     echo "$as_me:$LINENO: $ac_msg" >&5
22517     echo "$ac_msg" >&6
22518     { as_dir="$ac_dir"
22519   case $as_dir in #(
22520   -*) as_dir=./$as_dir;;
22521   esac
22522   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22523     as_dirs=
22524     while :; do
22525       case $as_dir in #(
22526       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22527       *) as_qdir=$as_dir;;
22528       esac
22529       as_dirs="'$as_qdir' $as_dirs"
22530       as_dir=`$as_dirname -- "$as_dir" ||
22531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22532          X"$as_dir" : 'X\(//\)[^/]' \| \
22533          X"$as_dir" : 'X\(//\)$' \| \
22534          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22535 echo X"$as_dir" |
22536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22537             s//\1/
22538             q
22539           }
22540           /^X\(\/\/\)[^/].*/{
22541             s//\1/
22542             q
22543           }
22544           /^X\(\/\/\)$/{
22545             s//\1/
22546             q
22547           }
22548           /^X\(\/\).*/{
22549             s//\1/
22550             q
22551           }
22552           s/.*/./; q'`
22553       test -d "$as_dir" && break
22554     done
22555     test -z "$as_dirs" || eval "mkdir $as_dirs"
22556   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22557 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22558    { (exit 1); exit 1; }; }; }
22559     ac_builddir=.
22560
22561 case "$ac_dir" in
22562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22563 *)
22564   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22565   # A ".." for each directory in $ac_dir_suffix.
22566   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22567   case $ac_top_builddir_sub in
22568   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22569   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22570   esac ;;
22571 esac
22572 ac_abs_top_builddir=$ac_pwd
22573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22574 # for backward compatibility:
22575 ac_top_builddir=$ac_top_build_prefix
22576
22577 case $srcdir in
22578   .)  # We are building in place.
22579     ac_srcdir=.
22580     ac_top_srcdir=$ac_top_builddir_sub
22581     ac_abs_top_srcdir=$ac_pwd ;;
22582   [\\/]* | ?:[\\/]* )  # Absolute name.
22583     ac_srcdir=$srcdir$ac_dir_suffix;
22584     ac_top_srcdir=$srcdir
22585     ac_abs_top_srcdir=$srcdir ;;
22586   *) # Relative name.
22587     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22588     ac_top_srcdir=$ac_top_build_prefix$srcdir
22589     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22590 esac
22591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22592
22593
22594     cd "$ac_dir"
22595
22596     # Check for guested configure; otherwise get Cygnus style configure.
22597     if test -f "$ac_srcdir/configure.gnu"; then
22598       ac_sub_configure=$ac_srcdir/configure.gnu
22599     elif test -f "$ac_srcdir/configure"; then
22600       ac_sub_configure=$ac_srcdir/configure
22601     elif test -f "$ac_srcdir/configure.in"; then
22602       # This should be Cygnus configure.
22603       ac_sub_configure=$ac_aux_dir/configure
22604     else
22605       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22606 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22607       ac_sub_configure=
22608     fi
22609
22610     # The recursion is here.
22611     if test -n "$ac_sub_configure"; then
22612       # Make the cache file name correct relative to the subdirectory.
22613       case $cache_file in
22614       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22615       *) # Relative name.
22616         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22617       esac
22618
22619       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22620 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22621       # The eval makes quoting arguments work.
22622       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22623            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22624         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22625 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22626    { (exit 1); exit 1; }; }
22627     fi
22628
22629     cd "$ac_popdir"
22630   done
22631 fi
22632