09173d257f30d42ef8bb16b84b018e520aafd918
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 PERL
739 HAVE_PERL
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 BZIP2
744 CAT
745 DOXYGEN
746 GROFF
747 GZIPBIN
748 POD2HTML
749 POD2MAN
750 PDFROFF
751 RUNTEST
752 TCLSH
753 ZIP
754 OCAMLC
755 OCAMLOPT
756 OCAMLDEP
757 OCAMLDOC
758 GAS
759 HAVE_LINK_VERSION_SCRIPT
760 INSTALL_LTDL_TRUE
761 INSTALL_LTDL_FALSE
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
764 LIBADD_DL
765 NO_VARIADIC_MACROS
766 NO_MISSING_FIELD_INITIALIZERS
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 SHLIBEXT
773 SHLIBPATH_VAR
774 LLVM_PREFIX
775 LLVM_BINDIR
776 LLVM_LIBDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP'
804 ac_subdirs_all='projects/llvm-gcc
805 projects/test-suite
806 projects/llvm-test
807 projects/poolalloc
808 projects/llvm-poolalloc
809 projects/sample
810 projects/privbracket
811 projects/llvm-stacker
812 projects/llvm-reopt
813 projects/llvm-java
814 projects/llvm-tv
815 projects/safecode
816 projects/llvm-kernel
817 tools/polly'
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
946
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
955
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
959
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
966
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
971
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
977
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
984
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
989
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
994
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1001
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1006
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1013
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1018
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1022
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1026
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1030
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1039
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1044
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1051
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1058
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1075
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1080
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1085
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of llvm 3.1svn:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-polly          Use polly if available (default is YES)
1393   --enable-libcpp         Use libc++ if available (default is NO)
1394   --enable-optimized      Compile with optimizations enabled (default is NO)
1395   --enable-profiling      Compile with profiling enabled (default is NO)
1396   --enable-assertions     Compile with assertion checks enabled (default is
1397                           YES)
1398   --enable-expensive-checks
1399                           Compile with expensive debug checks enabled (default
1400                           is NO)
1401   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1402                           NO)
1403   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1404                           optimization is on and YES if it's off)
1405   --enable-jit            Enable Just In Time Compiling (default is YES)
1406   --enable-docs           Build documents (default is YES)
1407   --enable-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pthreads       Use pthreads if available (default is YES)
1410   --enable-pic            Build LLVM with Position Independent Code (default
1411                           is YES)
1412   --enable-shared         Build a shared library and link tools against it
1413                           (default is NO)
1414   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1415                           Win32 DLL (default is NO)
1416   --enable-timestamps     Enable embedding timestamp information in build
1417                           (default is YES)
1418   --enable-targets        Build specific host targets: all or
1419                           target1,target2,... Valid targets are: host, x86,
1420                           x86_64, sparc, powerpc, arm, mips, spu, xcore,
1421                           msp430, ptx, cbe, and cpp (default=all)
1422   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1423                           %a (default is YES)
1424   --enable-bindings       Build specific language bindings:
1425                           all,auto,none,{binding-name} (default=auto)
1426   --enable-libffi         Check for the presence of libffi (default is NO)
1427   --enable-ltdl-install   install libltdl
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-optimize-option  Select the compiler options to use for optimized
1433                           builds
1434   --with-extra-options    Specify additional options to compile LLVM with
1435   --with-extra-ld-options Specify additional options to link LLVM with
1436   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1437                           is stdlib)
1438   --with-clang-srcdir     Directory to the out-of-tree Clang source
1439   --with-clang-resource-dir
1440                           Relative directory from the Clang binary for
1441                           resource files
1442   --with-c-include-dirs   Colon separated list of directories clang will
1443                           search for headers
1444   --with-cxx-include-root Directory with the libstdc++ headers.
1445   --with-cxx-include-arch Architecture of the libstdc++ headers.
1446   --with-cxx-include-32bit-dir
1447                           32 bit multilib dir.
1448   --with-cxx-include-64bit-dir
1449                           64 bit multilib directory.
1450   --with-binutils-include Specify path to binutils/include/ containing
1451                           plugin-api.h file for gold plugin.
1452   --with-bug-report-url   Specify the URL where bug reports should be
1453                           submitted (default=http://llvm.org/bugs/)
1454   --with-tclinclude       directory where tcl headers are
1455   --with-udis86=<path>    Use udis86 external x86 disassembler library
1456   --with-oprofile=<prefix>
1457                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CXX         C++ compiler command
1467   CXXFLAGS    C++ compiler flags
1468   CPP         C preprocessor
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <llvmbugs@cs.uiuc.edu>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" || continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 llvm configure 3.1svn
1535 generated by GNU Autoconf 2.60
1536
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541
1542 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1543 _ACEOF
1544   exit
1545 fi
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1549
1550 It was created by llvm $as_me 3.1svn, which was
1551 generated by GNU Autoconf 2.60.  Invocation command line was
1552
1553   $ $0 $@
1554
1555 _ACEOF
1556 exec 5>>config.log
1557 {
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1562
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580 _ASUNAME
1581
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1590
1591 } >&5
1592
1593 cat >&5 <<_ACEOF
1594
1595
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1599
1600 _ACEOF
1601
1602
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1613 do
1614   for ac_arg
1615   do
1616     case $ac_arg in
1617     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619     | -silent | --silent | --silen | --sile | --sil)
1620       continue ;;
1621     *\'*)
1622       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623     esac
1624     case $ac_pass in
1625     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626     2)
1627       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628       if test $ac_must_keep_next = true; then
1629         ac_must_keep_next=false # Got value, back to normal.
1630       else
1631         case $ac_arg in
1632           *=* | --config-cache | -C | -disable-* | --disable-* \
1633           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635           | -with-* | --with-* | -without-* | --without-* | --x)
1636             case "$ac_configure_args0 " in
1637               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638             esac
1639             ;;
1640           -* ) ac_must_keep_next=true ;;
1641         esac
1642       fi
1643       ac_configure_args="$ac_configure_args '$ac_arg'"
1644       ;;
1645     esac
1646   done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log.  We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657   # Save into config.log some information that might help in debugging.
1658   {
1659     echo
1660
1661     cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666     echo
1667     # The following way of writing the cache mishandles newlines in values,
1668 (
1669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670     eval ac_val=\$$ac_var
1671     case $ac_val in #(
1672     *${as_nl}*)
1673       case $ac_var in #(
1674       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676       esac
1677       case $ac_var in #(
1678       _ | IFS | as_nl) ;; #(
1679       *) $as_unset $ac_var ;;
1680       esac ;;
1681     esac
1682   done
1683   (set) 2>&1 |
1684     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685     *${as_nl}ac_space=\ *)
1686       sed -n \
1687         "s/'\''/'\''\\\\'\'''\''/g;
1688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689       ;; #(
1690     *)
1691       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692       ;;
1693     esac |
1694     sort
1695 )
1696     echo
1697
1698     cat <<\_ASBOX
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1702 _ASBOX
1703     echo
1704     for ac_var in $ac_subst_vars
1705     do
1706       eval ac_val=\$$ac_var
1707       case $ac_val in
1708       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709       esac
1710       echo "$ac_var='\''$ac_val'\''"
1711     done | sort
1712     echo
1713
1714     if test -n "$ac_subst_files"; then
1715       cat <<\_ASBOX
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1719 _ASBOX
1720       echo
1721       for ac_var in $ac_subst_files
1722       do
1723         eval ac_val=\$$ac_var
1724         case $ac_val in
1725         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726         esac
1727         echo "$ac_var='\''$ac_val'\''"
1728       done | sort
1729       echo
1730     fi
1731
1732     if test -s confdefs.h; then
1733       cat <<\_ASBOX
1734 ## ----------- ##
1735 ## confdefs.h. ##
1736 ## ----------- ##
1737 _ASBOX
1738       echo
1739       cat confdefs.h
1740       echo
1741     fi
1742     test "$ac_signal" != 0 &&
1743       echo "$as_me: caught signal $ac_signal"
1744     echo "$as_me: exit $exit_status"
1745   } >&5
1746   rm -f core *.core core.conftest.* &&
1747     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748     exit $exit_status
1749 ' 0
1750 for ac_signal in 1 2 13 15; do
1751   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 done
1753 ac_signal=0
1754
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1757
1758 # Predefined preprocessor variables.
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 _ACEOF
1783
1784
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788   set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 else
1792   set x "$ac_default_prefix/share/config.site" \
1793         "$ac_default_prefix/etc/config.site"
1794 fi
1795 shift
1796 for ac_site_file
1797 do
1798   if test -r "$ac_site_file"; then
1799     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801     sed 's/^/| /' "$ac_site_file" >&5
1802     . "$ac_site_file"
1803   fi
1804 done
1805
1806 if test -r "$cache_file"; then
1807   # Some versions of bash will fail to source /dev/null (special
1808   # files actually), so we avoid doing that.
1809   if test -f "$cache_file"; then
1810     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1812     case $cache_file in
1813       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814       *)                      . "./$cache_file";;
1815     esac
1816   fi
1817 else
1818   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1820   >$cache_file
1821 fi
1822
1823 # Check that the precious variables saved in the cache have kept the same
1824 # value.
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828   eval ac_new_set=\$ac_env_${ac_var}_set
1829   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830   eval ac_new_val=\$ac_env_${ac_var}_value
1831   case $ac_old_set,$ac_new_set in
1832     set,)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,set)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,);;
1841     *)
1842       if test "x$ac_old_val" != "x$ac_new_val"; then
1843         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1846 echo "$as_me:   former value:  $ac_old_val" >&2;}
1847         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1848 echo "$as_me:   current value: $ac_new_val" >&2;}
1849         ac_cache_corrupted=:
1850       fi;;
1851   esac
1852   # Pass precious variables to config.status.
1853   if test "$ac_new_set" = set; then
1854     case $ac_new_val in
1855     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856     *) ac_arg=$ac_var=$ac_new_val ;;
1857     esac
1858     case " $ac_configure_args " in
1859       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1860       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861     esac
1862   fi
1863 done
1864 if $ac_cache_corrupted; then
1865   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869    { (exit 1); exit 1; }; }
1870 fi
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
1904 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1905
1906
1907
1908
1909
1910
1911
1912 ac_aux_dir=
1913 for ac_dir in autoconf "$srcdir"/autoconf; do
1914   if test -f "$ac_dir/install-sh"; then
1915     ac_aux_dir=$ac_dir
1916     ac_install_sh="$ac_aux_dir/install-sh -c"
1917     break
1918   elif test -f "$ac_dir/install.sh"; then
1919     ac_aux_dir=$ac_dir
1920     ac_install_sh="$ac_aux_dir/install.sh -c"
1921     break
1922   elif test -f "$ac_dir/shtool"; then
1923     ac_aux_dir=$ac_dir
1924     ac_install_sh="$ac_aux_dir/shtool install -c"
1925     break
1926   fi
1927 done
1928 if test -z "$ac_aux_dir"; then
1929   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931    { (exit 1); exit 1; }; }
1932 fi
1933
1934 # These three variables are undocumented and unsupported,
1935 # and are intended to be withdrawn in a future Autoconf release.
1936 # They can cause serious problems if a builder's source tree is in a directory
1937 # whose full name contains unusual characters.
1938 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1939 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1940 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1941
1942
1943
1944 if test ${srcdir} != "." ; then
1945   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1946     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948    { (exit 1); exit 1; }; }
1949   fi
1950 fi
1951
1952 ac_ext=c
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 if test -n "$ac_tool_prefix"; then
1958   for ac_prog in clang llvm-gcc gcc
1959   do
1960     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$CC"; then
1968   ac_cv_prog_CC="$CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1977     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983 IFS=$as_save_IFS
1984
1985 fi
1986 fi
1987 CC=$ac_cv_prog_CC
1988 if test -n "$CC"; then
1989   { echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6; }
1991 else
1992   { echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6; }
1994 fi
1995
1996
1997     test -n "$CC" && break
1998   done
1999 fi
2000 if test -z "$CC"; then
2001   ac_ct_CC=$CC
2002   for ac_prog in clang llvm-gcc gcc
2003 do
2004   # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy $ac_prog; ac_word=$2
2006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$ac_ct_CC"; then
2012   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2021     ac_cv_prog_ac_ct_CC="$ac_prog"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027 IFS=$as_save_IFS
2028
2029 fi
2030 fi
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6; }
2035 else
2036   { echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6; }
2038 fi
2039
2040
2041   test -n "$ac_ct_CC" && break
2042 done
2043
2044   if test "x$ac_ct_CC" = x; then
2045     CC=""
2046   else
2047     case $cross_compiling:$ac_tool_warned in
2048 yes:)
2049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2050 whose name does not start with the host triplet.  If you think this
2051 configuration is useful to you, please write to autoconf@gnu.org." >&5
2052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet.  If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2055 ac_tool_warned=yes ;;
2056 esac
2057     CC=$ac_ct_CC
2058   fi
2059 fi
2060
2061
2062 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 # Provide some information about the compiler.
2069 echo "$as_me:$LINENO: checking for C compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (ac_try="$ac_compiler --version >&5"
2072 case "(($ac_try" in
2073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074   *) ac_try_echo=$ac_try;;
2075 esac
2076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2077   (eval "$ac_compiler --version >&5") 2>&5
2078   ac_status=$?
2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080   (exit $ac_status); }
2081 { (ac_try="$ac_compiler -v >&5"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087   (eval "$ac_compiler -v >&5") 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }
2091 { (ac_try="$ac_compiler -V >&5"
2092 case "(($ac_try" in
2093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094   *) ac_try_echo=$ac_try;;
2095 esac
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097   (eval "$ac_compiler -V >&5") 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }
2101
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h.  */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h.  */
2108
2109 int
2110 main ()
2111 {
2112
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 ac_clean_files_save=$ac_clean_files
2118 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2119 # Try to create an executable without -o first, disregard a.out.
2120 # It will help us diagnose broken compilers, and finding out an intuition
2121 # of exeext.
2122 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2123 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2124 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125 #
2126 # List of possible output files, starting from the most likely.
2127 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2128 # only as a last resort.  b.out is created by i960 compilers.
2129 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2130 #
2131 # The IRIX 6 linker writes into existing files which may not be
2132 # executable, retaining their permissions.  Remove them first so a
2133 # subsequent execution test works.
2134 ac_rmfiles=
2135 for ac_file in $ac_files
2136 do
2137   case $ac_file in
2138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2139     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2140   esac
2141 done
2142 rm -f $ac_rmfiles
2143
2144 if { (ac_try="$ac_link_default"
2145 case "(($ac_try" in
2146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147   *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150   (eval "$ac_link_default") 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; then
2154   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2156 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2157 # so that the user can short-circuit this test for compilers unknown to
2158 # Autoconf.
2159 for ac_file in $ac_files
2160 do
2161   test -f "$ac_file" || continue
2162   case $ac_file in
2163     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2164         ;;
2165     [ab].out )
2166         # We found the default executable, but exeext='' is most
2167         # certainly right.
2168         break;;
2169     *.* )
2170         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2171         then :; else
2172            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173         fi
2174         # We set ac_cv_exeext here because the later test for it is not
2175         # safe: cross compilers may not add the suffix if given an `-o'
2176         # argument, so we may need to know it at that point already.
2177         # Even if this section looks crufty: it has the advantage of
2178         # actually working.
2179         break;;
2180     * )
2181         break;;
2182   esac
2183 done
2184 test "$ac_cv_exeext" = no && ac_cv_exeext=
2185
2186 else
2187   echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194    { (exit 77); exit 77; }; }
2195 fi
2196
2197 ac_exeext=$ac_cv_exeext
2198 { echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6; }
2200
2201 # Check that the compiler produces executables we can run.  If not, either
2202 # the compiler is broken, or we cross compile.
2203 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2204 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208   if { ac_try='./$ac_file'
2209   { (case "(($ac_try" in
2210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211   *) ac_try_echo=$ac_try;;
2212 esac
2213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2214   (eval "$ac_try") 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; }; then
2218     cross_compiling=no
2219   else
2220     if test "$cross_compiling" = maybe; then
2221         cross_compiling=yes
2222     else
2223         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&2;}
2229    { (exit 1); exit 1; }; }
2230     fi
2231   fi
2232 fi
2233 { echo "$as_me:$LINENO: result: yes" >&5
2234 echo "${ECHO_T}yes" >&6; }
2235
2236 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2237 ac_clean_files=$ac_clean_files_save
2238 # Check that the compiler produces executables we can run.  If not, either
2239 # the compiler is broken, or we cross compile.
2240 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2241 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2242 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2243 echo "${ECHO_T}$cross_compiling" >&6; }
2244
2245 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2246 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2247 if { (ac_try="$ac_link"
2248 case "(($ac_try" in
2249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250   *) ac_try_echo=$ac_try;;
2251 esac
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253   (eval "$ac_link") 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }; then
2257   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2259 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 # `rm'.
2261 for ac_file in conftest.exe conftest conftest.*; do
2262   test -f "$ac_file" || continue
2263   case $ac_file in
2264     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2265     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266           break;;
2267     * ) break;;
2268   esac
2269 done
2270 else
2271   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276 fi
2277
2278 rm -f conftest$ac_cv_exeext
2279 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2281
2282 rm -f conftest.$ac_ext
2283 EXEEXT=$ac_cv_exeext
2284 ac_exeext=$EXEEXT
2285 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2287 if test "${ac_cv_objext+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296
2297 int
2298 main ()
2299 {
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.o conftest.obj
2306 if { (ac_try="$ac_compile"
2307 case "(($ac_try" in
2308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309   *) ac_try_echo=$ac_try;;
2310 esac
2311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312   (eval "$ac_compile") 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }; then
2316   for ac_file in conftest.o conftest.obj conftest.*; do
2317   test -f "$ac_file" || continue;
2318   case $ac_file in
2319     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2320     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321        break;;
2322   esac
2323 done
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&2;}
2332    { (exit 1); exit 1; }; }
2333 fi
2334
2335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 fi
2337 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338 echo "${ECHO_T}$ac_cv_objext" >&6; }
2339 OBJEXT=$ac_cv_objext
2340 ac_objext=$OBJEXT
2341 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2342 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2343 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   cat >conftest.$ac_ext <<_ACEOF
2347 /* confdefs.h.  */
2348 _ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h.  */
2352
2353 int
2354 main ()
2355 {
2356 #ifndef __GNUC__
2357        choke me
2358 #endif
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (ac_try="$ac_compile"
2366 case "(($ac_try" in
2367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368   *) ac_try_echo=$ac_try;;
2369 esac
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371   (eval "$ac_compile") 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379   { (case "(($ac_try" in
2380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381   *) ac_try_echo=$ac_try;;
2382 esac
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384   (eval "$ac_try") 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; } &&
2388          { ac_try='test -s conftest.$ac_objext'
2389   { (case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394   (eval "$ac_try") 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_compiler_gnu=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403         ac_compiler_gnu=no
2404 fi
2405
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408
2409 fi
2410 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2412 GCC=`test $ac_compiler_gnu = yes && echo yes`
2413 ac_test_CFLAGS=${CFLAGS+set}
2414 ac_save_CFLAGS=$CFLAGS
2415 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   ac_save_c_werror_flag=$ac_c_werror_flag
2421    ac_c_werror_flag=yes
2422    ac_cv_prog_cc_g=no
2423    CFLAGS="-g"
2424    cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h.  */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h.  */
2430
2431 int
2432 main ()
2433 {
2434
2435   ;
2436   return 0;
2437 }
2438 _ACEOF
2439 rm -f conftest.$ac_objext
2440 if { (ac_try="$ac_compile"
2441 case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446   (eval "$ac_compile") 2>conftest.er1
2447   ac_status=$?
2448   grep -v '^ *+' conftest.er1 >conftest.err
2449   rm -f conftest.er1
2450   cat conftest.err >&5
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); } &&
2453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2454   { (case "(($ac_try" in
2455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456   *) ac_try_echo=$ac_try;;
2457 esac
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459   (eval "$ac_try") 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; } &&
2463          { ac_try='test -s conftest.$ac_objext'
2464   { (case "(($ac_try" in
2465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466   *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469   (eval "$ac_try") 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; }; then
2473   ac_cv_prog_cc_g=yes
2474 else
2475   echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2477
2478         CFLAGS=""
2479       cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485
2486 int
2487 main ()
2488 {
2489
2490   ;
2491   return 0;
2492 }
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (ac_try="$ac_compile"
2496 case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_compile") 2>conftest.er1
2502   ac_status=$?
2503   grep -v '^ *+' conftest.er1 >conftest.err
2504   rm -f conftest.er1
2505   cat conftest.err >&5
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); } &&
2508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2509   { (case "(($ac_try" in
2510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511   *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514   (eval "$ac_try") 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; } &&
2518          { ac_try='test -s conftest.$ac_objext'
2519   { (case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_try") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   :
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533         ac_c_werror_flag=$ac_save_c_werror_flag
2534          CFLAGS="-g"
2535          cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h.  */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h.  */
2541
2542 int
2543 main ()
2544 {
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (ac_try="$ac_compile"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557   (eval "$ac_compile") 2>conftest.er1
2558   ac_status=$?
2559   grep -v '^ *+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565   { (case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570   (eval "$ac_try") 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; } &&
2574          { ac_try='test -s conftest.$ac_objext'
2575   { (case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580   (eval "$ac_try") 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_cv_prog_cc_g=yes
2585 else
2586   echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589
2590 fi
2591
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 fi
2594
2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 fi
2597
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599    ac_c_werror_flag=$ac_save_c_werror_flag
2600 fi
2601 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2602 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2603 if test "$ac_test_CFLAGS" = set; then
2604   CFLAGS=$ac_save_CFLAGS
2605 elif test $ac_cv_prog_cc_g = yes; then
2606   if test "$GCC" = yes; then
2607     CFLAGS="-g -O2"
2608   else
2609     CFLAGS="-g"
2610   fi
2611 else
2612   if test "$GCC" = yes; then
2613     CFLAGS="-O2"
2614   else
2615     CFLAGS=
2616   fi
2617 fi
2618 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2619 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_cc_c89+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   ac_cv_prog_cc_c89=no
2624 ac_save_CC=$CC
2625 cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631 #include <stdarg.h>
2632 #include <stdio.h>
2633 #include <sys/types.h>
2634 #include <sys/stat.h>
2635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2636 struct buf { int x; };
2637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2638 static char *e (p, i)
2639      char **p;
2640      int i;
2641 {
2642   return p[i];
2643 }
2644 static char *f (char * (*g) (char **, int), char **p, ...)
2645 {
2646   char *s;
2647   va_list v;
2648   va_start (v,p);
2649   s = g (p, va_arg (v,int));
2650   va_end (v);
2651   return s;
2652 }
2653
2654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2655    function prototypes and stuff, but not '\xHH' hex character constants.
2656    These don't provoke an error unfortunately, instead are silently treated
2657    as 'x'.  The following induces an error, until -std is added to get
2658    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2659    array size at least.  It's necessary to write '\x00'==0 to get something
2660    that's true only with -std.  */
2661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662
2663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2664    inside strings and character constants.  */
2665 #define FOO(x) 'x'
2666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667
2668 int test (int i, double x);
2669 struct s1 {int (*f) (int a);};
2670 struct s2 {int (*f) (double a);};
2671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2672 int argc;
2673 char **argv;
2674 int
2675 main ()
2676 {
2677 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2678   ;
2679   return 0;
2680 }
2681 _ACEOF
2682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2683         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 do
2685   CC="$ac_save_CC $ac_arg"
2686   rm -f conftest.$ac_objext
2687 if { (ac_try="$ac_compile"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693   (eval "$ac_compile") 2>conftest.er1
2694   ac_status=$?
2695   grep -v '^ *+' conftest.er1 >conftest.err
2696   rm -f conftest.er1
2697   cat conftest.err >&5
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701   { (case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706   (eval "$ac_try") 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_try") 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   ac_cv_prog_cc_c89=$ac_arg
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725
2726 fi
2727
2728 rm -f core conftest.err conftest.$ac_objext
2729   test "x$ac_cv_prog_cc_c89" != "xno" && break
2730 done
2731 rm -f conftest.$ac_ext
2732 CC=$ac_save_CC
2733
2734 fi
2735 # AC_CACHE_VAL
2736 case "x$ac_cv_prog_cc_c89" in
2737   x)
2738     { echo "$as_me:$LINENO: result: none needed" >&5
2739 echo "${ECHO_T}none needed" >&6; } ;;
2740   xno)
2741     { echo "$as_me:$LINENO: result: unsupported" >&5
2742 echo "${ECHO_T}unsupported" >&6; } ;;
2743   *)
2744     CC="$CC $ac_cv_prog_cc_c89"
2745     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2747 esac
2748
2749
2750 ac_ext=c
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755
2756 ac_ext=cpp
2757 ac_cpp='$CXXCPP $CPPFLAGS'
2758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2761 if test -z "$CXX"; then
2762   if test -n "$CCC"; then
2763     CXX=$CCC
2764   else
2765     if test -n "$ac_tool_prefix"; then
2766   for ac_prog in clang++ llvm-g++ g++
2767   do
2768     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_CXX+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   if test -n "$CXX"; then
2776   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781   IFS=$as_save_IFS
2782   test -z "$as_dir" && as_dir=.
2783   for ac_exec_ext in '' $ac_executable_extensions; do
2784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2785     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787     break 2
2788   fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 CXX=$ac_cv_prog_CXX
2796 if test -n "$CXX"; then
2797   { echo "$as_me:$LINENO: result: $CXX" >&5
2798 echo "${ECHO_T}$CXX" >&6; }
2799 else
2800   { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2802 fi
2803
2804
2805     test -n "$CXX" && break
2806   done
2807 fi
2808 if test -z "$CXX"; then
2809   ac_ct_CXX=$CXX
2810   for ac_prog in clang++ llvm-g++ g++
2811 do
2812   # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2816 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$ac_ct_CXX"; then
2820   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_exec_ext in '' $ac_executable_extensions; do
2828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2829     ac_cv_prog_ac_ct_CXX="$ac_prog"
2830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2840 if test -n "$ac_ct_CXX"; then
2841   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2842 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2843 else
2844   { echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6; }
2846 fi
2847
2848
2849   test -n "$ac_ct_CXX" && break
2850 done
2851
2852   if test "x$ac_ct_CXX" = x; then
2853     CXX="g++"
2854   else
2855     case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet.  If you think this
2859 configuration is useful to you, please write to autoconf@gnu.org." >&5
2860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2861 whose name does not start with the host triplet.  If you think this
2862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2863 ac_tool_warned=yes ;;
2864 esac
2865     CXX=$ac_ct_CXX
2866   fi
2867 fi
2868
2869   fi
2870 fi
2871 # Provide some information about the compiler.
2872 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2873 ac_compiler=`set X $ac_compile; echo $2`
2874 { (ac_try="$ac_compiler --version >&5"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880   (eval "$ac_compiler --version >&5") 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }
2884 { (ac_try="$ac_compiler -v >&5"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compiler -v >&5") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894 { (ac_try="$ac_compiler -V >&5"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compiler -V >&5") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916
2917 int
2918 main ()
2919 {
2920 #ifndef __GNUC__
2921        choke me
2922 #endif
2923
2924   ;
2925   return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compile") 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2943   { (case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_try") 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; } &&
2952          { ac_try='test -s conftest.$ac_objext'
2953   { (case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_try") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; }; then
2962   ac_compiler_gnu=yes
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967         ac_compiler_gnu=no
2968 fi
2969
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2972
2973 fi
2974 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2976 GXX=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CXXFLAGS=${CXXFLAGS+set}
2978 ac_save_CXXFLAGS=$CXXFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2980 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cxx_g+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2985    ac_cxx_werror_flag=yes
2986    ac_cv_prog_cxx_g=no
2987    CXXFLAGS="-g"
2988    cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994
2995 int
2996 main ()
2997 {
2998
2999   ;
3000   return 0;
3001 }
3002 _ACEOF
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3005 case "(($ac_try" in
3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007   *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010   (eval "$ac_compile") 2>conftest.er1
3011   ac_status=$?
3012   grep -v '^ *+' conftest.er1 >conftest.err
3013   rm -f conftest.er1
3014   cat conftest.err >&5
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); } &&
3017          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3018   { (case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_try") 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; } &&
3027          { ac_try='test -s conftest.$ac_objext'
3028   { (case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_try") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; }; then
3037   ac_cv_prog_cxx_g=yes
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042         CXXFLAGS=""
3043       cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049
3050 int
3051 main ()
3052 {
3053
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compile") 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } &&
3072          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3073   { (case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_try") 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_try") 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; }; then
3092   :
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3098          CXXFLAGS="-g"
3099          cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h.  */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h.  */
3105
3106 int
3107 main ()
3108 {
3109
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3116 case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_compile") 2>conftest.er1
3122   ac_status=$?
3123   grep -v '^ *+' conftest.er1 >conftest.err
3124   rm -f conftest.er1
3125   cat conftest.err >&5
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } &&
3128          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3129   { (case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_try") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; } &&
3138          { ac_try='test -s conftest.$ac_objext'
3139   { (case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_try") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; }; then
3148   ac_cv_prog_cxx_g=yes
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153
3154 fi
3155
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 fi
3158
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 fi
3161
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164 fi
3165 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3166 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3167 if test "$ac_test_CXXFLAGS" = set; then
3168   CXXFLAGS=$ac_save_CXXFLAGS
3169 elif test $ac_cv_prog_cxx_g = yes; then
3170   if test "$GXX" = yes; then
3171     CXXFLAGS="-g -O2"
3172   else
3173     CXXFLAGS="-g"
3174   fi
3175 else
3176   if test "$GXX" = yes; then
3177     CXXFLAGS="-O2"
3178   else
3179     CXXFLAGS=
3180   fi
3181 fi
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188 ac_ext=c
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3194 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3195 # On Suns, sometimes $CPP names a directory.
3196 if test -n "$CPP" && test -d "$CPP"; then
3197   CPP=
3198 fi
3199 if test -z "$CPP"; then
3200   if test "${ac_cv_prog_CPP+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203       # Double quotes because CPP needs to be expanded
3204     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3205     do
3206       ac_preproc_ok=false
3207 for ac_c_preproc_warn_flag in '' yes
3208 do
3209   # Use a header file that comes with gcc, so configuring glibc
3210   # with a fresh cross-compiler works.
3211   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3212   # <limits.h> exists even on freestanding compilers.
3213   # On the NeXT, cc -E runs the code through the compiler's parser,
3214   # not just through cpp. "Syntax error" is here to catch this case.
3215   cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221 #ifdef __STDC__
3222 # include <limits.h>
3223 #else
3224 # include <assert.h>
3225 #endif
3226                      Syntax error
3227 _ACEOF
3228 if { (ac_try="$ac_cpp conftest.$ac_ext"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3235   ac_status=$?
3236   grep -v '^ *+' conftest.er1 >conftest.err
3237   rm -f conftest.er1
3238   cat conftest.err >&5
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } >/dev/null; then
3241   if test -s conftest.err; then
3242     ac_cpp_err=$ac_c_preproc_warn_flag
3243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3244   else
3245     ac_cpp_err=
3246   fi
3247 else
3248   ac_cpp_err=yes
3249 fi
3250 if test -z "$ac_cpp_err"; then
3251   :
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256   # Broken: fails on valid input.
3257 continue
3258 fi
3259
3260 rm -f conftest.err conftest.$ac_ext
3261
3262   # OK, works on sane cases.  Now check whether nonexistent headers
3263   # can be detected and how.
3264   cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 #include <ac_nonexistent.h>
3271 _ACEOF
3272 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } >/dev/null; then
3285   if test -s conftest.err; then
3286     ac_cpp_err=$ac_c_preproc_warn_flag
3287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288   else
3289     ac_cpp_err=
3290   fi
3291 else
3292   ac_cpp_err=yes
3293 fi
3294 if test -z "$ac_cpp_err"; then
3295   # Broken: success on invalid input.
3296 continue
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Passes both tests.
3302 ac_preproc_ok=:
3303 break
3304 fi
3305
3306 rm -f conftest.err conftest.$ac_ext
3307
3308 done
3309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310 rm -f conftest.err conftest.$ac_ext
3311 if $ac_preproc_ok; then
3312   break
3313 fi
3314
3315     done
3316     ac_cv_prog_CPP=$CPP
3317
3318 fi
3319   CPP=$ac_cv_prog_CPP
3320 else
3321   ac_cv_prog_CPP=$CPP
3322 fi
3323 { echo "$as_me:$LINENO: result: $CPP" >&5
3324 echo "${ECHO_T}$CPP" >&6; }
3325 ac_preproc_ok=false
3326 for ac_c_preproc_warn_flag in '' yes
3327 do
3328   # Use a header file that comes with gcc, so configuring glibc
3329   # with a fresh cross-compiler works.
3330   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331   # <limits.h> exists even on freestanding compilers.
3332   # On the NeXT, cc -E runs the code through the compiler's parser,
3333   # not just through cpp. "Syntax error" is here to catch this case.
3334   cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340 #ifdef __STDC__
3341 # include <limits.h>
3342 #else
3343 # include <assert.h>
3344 #endif
3345                      Syntax error
3346 _ACEOF
3347 if { (ac_try="$ac_cpp conftest.$ac_ext"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } >/dev/null; then
3360   if test -s conftest.err; then
3361     ac_cpp_err=$ac_c_preproc_warn_flag
3362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3363   else
3364     ac_cpp_err=
3365   fi
3366 else
3367   ac_cpp_err=yes
3368 fi
3369 if test -z "$ac_cpp_err"; then
3370   :
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375   # Broken: fails on valid input.
3376 continue
3377 fi
3378
3379 rm -f conftest.err conftest.$ac_ext
3380
3381   # OK, works on sane cases.  Now check whether nonexistent headers
3382   # can be detected and how.
3383   cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389 #include <ac_nonexistent.h>
3390 _ACEOF
3391 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407   else
3408     ac_cpp_err=
3409   fi
3410 else
3411   ac_cpp_err=yes
3412 fi
3413 if test -z "$ac_cpp_err"; then
3414   # Broken: success on invalid input.
3415 continue
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Passes both tests.
3421 ac_preproc_ok=:
3422 break
3423 fi
3424
3425 rm -f conftest.err conftest.$ac_ext
3426
3427 done
3428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429 rm -f conftest.err conftest.$ac_ext
3430 if $ac_preproc_ok; then
3431   :
3432 else
3433   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&5
3435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&2;}
3437    { (exit 1); exit 1; }; }
3438 fi
3439
3440 ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
3446
3447
3448
3449 if test -d ${srcdir}/projects/llvm-gcc ; then
3450   subdirs="$subdirs projects/llvm-gcc"
3451
3452 fi
3453
3454 if test -d ${srcdir}/projects/test-suite ; then
3455   subdirs="$subdirs projects/test-suite"
3456
3457 fi
3458
3459 if test -d ${srcdir}/projects/llvm-test ; then
3460   subdirs="$subdirs projects/llvm-test"
3461
3462 fi
3463
3464 if test -d ${srcdir}/projects/poolalloc ; then
3465   subdirs="$subdirs projects/poolalloc"
3466
3467 fi
3468
3469 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3470   subdirs="$subdirs projects/llvm-poolalloc"
3471
3472 fi
3473
3474 for i in `ls ${srcdir}/projects`
3475 do
3476   if test -d ${srcdir}/projects/${i} ; then
3477     case ${i} in
3478       sample)       subdirs="$subdirs projects/sample"
3479     ;;
3480       privbracket)  subdirs="$subdirs projects/privbracket"
3481  ;;
3482       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3483  ;;
3484       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3485 ;;
3486       llvm-java)    subdirs="$subdirs projects/llvm-java"
3487  ;;
3488       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3489    ;;
3490       safecode)     subdirs="$subdirs projects/safecode"
3491  ;;
3492       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3493  ;;
3494       llvm-gcc)       ;;
3495       test-suite)     ;;
3496       llvm-test)      ;;
3497       poolalloc)      ;;
3498       llvm-poolalloc) ;;
3499       *)
3500         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3501 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3502         ;;
3503     esac
3504   fi
3505 done
3506
3507 # Check whether --enable-polly was given.
3508 if test "${enable_polly+set}" = set; then
3509   enableval=$enable_polly;
3510 else
3511   enableval=default
3512 fi
3513
3514 case "$enableval" in
3515   yes) ENABLE_POLLY=1
3516  ;;
3517   no)  ENABLE_POLLY=0
3518  ;;
3519   default) ENABLE_POLLY=1
3520  ;;
3521   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3522 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3523    { (exit 1); exit 1; }; } ;;
3524 esac
3525
3526
3527 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3528   LLVM_HAS_POLLY=1
3529
3530   subdirs="$subdirs tools/polly"
3531
3532 fi
3533
3534
3535 # Make sure we can run config.sub.
3536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3537   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3538 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3539    { (exit 1); exit 1; }; }
3540
3541 { echo "$as_me:$LINENO: checking build system type" >&5
3542 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_build+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   ac_build_alias=$build_alias
3547 test "x$ac_build_alias" = x &&
3548   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3549 test "x$ac_build_alias" = x &&
3550   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3552    { (exit 1); exit 1; }; }
3553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3554   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3556    { (exit 1); exit 1; }; }
3557
3558 fi
3559 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3560 echo "${ECHO_T}$ac_cv_build" >&6; }
3561 case $ac_cv_build in
3562 *-*-*) ;;
3563 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3564 echo "$as_me: error: invalid value of canonical build" >&2;}
3565    { (exit 1); exit 1; }; };;
3566 esac
3567 build=$ac_cv_build
3568 ac_save_IFS=$IFS; IFS='-'
3569 set x $ac_cv_build
3570 shift
3571 build_cpu=$1
3572 build_vendor=$2
3573 shift; shift
3574 # Remember, the first character of IFS is used to create $*,
3575 # except with old shells:
3576 build_os=$*
3577 IFS=$ac_save_IFS
3578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579
3580
3581 { echo "$as_me:$LINENO: checking host system type" >&5
3582 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3583 if test "${ac_cv_host+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   if test "x$host_alias" = x; then
3587   ac_cv_host=$ac_cv_build
3588 else
3589   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3590     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3592    { (exit 1); exit 1; }; }
3593 fi
3594
3595 fi
3596 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3597 echo "${ECHO_T}$ac_cv_host" >&6; }
3598 case $ac_cv_host in
3599 *-*-*) ;;
3600 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3601 echo "$as_me: error: invalid value of canonical host" >&2;}
3602    { (exit 1); exit 1; }; };;
3603 esac
3604 host=$ac_cv_host
3605 ac_save_IFS=$IFS; IFS='-'
3606 set x $ac_cv_host
3607 shift
3608 host_cpu=$1
3609 host_vendor=$2
3610 shift; shift
3611 # Remember, the first character of IFS is used to create $*,
3612 # except with old shells:
3613 host_os=$*
3614 IFS=$ac_save_IFS
3615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616
3617
3618 { echo "$as_me:$LINENO: checking target system type" >&5
3619 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3620 if test "${ac_cv_target+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   if test "x$target_alias" = x; then
3624   ac_cv_target=$ac_cv_host
3625 else
3626   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3627     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3628 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3629    { (exit 1); exit 1; }; }
3630 fi
3631
3632 fi
3633 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3634 echo "${ECHO_T}$ac_cv_target" >&6; }
3635 case $ac_cv_target in
3636 *-*-*) ;;
3637 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3638 echo "$as_me: error: invalid value of canonical target" >&2;}
3639    { (exit 1); exit 1; }; };;
3640 esac
3641 target=$ac_cv_target
3642 ac_save_IFS=$IFS; IFS='-'
3643 set x $ac_cv_target
3644 shift
3645 target_cpu=$1
3646 target_vendor=$2
3647 shift; shift
3648 # Remember, the first character of IFS is used to create $*,
3649 # except with old shells:
3650 target_os=$*
3651 IFS=$ac_save_IFS
3652 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3653
3654
3655 # The aliases save the names the user supplied, while $host etc.
3656 # will get canonicalized.
3657 test -n "$target_alias" &&
3658   test "$program_prefix$program_suffix$program_transform_name" = \
3659     NONENONEs,x,x, &&
3660   program_prefix=${target_alias}-
3661
3662 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3663 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3664 if test "${llvm_cv_os_type+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   case $host in
3668   *-*-aix*)
3669     llvm_cv_link_all_option="-Wl,--whole-archive"
3670     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671     llvm_cv_os_type="AIX"
3672     llvm_cv_platform_type="Unix" ;;
3673   *-*-irix*)
3674     llvm_cv_link_all_option="-Wl,--whole-archive"
3675     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676     llvm_cv_os_type="IRIX"
3677     llvm_cv_platform_type="Unix" ;;
3678   *-*-cygwin*)
3679     llvm_cv_link_all_option="-Wl,--whole-archive"
3680     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681     llvm_cv_os_type="Cygwin"
3682     llvm_cv_platform_type="Unix" ;;
3683   *-*-darwin*)
3684     llvm_cv_link_all_option="-Wl,-all_load"
3685     llvm_cv_no_link_all_option="-Wl,-noall_load"
3686     llvm_cv_os_type="Darwin"
3687     llvm_cv_platform_type="Unix" ;;
3688   *-*-minix*)
3689     llvm_cv_link_all_option="-Wl,-all_load"
3690     llvm_cv_no_link_all_option="-Wl,-noall_load"
3691     llvm_cv_os_type="Minix"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-freebsd*)
3694     llvm_cv_link_all_option="-Wl,--whole-archive"
3695     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696     llvm_cv_os_type="FreeBSD"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-openbsd*)
3699     llvm_cv_link_all_option="-Wl,--whole-archive"
3700     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701     llvm_cv_os_type="OpenBSD"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-netbsd*)
3704     llvm_cv_link_all_option="-Wl,--whole-archive"
3705     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706     llvm_cv_os_type="NetBSD"
3707     llvm_cv_platform_type="Unix" ;;
3708   *-*-dragonfly*)
3709     llvm_cv_link_all_option="-Wl,--whole-archive"
3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711     llvm_cv_os_type="DragonFly"
3712     llvm_cv_platform_type="Unix" ;;
3713   *-*-hpux*)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="HP-UX"
3717     llvm_cv_platform_type="Unix" ;;
3718   *-*-interix*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="Interix"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-*-linux*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="Linux"
3727     llvm_cv_platform_type="Unix" ;;
3728   *-*-solaris*)
3729     llvm_cv_link_all_option="-Wl,-z,allextract"
3730     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3731     llvm_cv_os_type="SunOS"
3732     llvm_cv_platform_type="Unix" ;;
3733   *-*-auroraux*)
3734     llvm_cv_link_all_option="-Wl,-z,allextract"
3735     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3736     llvm_cv_os_type="AuroraUX"
3737     llvm_cv_platform_type="Unix" ;;
3738   *-*-win32*)
3739     llvm_cv_link_all_option="-Wl,--whole-archive"
3740     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741     llvm_cv_os_type="Win32"
3742     llvm_cv_platform_type="Win32" ;;
3743   *-*-mingw*)
3744     llvm_cv_link_all_option="-Wl,--whole-archive"
3745     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746     llvm_cv_os_type="MingW"
3747     llvm_cv_platform_type="Win32" ;;
3748   *-*-haiku*)
3749     llvm_cv_link_all_option="-Wl,--whole-archive"
3750     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751     llvm_cv_os_type="Haiku"
3752     llvm_cv_platform_type="Unix" ;;
3753   *-unknown-eabi*)
3754     llvm_cv_link_all_option="-Wl,--whole-archive"
3755     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756     llvm_cv_os_type="Freestanding"
3757     llvm_cv_platform_type="Unix" ;;
3758   *-unknown-elf*)
3759     llvm_cv_link_all_option="-Wl,--whole-archive"
3760     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761     llvm_cv_os_type="Freestanding"
3762     llvm_cv_platform_type="Unix" ;;
3763   *)
3764     llvm_cv_link_all_option=""
3765     llvm_cv_no_link_all_option=""
3766     llvm_cv_os_type="Unknown"
3767     llvm_cv_platform_type="Unknown" ;;
3768 esac
3769 fi
3770 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3771 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3772
3773 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3774 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3775 if test "${llvm_cv_target_os_type+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   case $target in
3779   *-*-aix*)
3780     llvm_cv_target_os_type="AIX" ;;
3781   *-*-irix*)
3782     llvm_cv_target_os_type="IRIX" ;;
3783   *-*-cygwin*)
3784     llvm_cv_target_os_type="Cygwin" ;;
3785   *-*-darwin*)
3786     llvm_cv_target_os_type="Darwin" ;;
3787   *-*-minix*)
3788     llvm_cv_target_os_type="Minix" ;;
3789   *-*-freebsd*)
3790     llvm_cv_target_os_type="FreeBSD" ;;
3791   *-*-openbsd*)
3792     llvm_cv_target_os_type="OpenBSD" ;;
3793   *-*-netbsd*)
3794     llvm_cv_target_os_type="NetBSD" ;;
3795   *-*-dragonfly*)
3796     llvm_cv_target_os_type="DragonFly" ;;
3797   *-*-hpux*)
3798     llvm_cv_target_os_type="HP-UX" ;;
3799   *-*-interix*)
3800     llvm_cv_target_os_type="Interix" ;;
3801   *-*-linux*)
3802     llvm_cv_target_os_type="Linux" ;;
3803   *-*-solaris*)
3804     llvm_cv_target_os_type="SunOS" ;;
3805   *-*-auroraux*)
3806     llvm_cv_target_os_type="AuroraUX" ;;
3807   *-*-win32*)
3808     llvm_cv_target_os_type="Win32" ;;
3809   *-*-mingw*)
3810     llvm_cv_target_os_type="MingW" ;;
3811   *-*-haiku*)
3812     llvm_cv_target_os_type="Haiku" ;;
3813   *-*-rtems*)
3814     llvm_cv_target_os_type="RTEMS" ;;
3815   *-*-nacl*)
3816     llvm_cv_target_os_type="NativeClient" ;;
3817   *-unknown-eabi*)
3818     llvm_cv_target_os_type="Freestanding" ;;
3819   *)
3820     llvm_cv_target_os_type="Unknown" ;;
3821 esac
3822 fi
3823 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3824 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3825
3826 if test "$llvm_cv_os_type" = "Unknown" ; then
3827   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3828 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3829    { (exit 1); exit 1; }; }
3830 fi
3831
3832 OS=$llvm_cv_os_type
3833
3834 HOST_OS=$llvm_cv_os_type
3835
3836 TARGET_OS=$llvm_cv_target_os_type
3837
3838
3839 LINKALL=$llvm_cv_link_all_option
3840
3841 NOLINKALL=$llvm_cv_no_link_all_option
3842
3843
3844 case $llvm_cv_platform_type in
3845   Unix)
3846
3847 cat >>confdefs.h <<\_ACEOF
3848 #define LLVM_ON_UNIX 1
3849 _ACEOF
3850
3851     LLVM_ON_UNIX=1
3852
3853     LLVM_ON_WIN32=0
3854
3855     ;;
3856   Win32)
3857
3858 cat >>confdefs.h <<\_ACEOF
3859 #define LLVM_ON_WIN32 1
3860 _ACEOF
3861
3862     LLVM_ON_UNIX=0
3863
3864     LLVM_ON_WIN32=1
3865
3866     ;;
3867 esac
3868
3869 { echo "$as_me:$LINENO: checking target architecture" >&5
3870 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3871 if test "${llvm_cv_target_arch+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   case $target in
3875   i?86-*)                 llvm_cv_target_arch="x86" ;;
3876   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3877   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3878   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3879   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3880   mips-*)                 llvm_cv_target_arch="Mips" ;;
3881   xcore-*)                llvm_cv_target_arch="XCore" ;;
3882   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3883   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3884   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3885   *)                      llvm_cv_target_arch="Unknown" ;;
3886 esac
3887 fi
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894 fi
3895
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898     x86)     LLVM_NATIVE_ARCH="X86" ;;
3899     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3900     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901 esac
3902
3903 ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_prog in grep ggrep; do
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930     # Check for GNU ac_path_GREP and select it if it is found.
3931   # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3933 *GNU*)
3934   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935 *)
3936   ac_count=0
3937   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3938   while :
3939   do
3940     cat "conftest.in" "conftest.in" >"conftest.tmp"
3941     mv "conftest.tmp" "conftest.in"
3942     cp "conftest.in" "conftest.nl"
3943     echo 'GREP' >> "conftest.nl"
3944     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946     ac_count=`expr $ac_count + 1`
3947     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948       # Best one so far, save it but keep looking for a better one
3949       ac_cv_path_GREP="$ac_path_GREP"
3950       ac_path_GREP_max=$ac_count
3951     fi
3952     # 10*(2^10) chars as input seems more than enough
3953     test $ac_count -gt 10 && break
3954   done
3955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957
3958
3959     $ac_path_GREP_found && break 3
3960   done
3961 done
3962
3963 done
3964 IFS=$as_save_IFS
3965
3966
3967 fi
3968
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973    { (exit 1); exit 1; }; }
3974 fi
3975
3976 else
3977   ac_cv_path_GREP=$GREP
3978 fi
3979
3980
3981 fi
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984  GREP="$ac_cv_path_GREP"
3985
3986
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993    then ac_cv_path_EGREP="$GREP -E"
3994    else
3995      # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008   for ac_prog in egrep; do
4009   for ac_exec_ext in '' $ac_executable_extensions; do
4010     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012     # Check for GNU ac_path_EGREP and select it if it is found.
4013   # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4015 *GNU*)
4016   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017 *)
4018   ac_count=0
4019   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4020   while :
4021   do
4022     cat "conftest.in" "conftest.in" >"conftest.tmp"
4023     mv "conftest.tmp" "conftest.in"
4024     cp "conftest.in" "conftest.nl"
4025     echo 'EGREP' >> "conftest.nl"
4026     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028     ac_count=`expr $ac_count + 1`
4029     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030       # Best one so far, save it but keep looking for a better one
4031       ac_cv_path_EGREP="$ac_path_EGREP"
4032       ac_path_EGREP_max=$ac_count
4033     fi
4034     # 10*(2^10) chars as input seems more than enough
4035     test $ac_count -gt 10 && break
4036   done
4037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 esac
4039
4040
4041     $ac_path_EGREP_found && break 3
4042   done
4043 done
4044
4045 done
4046 IFS=$as_save_IFS
4047
4048
4049 fi
4050
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055    { (exit 1); exit 1; }; }
4056 fi
4057
4058 else
4059   ac_cv_path_EGREP=$EGREP
4060 fi
4061
4062
4063    fi
4064 fi
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067  EGREP="$ac_cv_path_EGREP"
4068
4069
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #include <stdlib.h>
4082 #include <stdarg.h>
4083 #include <string.h>
4084 #include <float.h>
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_compile") 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109   { (case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_try") 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_cv_header_stdc=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_cv_header_stdc=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <string.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "memchr" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "free" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182   if test "$cross_compiling" = yes; then
4183   :
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <ctype.h>
4192 #include <stdlib.h>
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 #else
4197 # define ISLOWER(c) \
4198                    (('a' <= (c) && (c) <= 'i') \
4199                      || ('j' <= (c) && (c) <= 'r') \
4200                      || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #endif
4203
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205 int
4206 main ()
4207 {
4208   int i;
4209   for (i = 0; i < 256; i++)
4210     if (XOR (islower (i), ISLOWER (i))
4211         || toupper (i) != TOUPPER (i))
4212       return 2;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_link") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   :
4237 else
4238   echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ( exit $ac_status )
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 fi
4247
4248
4249 fi
4250 fi
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4254
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4257 _ACEOF
4258
4259 fi
4260
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272                   inttypes.h stdint.h unistd.h
4273 do
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 $ac_includes_default
4287
4288 #include <$ac_header>
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4292 case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_compile") 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } &&
4304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305   { (case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_try") 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; } &&
4314          { ac_try='test -s conftest.$ac_objext'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   eval "$as_ac_Header=yes"
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329         eval "$as_ac_Header=no"
4330 fi
4331
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335                { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338   cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 _ACEOF
4341
4342 fi
4343
4344 done
4345
4346
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4361
4362 int
4363 main ()
4364 {
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366  bogus endian macros
4367 #endif
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_compile") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388   { (case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; } &&
4397          { ac_try='test -s conftest.$ac_objext'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4416
4417 int
4418 main ()
4419 {
4420 #if BYTE_ORDER != BIG_ENDIAN
4421  not big endian
4422 #endif
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4430 case "(($ac_try" in
4431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432   *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435   (eval "$ac_compile") 2>conftest.er1
4436   ac_status=$?
4437   grep -v '^ *+' conftest.er1 >conftest.err
4438   rm -f conftest.er1
4439   cat conftest.err >&5
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } &&
4442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443   { (case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_try") 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; } &&
4452          { ac_try='test -s conftest.$ac_objext'
4453   { (case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   ac_cv_c_bigendian=yes
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467         ac_cv_c_bigendian=no
4468 fi
4469
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477   # try to guess the endianness by grepping values into an object file
4478   ac_cv_c_bigendian=unknown
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4491 int
4492 main ()
4493 {
4494  _ascii (); _ebcdic ();
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4501 case "(($ac_try" in
4502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503   *) ac_try_echo=$ac_try;;
4504 esac
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506   (eval "$ac_compile") 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514   { (case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_try") 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; } &&
4523          { ac_try='test -s conftest.$ac_objext'
4524   { (case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529   (eval "$ac_try") 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534   ac_cv_c_bigendian=yes
4535 fi
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537   if test "$ac_cv_c_bigendian" = unknown; then
4538     ac_cv_c_bigendian=no
4539   else
4540     # finding both strings is unlikely to happen, but who knows?
4541     ac_cv_c_bigendian=unknown
4542   fi
4543 fi
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548
4549 fi
4550
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 else
4553   cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 $ac_includes_default
4560 int
4561 main ()
4562 {
4563
4564   /* Are we little or big endian?  From Harbison&Steele.  */
4565   union
4566   {
4567     long int l;
4568     char c[sizeof (long int)];
4569   } u;
4570   u.l = 1;
4571   return u.c[sizeof (long int) - 1] == 1;
4572
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   ac_cv_c_bigendian=no
4598 else
4599   echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 ( exit $ac_status )
4604 ac_cv_c_bigendian=yes
4605 fi
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607 fi
4608
4609
4610 fi
4611
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4617   yes)
4618     ENDIAN=big
4619  ;;
4620   no)
4621     ENDIAN=little
4622  ;;
4623   *)
4624     { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628    { (exit 1); exit 1; }; } ;;
4629 esac
4630
4631
4632 if test "$cross_compiling" = yes; then
4633   LLVM_CROSS_COMPILING=1
4634
4635
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642   ac_cv_build_exeext=.exe
4643 else
4644   ac_build_prefix=${build_alias}-
4645
4646   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$BUILD_CC"; then
4654   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4677 else
4678   { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 fi
4681
4682
4683   if test -z "$BUILD_CC"; then
4684      # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test -n "$BUILD_CC"; then
4692   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_BUILD_CC="gcc"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4715 else
4716   { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4718 fi
4719
4720
4721      if test -z "$BUILD_CC"; then
4722        # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$BUILD_CC"; then
4730   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731 else
4732   ac_prog_rejected=no
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741        ac_prog_rejected=yes
4742        continue
4743      fi
4744     ac_cv_prog_BUILD_CC="cc"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 if test $ac_prog_rejected = yes; then
4753   # We found a bogon in the path, so make sure we never use it.
4754   set dummy $ac_cv_prog_BUILD_CC
4755   shift
4756   if test $# != 0; then
4757     # We chose a different compiler from the bogus one.
4758     # However, it has the same basename, so the bogon will be chosen
4759     # first if we set BUILD_CC to just the basename; use the full file name.
4760     shift
4761     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762   fi
4763 fi
4764 fi
4765 fi
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4770 else
4771   { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776      fi
4777   fi
4778   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780    { (exit 1); exit 1; }; }
4781   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782   rm -f conftest*
4783   echo 'int main () { return 0; }' > conftest.$ac_ext
4784   ac_cv_build_exeext=
4785   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786   (eval $ac_build_link) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; then
4790     for file in conftest.*; do
4791       case $file in
4792       *.c | *.o | *.obj | *.dSYM) ;;
4793       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794       esac
4795     done
4796   else
4797     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799    { (exit 1); exit 1; }; }
4800   fi
4801   rm -f conftest*
4802   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803 fi
4804 fi
4805
4806 BUILD_EXEEXT=""
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4811
4812   ac_build_prefix=${build_alias}-
4813   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   if test -n "$BUILD_CXX"; then
4821   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4844 else
4845   { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4847 fi
4848
4849
4850   if test -z "$BUILD_CXX"; then
4851      # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -n "$BUILD_CXX"; then
4859   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_BUILD_CXX="g++"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4882 else
4883   { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 fi
4886
4887
4888      if test -z "$BUILD_CXX"; then
4889        # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$BUILD_CXX"; then
4897   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898 else
4899   ac_prog_rejected=no
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908        ac_prog_rejected=yes
4909        continue
4910      fi
4911     ac_cv_prog_BUILD_CXX="c++"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 if test $ac_prog_rejected = yes; then
4920   # We found a bogon in the path, so make sure we never use it.
4921   set dummy $ac_cv_prog_BUILD_CXX
4922   shift
4923   if test $# != 0; then
4924     # We chose a different compiler from the bogus one.
4925     # However, it has the same basename, so the bogon will be chosen
4926     # first if we set BUILD_CXX to just the basename; use the full file name.
4927     shift
4928     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929   fi
4930 fi
4931 fi
4932 fi
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943      fi
4944   fi
4945 else
4946   LLVM_CROSS_COMPILING=0
4947
4948 fi
4949
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4951   cvsbuild="yes"
4952   optimize="no"
4953   CVSBUILD=CVSBUILD=1
4954
4955 else
4956   cvsbuild="no"
4957   optimize="yes"
4958 fi
4959
4960
4961 # Check whether --enable-libcpp was given.
4962 if test "${enable_libcpp+set}" = set; then
4963   enableval=$enable_libcpp;
4964 else
4965   enableval=default
4966 fi
4967
4968 case "$enableval" in
4969   yes) ENABLE_LIBCPP=1
4970  ;;
4971   no)  ENABLE_LIBCPP=0
4972  ;;
4973   default) ENABLE_LIBCPP=0
4974 ;;
4975   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4976 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4977    { (exit 1); exit 1; }; } ;;
4978 esac
4979
4980 # Check whether --enable-optimized was given.
4981 if test "${enable_optimized+set}" = set; then
4982   enableval=$enable_optimized;
4983 else
4984   enableval=$optimize
4985 fi
4986
4987 if test ${enableval} = "no" ; then
4988   ENABLE_OPTIMIZED=
4989
4990 else
4991   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4992
4993 fi
4994
4995 # Check whether --enable-profiling was given.
4996 if test "${enable_profiling+set}" = set; then
4997   enableval=$enable_profiling;
4998 else
4999   enableval="no"
5000 fi
5001
5002 if test ${enableval} = "no" ; then
5003   ENABLE_PROFILING=
5004
5005 else
5006   ENABLE_PROFILING=ENABLE_PROFILING=1
5007
5008 fi
5009
5010 # Check whether --enable-assertions was given.
5011 if test "${enable_assertions+set}" = set; then
5012   enableval=$enable_assertions;
5013 else
5014   enableval="yes"
5015 fi
5016
5017 if test ${enableval} = "yes" ; then
5018   DISABLE_ASSERTIONS=
5019
5020 else
5021   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5022
5023 fi
5024
5025 # Check whether --enable-expensive-checks was given.
5026 if test "${enable_expensive_checks+set}" = set; then
5027   enableval=$enable_expensive_checks;
5028 else
5029   enableval="no"
5030 fi
5031
5032 if test ${enableval} = "yes" ; then
5033   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5034
5035   EXPENSIVE_CHECKS=yes
5036
5037 else
5038   ENABLE_EXPENSIVE_CHECKS=
5039
5040   EXPENSIVE_CHECKS=no
5041
5042 fi
5043
5044 # Check whether --enable-debug-runtime was given.
5045 if test "${enable_debug_runtime+set}" = set; then
5046   enableval=$enable_debug_runtime;
5047 else
5048   enableval=no
5049 fi
5050
5051 if test ${enableval} = "no" ; then
5052   DEBUG_RUNTIME=
5053
5054 else
5055   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5056
5057 fi
5058
5059 # Check whether --enable-debug-symbols was given.
5060 if test "${enable_debug_symbols+set}" = set; then
5061   enableval=$enable_debug_symbols;
5062 else
5063   enableval=no
5064 fi
5065
5066 if test ${enableval} = "no" ; then
5067   DEBUG_SYMBOLS=
5068
5069 else
5070   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5071
5072 fi
5073
5074 # Check whether --enable-jit was given.
5075 if test "${enable_jit+set}" = set; then
5076   enableval=$enable_jit;
5077 else
5078   enableval=default
5079 fi
5080
5081 if test ${enableval} = "no"
5082 then
5083   JIT=
5084
5085 else
5086   case "$llvm_cv_target_arch" in
5087     x86)         TARGET_HAS_JIT=1
5088  ;;
5089     Sparc)       TARGET_HAS_JIT=0
5090  ;;
5091     PowerPC)     TARGET_HAS_JIT=1
5092  ;;
5093     x86_64)      TARGET_HAS_JIT=1
5094  ;;
5095     ARM)         TARGET_HAS_JIT=1
5096  ;;
5097     Mips)        TARGET_HAS_JIT=1
5098  ;;
5099     XCore)       TARGET_HAS_JIT=0
5100  ;;
5101     MSP430)      TARGET_HAS_JIT=0
5102  ;;
5103     MBlaze)      TARGET_HAS_JIT=0
5104  ;;
5105     PTX)         TARGET_HAS_JIT=0
5106  ;;
5107     *)           TARGET_HAS_JIT=0
5108  ;;
5109   esac
5110 fi
5111
5112 # Check whether --enable-docs was given.
5113 if test "${enable_docs+set}" = set; then
5114   enableval=$enable_docs;
5115 else
5116   enableval=default
5117 fi
5118
5119 case "$enableval" in
5120   yes) ENABLE_DOCS=1
5121  ;;
5122   no)  ENABLE_DOCS=0
5123  ;;
5124   default) ENABLE_DOCS=1
5125  ;;
5126   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5128    { (exit 1); exit 1; }; } ;;
5129 esac
5130
5131 # Check whether --enable-doxygen was given.
5132 if test "${enable_doxygen+set}" = set; then
5133   enableval=$enable_doxygen;
5134 else
5135   enableval=default
5136 fi
5137
5138 case "$enableval" in
5139   yes) ENABLE_DOXYGEN=1
5140  ;;
5141   no)  ENABLE_DOXYGEN=0
5142  ;;
5143   default) ENABLE_DOXYGEN=0
5144  ;;
5145   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5147    { (exit 1); exit 1; }; } ;;
5148 esac
5149
5150 # Check whether --enable-threads was given.
5151 if test "${enable_threads+set}" = set; then
5152   enableval=$enable_threads;
5153 else
5154   enableval=default
5155 fi
5156
5157 case "$enableval" in
5158   yes) ENABLE_THREADS=1
5159  ;;
5160   no)  ENABLE_THREADS=0
5161  ;;
5162   default) ENABLE_THREADS=1
5163  ;;
5164   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5166    { (exit 1); exit 1; }; } ;;
5167 esac
5168
5169 cat >>confdefs.h <<_ACEOF
5170 #define ENABLE_THREADS $ENABLE_THREADS
5171 _ACEOF
5172
5173
5174 # Check whether --enable-pthreads was given.
5175 if test "${enable_pthreads+set}" = set; then
5176   enableval=$enable_pthreads;
5177 else
5178   enableval=default
5179 fi
5180
5181 case "$enableval" in
5182   yes) ENABLE_PTHREADS=1
5183  ;;
5184   no)  ENABLE_PTHREADS=0
5185  ;;
5186   default) ENABLE_PTHREADS=1
5187  ;;
5188   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5190    { (exit 1); exit 1; }; } ;;
5191 esac
5192
5193 # Check whether --enable-pic was given.
5194 if test "${enable_pic+set}" = set; then
5195   enableval=$enable_pic;
5196 else
5197   enableval=default
5198 fi
5199
5200 case "$enableval" in
5201   yes) ENABLE_PIC=1
5202  ;;
5203   no)  ENABLE_PIC=0
5204  ;;
5205   default) ENABLE_PIC=1
5206  ;;
5207   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210 esac
5211
5212 cat >>confdefs.h <<_ACEOF
5213 #define ENABLE_PIC $ENABLE_PIC
5214 _ACEOF
5215
5216
5217 # Check whether --enable-shared was given.
5218 if test "${enable_shared+set}" = set; then
5219   enableval=$enable_shared;
5220 else
5221   enableval=default
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_SHARED=1
5226  ;;
5227   no)  ENABLE_SHARED=0
5228  ;;
5229   default) ENABLE_SHARED=0
5230  ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5235
5236 # Check whether --enable-embed-stdcxx was given.
5237 if test "${enable_embed_stdcxx+set}" = set; then
5238   enableval=$enable_embed_stdcxx;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_EMBED_STDCXX=1
5245  ;;
5246   no)  ENABLE_EMBED_STDCXX=0
5247  ;;
5248   default) ENABLE_EMBED_STDCXX=0
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-timestamps was given.
5256 if test "${enable_timestamps+set}" = set; then
5257   enableval=$enable_timestamps;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) ENABLE_TIMESTAMPS=1
5264  ;;
5265   no)  ENABLE_TIMESTAMPS=0
5266  ;;
5267   default) ENABLE_TIMESTAMPS=1
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5276 _ACEOF
5277
5278
5279 TARGETS_TO_BUILD=""
5280 # Check whether --enable-targets was given.
5281 if test "${enable_targets+set}" = set; then
5282   enableval=$enable_targets;
5283 else
5284   enableval=all
5285 fi
5286
5287 if test "$enableval" = host-only ; then
5288   enableval=host
5289 fi
5290 case "$enableval" in
5291   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5292   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5293       case "$a_target" in
5294         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5296         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5297         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5298         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5299         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5300         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5301         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5303         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5304         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5305         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5306         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5307         host) case "$llvm_cv_target_arch" in
5308             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5313             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5314             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5315             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5316             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5319             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5320 echo "$as_me: error: Can not set target to build" >&2;}
5321    { (exit 1); exit 1; }; } ;;
5322           esac ;;
5323         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5324 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5325    { (exit 1); exit 1; }; } ;;
5326       esac
5327   done
5328   ;;
5329 esac
5330 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5331
5332
5333 # Determine whether we are building LLVM support for the native architecture.
5334 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5335 for a_target in $TARGETS_TO_BUILD; do
5336   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5337
5338 cat >>confdefs.h <<_ACEOF
5339 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5340 _ACEOF
5341
5342     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5343     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5344     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5345     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5346     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5347       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5348     fi
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5352 _ACEOF
5353
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5357 _ACEOF
5358
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5362 _ACEOF
5363
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5367 _ACEOF
5368
5369     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5373 _ACEOF
5374
5375     fi
5376   fi
5377 done
5378
5379 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5380 # target feature def files.
5381 LLVM_ENUM_TARGETS=""
5382 LLVM_ENUM_ASM_PRINTERS=""
5383 LLVM_ENUM_ASM_PARSERS=""
5384 LLVM_ENUM_DISASSEMBLERS=""
5385 for target_to_build in $TARGETS_TO_BUILD; do
5386   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5387   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5388     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5389   fi
5390   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5391     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5392   fi
5393   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5394     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5395   fi
5396 done
5397
5398
5399
5400
5401
5402 # Check whether --enable-cbe-printf-a was given.
5403 if test "${enable_cbe_printf_a+set}" = set; then
5404   enableval=$enable_cbe_printf_a;
5405 else
5406   enableval=default
5407 fi
5408
5409 case "$enableval" in
5410   yes) ENABLE_CBE_PRINTF_A=1
5411  ;;
5412   no)  ENABLE_CBE_PRINTF_A=0
5413  ;;
5414   default)  ENABLE_CBE_PRINTF_A=1
5415  ;;
5416   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5417 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5418    { (exit 1); exit 1; }; } ;;
5419 esac
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5423 _ACEOF
5424
5425
5426
5427 # Check whether --with-optimize-option was given.
5428 if test "${with_optimize_option+set}" = set; then
5429   withval=$with_optimize_option;
5430 else
5431   withval=default
5432 fi
5433
5434 { echo "$as_me:$LINENO: checking optimization flags" >&5
5435 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5436 case "$withval" in
5437   default)
5438     case "$llvm_cv_os_type" in
5439     FreeBSD) optimize_option=-O2 ;;
5440     MingW) optimize_option=-O2 ;;
5441     *)     optimize_option=-O3 ;;
5442     esac ;;
5443   *) optimize_option="$withval" ;;
5444 esac
5445 OPTIMIZE_OPTION=$optimize_option
5446
5447 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5448 echo "${ECHO_T}$optimize_option" >&6; }
5449
5450
5451 # Check whether --with-extra-options was given.
5452 if test "${with_extra_options+set}" = set; then
5453   withval=$with_extra_options;
5454 else
5455   withval=default
5456 fi
5457
5458 case "$withval" in
5459   default) EXTRA_OPTIONS= ;;
5460   *) EXTRA_OPTIONS=$withval ;;
5461 esac
5462 EXTRA_OPTIONS=$EXTRA_OPTIONS
5463
5464
5465
5466 # Check whether --with-extra-ld-options was given.
5467 if test "${with_extra_ld_options+set}" = set; then
5468   withval=$with_extra_ld_options;
5469 else
5470   withval=default
5471 fi
5472
5473 case "$withval" in
5474   default) EXTRA_LD_OPTIONS= ;;
5475   *) EXTRA_LD_OPTIONS=$withval ;;
5476 esac
5477 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5478
5479
5480 # Check whether --enable-bindings was given.
5481 if test "${enable_bindings+set}" = set; then
5482   enableval=$enable_bindings;
5483 else
5484   enableval=default
5485 fi
5486
5487 BINDINGS_TO_BUILD=""
5488 case "$enableval" in
5489   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5490   all ) BINDINGS_TO_BUILD="ocaml" ;;
5491   none | no) BINDINGS_TO_BUILD="" ;;
5492   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5493       case "$a_binding" in
5494         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5495         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5496 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5497    { (exit 1); exit 1; }; } ;;
5498       esac
5499   done
5500   ;;
5501 esac
5502
5503
5504 # Check whether --with-ocaml-libdir was given.
5505 if test "${with_ocaml_libdir+set}" = set; then
5506   withval=$with_ocaml_libdir;
5507 else
5508   withval=auto
5509 fi
5510
5511 case "$withval" in
5512   auto) with_ocaml_libdir="$withval" ;;
5513   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5514   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5515 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5516    { (exit 1); exit 1; }; } ;;
5517 esac
5518
5519
5520 # Check whether --with-clang-srcdir was given.
5521 if test "${with_clang_srcdir+set}" = set; then
5522   withval=$with_clang_srcdir;
5523 else
5524   withval="-"
5525 fi
5526
5527 case "$withval" in
5528   -) clang_src_root="" ;;
5529   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5530   *) clang_src_root="$ac_pwd/$withval" ;;
5531 esac
5532 CLANG_SRC_ROOT=$clang_src_root
5533
5534
5535
5536 # Check whether --with-clang-resource-dir was given.
5537 if test "${with_clang_resource_dir+set}" = set; then
5538   withval=$with_clang_resource_dir;
5539 else
5540   withval=""
5541 fi
5542
5543
5544 cat >>confdefs.h <<_ACEOF
5545 #define CLANG_RESOURCE_DIR "$withval"
5546 _ACEOF
5547
5548
5549
5550 # Check whether --with-c-include-dirs was given.
5551 if test "${with_c_include_dirs+set}" = set; then
5552   withval=$with_c_include_dirs;
5553 else
5554   withval=""
5555 fi
5556
5557
5558 cat >>confdefs.h <<_ACEOF
5559 #define C_INCLUDE_DIRS "$withval"
5560 _ACEOF
5561
5562
5563
5564 # Check whether --with-cxx-include-root was given.
5565 if test "${with_cxx_include_root+set}" = set; then
5566   withval=$with_cxx_include_root;
5567 else
5568   withval=""
5569 fi
5570
5571
5572 cat >>confdefs.h <<_ACEOF
5573 #define CXX_INCLUDE_ROOT "$withval"
5574 _ACEOF
5575
5576
5577
5578 # Check whether --with-cxx-include-arch was given.
5579 if test "${with_cxx_include_arch+set}" = set; then
5580   withval=$with_cxx_include_arch;
5581 else
5582   withval=""
5583 fi
5584
5585
5586 cat >>confdefs.h <<_ACEOF
5587 #define CXX_INCLUDE_ARCH "$withval"
5588 _ACEOF
5589
5590
5591
5592 # Check whether --with-cxx-include-32bit-dir was given.
5593 if test "${with_cxx_include_32bit_dir+set}" = set; then
5594   withval=$with_cxx_include_32bit_dir;
5595 else
5596   withval=""
5597 fi
5598
5599
5600 cat >>confdefs.h <<_ACEOF
5601 #define CXX_INCLUDE_32BIT_DIR "$withval"
5602 _ACEOF
5603
5604
5605
5606 # Check whether --with-cxx-include-64bit-dir was given.
5607 if test "${with_cxx_include_64bit_dir+set}" = set; then
5608   withval=$with_cxx_include_64bit_dir;
5609 else
5610   withval=""
5611 fi
5612
5613
5614 cat >>confdefs.h <<_ACEOF
5615 #define CXX_INCLUDE_64BIT_DIR "$withval"
5616 _ACEOF
5617
5618
5619
5620 # Check whether --with-binutils-include was given.
5621 if test "${with_binutils_include+set}" = set; then
5622   withval=$with_binutils_include;
5623 else
5624   withval=default
5625 fi
5626
5627 case "$withval" in
5628   default) WITH_BINUTILS_INCDIR=default ;;
5629   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5630   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5631 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5632    { (exit 1); exit 1; }; } ;;
5633 esac
5634 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5635   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5636
5637   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5638      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5639      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5640 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5641    { (exit 1); exit 1; }; };
5642   fi
5643 fi
5644
5645
5646 # Check whether --with-bug-report-url was given.
5647 if test "${with_bug_report_url+set}" = set; then
5648   withval=$with_bug_report_url;
5649 else
5650   withval="http://llvm.org/bugs/"
5651 fi
5652
5653
5654 cat >>confdefs.h <<_ACEOF
5655 #define BUG_REPORT_URL "$withval"
5656 _ACEOF
5657
5658
5659 # Check whether --enable-libffi was given.
5660 if test "${enable_libffi+set}" = set; then
5661   enableval=$enable_libffi; case "$enableval" in
5662     yes) llvm_cv_enable_libffi="yes" ;;
5663     no)  llvm_cv_enable_libffi="no"  ;;
5664     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5665 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5666    { (exit 1); exit 1; }; } ;;
5667   esac
5668 else
5669   llvm_cv_enable_libffi=no
5670 fi
5671
5672
5673
5674 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5675 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5676 if test "${lt_cv_path_NM+set}" = set; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679   if test -n "$NM"; then
5680   # Let the user override the test.
5681   lt_cv_path_NM="$NM"
5682 else
5683   lt_nm_to_check="${ac_tool_prefix}nm"
5684   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5685     lt_nm_to_check="$lt_nm_to_check nm"
5686   fi
5687   for lt_tmp_nm in $lt_nm_to_check; do
5688     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5689     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5690       IFS="$lt_save_ifs"
5691       test -z "$ac_dir" && ac_dir=.
5692       tmp_nm="$ac_dir/$lt_tmp_nm"
5693       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5694         # Check to see if the nm accepts a BSD-compat flag.
5695         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5696         #   nm: unknown option "B" ignored
5697         # Tru64's nm complains that /dev/null is an invalid object file
5698         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5699         */dev/null* | *'Invalid file or object type'*)
5700           lt_cv_path_NM="$tmp_nm -B"
5701           break
5702           ;;
5703         *)
5704           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5705           */dev/null*)
5706             lt_cv_path_NM="$tmp_nm -p"
5707             break
5708             ;;
5709           *)
5710             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5711             continue # so that we can try to find one that supports BSD flags
5712             ;;
5713           esac
5714           ;;
5715         esac
5716       fi
5717     done
5718     IFS="$lt_save_ifs"
5719   done
5720   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5721 fi
5722 fi
5723 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5724 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5725 NM="$lt_cv_path_NM"
5726
5727
5728
5729 { echo "$as_me:$LINENO: checking for GNU make" >&5
5730 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5731 if test "${llvm_cv_gnu_make_command+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   llvm_cv_gnu_make_command=''
5735  for a in "$MAKE" make gmake gnumake ; do
5736   if test -z "$a" ; then continue ; fi ;
5737   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5738   then
5739    llvm_cv_gnu_make_command=$a ;
5740    break;
5741   fi
5742  done
5743 fi
5744 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5745 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5746  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5747    ifGNUmake='' ;
5748  else
5749    ifGNUmake='#' ;
5750    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5751 echo "${ECHO_T}\"Not found\"" >&6; };
5752  fi
5753
5754
5755 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5756 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5757 LN_S=$as_ln_s
5758 if test "$LN_S" = "ln -s"; then
5759   { echo "$as_me:$LINENO: result: yes" >&5
5760 echo "${ECHO_T}yes" >&6; }
5761 else
5762   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5763 echo "${ECHO_T}no, using $LN_S" >&6; }
5764 fi
5765
5766 # Extract the first word of "cmp", so it can be a program name with args.
5767 set dummy cmp; ac_word=$2
5768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5770 if test "${ac_cv_path_CMP+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   case $CMP in
5774   [\\/]* | ?:[\\/]*)
5775   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5776   ;;
5777   *)
5778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783   for ac_exec_ext in '' $ac_executable_extensions; do
5784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5785     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5794   ;;
5795 esac
5796 fi
5797 CMP=$ac_cv_path_CMP
5798 if test -n "$CMP"; then
5799   { echo "$as_me:$LINENO: result: $CMP" >&5
5800 echo "${ECHO_T}$CMP" >&6; }
5801 else
5802   { echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6; }
5804 fi
5805
5806
5807 # Extract the first word of "cp", so it can be a program name with args.
5808 set dummy cp; ac_word=$2
5809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811 if test "${ac_cv_path_CP+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   case $CP in
5815   [\\/]* | ?:[\\/]*)
5816   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5817   ;;
5818   *)
5819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for ac_exec_ext in '' $ac_executable_extensions; do
5825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5826     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831 done
5832 IFS=$as_save_IFS
5833
5834   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5835   ;;
5836 esac
5837 fi
5838 CP=$ac_cv_path_CP
5839 if test -n "$CP"; then
5840   { echo "$as_me:$LINENO: result: $CP" >&5
5841 echo "${ECHO_T}$CP" >&6; }
5842 else
5843   { echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6; }
5845 fi
5846
5847
5848 # Extract the first word of "date", so it can be a program name with args.
5849 set dummy date; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_path_DATE+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   case $DATE in
5856   [\\/]* | ?:[\\/]*)
5857   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5858   ;;
5859   *)
5860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863   IFS=$as_save_IFS
5864   test -z "$as_dir" && as_dir=.
5865   for ac_exec_ext in '' $ac_executable_extensions; do
5866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5867     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869     break 2
5870   fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5876   ;;
5877 esac
5878 fi
5879 DATE=$ac_cv_path_DATE
5880 if test -n "$DATE"; then
5881   { echo "$as_me:$LINENO: result: $DATE" >&5
5882 echo "${ECHO_T}$DATE" >&6; }
5883 else
5884   { echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6; }
5886 fi
5887
5888
5889 # Extract the first word of "find", so it can be a program name with args.
5890 set dummy find; ac_word=$2
5891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893 if test "${ac_cv_path_FIND+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   case $FIND in
5897   [\\/]* | ?:[\\/]*)
5898   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5899   ;;
5900   *)
5901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5917   ;;
5918 esac
5919 fi
5920 FIND=$ac_cv_path_FIND
5921 if test -n "$FIND"; then
5922   { echo "$as_me:$LINENO: result: $FIND" >&5
5923 echo "${ECHO_T}$FIND" >&6; }
5924 else
5925   { echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6; }
5927 fi
5928
5929
5930 # Extract the first word of "grep", so it can be a program name with args.
5931 set dummy grep; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_path_GREP+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   case $GREP in
5938   [\\/]* | ?:[\\/]*)
5939   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5940   ;;
5941   *)
5942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947   for ac_exec_ext in '' $ac_executable_extensions; do
5948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5949     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954 done
5955 IFS=$as_save_IFS
5956
5957   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5958   ;;
5959 esac
5960 fi
5961 GREP=$ac_cv_path_GREP
5962 if test -n "$GREP"; then
5963   { echo "$as_me:$LINENO: result: $GREP" >&5
5964 echo "${ECHO_T}$GREP" >&6; }
5965 else
5966   { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5968 fi
5969
5970
5971 # Extract the first word of "mkdir", so it can be a program name with args.
5972 set dummy mkdir; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_path_MKDIR+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   case $MKDIR in
5979   [\\/]* | ?:[\\/]*)
5980   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5981   ;;
5982   *)
5983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988   for ac_exec_ext in '' $ac_executable_extensions; do
5989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5990     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5999   ;;
6000 esac
6001 fi
6002 MKDIR=$ac_cv_path_MKDIR
6003 if test -n "$MKDIR"; then
6004   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6005 echo "${ECHO_T}$MKDIR" >&6; }
6006 else
6007   { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6009 fi
6010
6011
6012 # Extract the first word of "mv", so it can be a program name with args.
6013 set dummy mv; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_MV+set}" = set; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019   case $MV in
6020   [\\/]* | ?:[\\/]*)
6021   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6022   ;;
6023   *)
6024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029   for ac_exec_ext in '' $ac_executable_extensions; do
6030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6040   ;;
6041 esac
6042 fi
6043 MV=$ac_cv_path_MV
6044 if test -n "$MV"; then
6045   { echo "$as_me:$LINENO: result: $MV" >&5
6046 echo "${ECHO_T}$MV" >&6; }
6047 else
6048   { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6050 fi
6051
6052
6053 if test -n "$ac_tool_prefix"; then
6054   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_RANLIB+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   if test -n "$RANLIB"; then
6062   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 RANLIB=$ac_cv_prog_RANLIB
6082 if test -n "$RANLIB"; then
6083   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6084 echo "${ECHO_T}$RANLIB" >&6; }
6085 else
6086   { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6088 fi
6089
6090
6091 fi
6092 if test -z "$ac_cv_prog_RANLIB"; then
6093   ac_ct_RANLIB=$RANLIB
6094   # Extract the first word of "ranlib", so it can be a program name with args.
6095 set dummy ranlib; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   if test -n "$ac_ct_RANLIB"; then
6102   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109   for ac_exec_ext in '' $ac_executable_extensions; do
6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111     ac_cv_prog_ac_ct_RANLIB="ranlib"
6112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6122 if test -n "$ac_ct_RANLIB"; then
6123   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6124 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6125 else
6126   { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130   if test "x$ac_ct_RANLIB" = x; then
6131     RANLIB=":"
6132   else
6133     case $cross_compiling:$ac_tool_warned in
6134 yes:)
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet.  If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet.  If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6142 esac
6143     RANLIB=$ac_ct_RANLIB
6144   fi
6145 else
6146   RANLIB="$ac_cv_prog_RANLIB"
6147 fi
6148
6149 if test -n "$ac_tool_prefix"; then
6150   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6151 set dummy ${ac_tool_prefix}ar; ac_word=$2
6152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154 if test "${ac_cv_prog_AR+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157   if test -n "$AR"; then
6158   ac_cv_prog_AR="$AR" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165   for ac_exec_ext in '' $ac_executable_extensions; do
6166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167     ac_cv_prog_AR="${ac_tool_prefix}ar"
6168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 AR=$ac_cv_prog_AR
6178 if test -n "$AR"; then
6179   { echo "$as_me:$LINENO: result: $AR" >&5
6180 echo "${ECHO_T}$AR" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186
6187 fi
6188 if test -z "$ac_cv_prog_AR"; then
6189   ac_ct_AR=$AR
6190   # Extract the first word of "ar", so it can be a program name with args.
6191 set dummy ar; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -n "$ac_ct_AR"; then
6198   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_ac_ct_AR="ar"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6218 if test -n "$ac_ct_AR"; then
6219   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6220 echo "${ECHO_T}$ac_ct_AR" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226   if test "x$ac_ct_AR" = x; then
6227     AR="false"
6228   else
6229     case $cross_compiling:$ac_tool_warned in
6230 yes:)
6231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet.  If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&5
6234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235 whose name does not start with the host triplet.  If you think this
6236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239     AR=$ac_ct_AR
6240   fi
6241 else
6242   AR="$ac_cv_prog_AR"
6243 fi
6244
6245 # Extract the first word of "rm", so it can be a program name with args.
6246 set dummy rm; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_path_RM+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   case $RM in
6253   [\\/]* | ?:[\\/]*)
6254   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6255   ;;
6256   *)
6257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260   IFS=$as_save_IFS
6261   test -z "$as_dir" && as_dir=.
6262   for ac_exec_ext in '' $ac_executable_extensions; do
6263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6264     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266     break 2
6267   fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6273   ;;
6274 esac
6275 fi
6276 RM=$ac_cv_path_RM
6277 if test -n "$RM"; then
6278   { echo "$as_me:$LINENO: result: $RM" >&5
6279 echo "${ECHO_T}$RM" >&6; }
6280 else
6281   { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6283 fi
6284
6285
6286 # Extract the first word of "sed", so it can be a program name with args.
6287 set dummy sed; ac_word=$2
6288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6290 if test "${ac_cv_path_SED+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   case $SED in
6294   [\\/]* | ?:[\\/]*)
6295   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6296   ;;
6297   *)
6298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6314   ;;
6315 esac
6316 fi
6317 SED=$ac_cv_path_SED
6318 if test -n "$SED"; then
6319   { echo "$as_me:$LINENO: result: $SED" >&5
6320 echo "${ECHO_T}$SED" >&6; }
6321 else
6322   { echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6; }
6324 fi
6325
6326
6327 # Extract the first word of "tar", so it can be a program name with args.
6328 set dummy tar; ac_word=$2
6329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6331 if test "${ac_cv_path_TAR+set}" = set; then
6332   echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334   case $TAR in
6335   [\\/]* | ?:[\\/]*)
6336   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6337   ;;
6338   *)
6339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344   for ac_exec_ext in '' $ac_executable_extensions; do
6345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6346     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6355   ;;
6356 esac
6357 fi
6358 TAR=$ac_cv_path_TAR
6359 if test -n "$TAR"; then
6360   { echo "$as_me:$LINENO: result: $TAR" >&5
6361 echo "${ECHO_T}$TAR" >&6; }
6362 else
6363   { echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6; }
6365 fi
6366
6367
6368 # Extract the first word of "pwd", so it can be a program name with args.
6369 set dummy pwd; ac_word=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_path_BINPWD+set}" = set; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   case $BINPWD in
6376   [\\/]* | ?:[\\/]*)
6377   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6378   ;;
6379   *)
6380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385   for ac_exec_ext in '' $ac_executable_extensions; do
6386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6387     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6396   ;;
6397 esac
6398 fi
6399 BINPWD=$ac_cv_path_BINPWD
6400 if test -n "$BINPWD"; then
6401   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6402 echo "${ECHO_T}$BINPWD" >&6; }
6403 else
6404   { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6406 fi
6407
6408
6409
6410 # Extract the first word of "Graphviz", so it can be a program name with args.
6411 set dummy Graphviz; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   case $GRAPHVIZ in
6418   [\\/]* | ?:[\\/]*)
6419   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6420   ;;
6421   *)
6422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6438   ;;
6439 esac
6440 fi
6441 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6442 if test -n "$GRAPHVIZ"; then
6443   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6444 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6445 else
6446   { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6448 fi
6449
6450
6451 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6452
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_GRAPHVIZ 1
6455 _ACEOF
6456
6457     if test "$llvm_cv_os_type" = "MingW" ; then
6458     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6459   fi
6460
6461 cat >>confdefs.h <<_ACEOF
6462 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6463 _ACEOF
6464
6465 fi
6466 # Extract the first word of "dot", so it can be a program name with args.
6467 set dummy dot; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_DOT+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   case $DOT in
6474   [\\/]* | ?:[\\/]*)
6475   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6476   ;;
6477   *)
6478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483   for ac_exec_ext in '' $ac_executable_extensions; do
6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6494   ;;
6495 esac
6496 fi
6497 DOT=$ac_cv_path_DOT
6498 if test -n "$DOT"; then
6499   { echo "$as_me:$LINENO: result: $DOT" >&5
6500 echo "${ECHO_T}$DOT" >&6; }
6501 else
6502   { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6504 fi
6505
6506
6507 if test "$DOT" != "echo dot" ; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_DOT 1
6511 _ACEOF
6512
6513     if test "$llvm_cv_os_type" = "MingW" ; then
6514     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515   fi
6516
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6519 _ACEOF
6520
6521 fi
6522 # Extract the first word of "fdp", so it can be a program name with args.
6523 set dummy fdp; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_FDP+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   case $FDP in
6530   [\\/]* | ?:[\\/]*)
6531   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6532   ;;
6533   *)
6534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539   for ac_exec_ext in '' $ac_executable_extensions; do
6540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6550   ;;
6551 esac
6552 fi
6553 FDP=$ac_cv_path_FDP
6554 if test -n "$FDP"; then
6555   { echo "$as_me:$LINENO: result: $FDP" >&5
6556 echo "${ECHO_T}$FDP" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563 if test "$FDP" != "echo fdp" ; then
6564
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_FDP 1
6567 _ACEOF
6568
6569     if test "$llvm_cv_os_type" = "MingW" ; then
6570     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571   fi
6572
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6575 _ACEOF
6576
6577 fi
6578 # Extract the first word of "neato", so it can be a program name with args.
6579 set dummy neato; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_NEATO+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   case $NEATO in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6606   ;;
6607 esac
6608 fi
6609 NEATO=$ac_cv_path_NEATO
6610 if test -n "$NEATO"; then
6611   { echo "$as_me:$LINENO: result: $NEATO" >&5
6612 echo "${ECHO_T}$NEATO" >&6; }
6613 else
6614   { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6616 fi
6617
6618
6619 if test "$NEATO" != "echo neato" ; then
6620
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_NEATO 1
6623 _ACEOF
6624
6625     if test "$llvm_cv_os_type" = "MingW" ; then
6626     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627   fi
6628
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6631 _ACEOF
6632
6633 fi
6634 # Extract the first word of "twopi", so it can be a program name with args.
6635 set dummy twopi; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_TWOPI+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   case $TWOPI in
6642   [\\/]* | ?:[\\/]*)
6643   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6644   ;;
6645   *)
6646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6662   ;;
6663 esac
6664 fi
6665 TWOPI=$ac_cv_path_TWOPI
6666 if test -n "$TWOPI"; then
6667   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6668 echo "${ECHO_T}$TWOPI" >&6; }
6669 else
6670   { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672 fi
6673
6674
6675 if test "$TWOPI" != "echo twopi" ; then
6676
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_TWOPI 1
6679 _ACEOF
6680
6681     if test "$llvm_cv_os_type" = "MingW" ; then
6682     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6683   fi
6684
6685 cat >>confdefs.h <<_ACEOF
6686 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6687 _ACEOF
6688
6689 fi
6690 # Extract the first word of "circo", so it can be a program name with args.
6691 set dummy circo; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_CIRCO+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   case $CIRCO in
6698   [\\/]* | ?:[\\/]*)
6699   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6700   ;;
6701   *)
6702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707   for ac_exec_ext in '' $ac_executable_extensions; do
6708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6718   ;;
6719 esac
6720 fi
6721 CIRCO=$ac_cv_path_CIRCO
6722 if test -n "$CIRCO"; then
6723   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6724 echo "${ECHO_T}$CIRCO" >&6; }
6725 else
6726   { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6728 fi
6729
6730
6731 if test "$CIRCO" != "echo circo" ; then
6732
6733 cat >>confdefs.h <<\_ACEOF
6734 #define HAVE_CIRCO 1
6735 _ACEOF
6736
6737     if test "$llvm_cv_os_type" = "MingW" ; then
6738     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6739   fi
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6743 _ACEOF
6744
6745 fi
6746 for ac_prog in gv gsview32
6747 do
6748   # Extract the first word of "$ac_prog", so it can be a program name with args.
6749 set dummy $ac_prog; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_GV+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   case $GV in
6756   [\\/]* | ?:[\\/]*)
6757   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6758   ;;
6759   *)
6760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775   ;;
6776 esac
6777 fi
6778 GV=$ac_cv_path_GV
6779 if test -n "$GV"; then
6780   { echo "$as_me:$LINENO: result: $GV" >&5
6781 echo "${ECHO_T}$GV" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788   test -n "$GV" && break
6789 done
6790 test -n "$GV" || GV="echo gv"
6791
6792 if test "$GV" != "echo gv" ; then
6793
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_GV 1
6796 _ACEOF
6797
6798     if test "$llvm_cv_os_type" = "MingW" ; then
6799     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800   fi
6801
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_GV "$GV${EXEEXT}"
6804 _ACEOF
6805
6806 fi
6807 # Extract the first word of "dotty", so it can be a program name with args.
6808 set dummy dotty; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_DOTTY+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   case $DOTTY in
6815   [\\/]* | ?:[\\/]*)
6816   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6817   ;;
6818   *)
6819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6835   ;;
6836 esac
6837 fi
6838 DOTTY=$ac_cv_path_DOTTY
6839 if test -n "$DOTTY"; then
6840   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6841 echo "${ECHO_T}$DOTTY" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847
6848 if test "$DOTTY" != "echo dotty" ; then
6849
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_DOTTY 1
6852 _ACEOF
6853
6854     if test "$llvm_cv_os_type" = "MingW" ; then
6855     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856   fi
6857
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6860 _ACEOF
6861
6862 fi
6863 # Extract the first word of "xdot.py", so it can be a program name with args.
6864 set dummy xdot.py; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   case $XDOT_PY in
6871   [\\/]* | ?:[\\/]*)
6872   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6873   ;;
6874   *)
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6891   ;;
6892 esac
6893 fi
6894 XDOT_PY=$ac_cv_path_XDOT_PY
6895 if test -n "$XDOT_PY"; then
6896   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6897 echo "${ECHO_T}$XDOT_PY" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904 if test "$XDOT_PY" != "echo xdot.py" ; then
6905
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_XDOT_PY 1
6908 _ACEOF
6909
6910     if test "$llvm_cv_os_type" = "MingW" ; then
6911     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6912   fi
6913
6914 cat >>confdefs.h <<_ACEOF
6915 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6916 _ACEOF
6917
6918 fi
6919
6920
6921 # Extract the first word of "perl", so it can be a program name with args.
6922 set dummy perl; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_PERL+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   case $PERL in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938   for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6949   ;;
6950 esac
6951 fi
6952 PERL=$ac_cv_path_PERL
6953 if test -n "$PERL"; then
6954   { echo "$as_me:$LINENO: result: $PERL" >&5
6955 echo "${ECHO_T}$PERL" >&6; }
6956 else
6957   { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959 fi
6960
6961
6962 if test "$PERL" != "none"; then
6963   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6964 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6965   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6966     { echo "$as_me:$LINENO: result: yes" >&5
6967 echo "${ECHO_T}yes" >&6; }
6968   else
6969     PERL=none
6970     { echo "$as_me:$LINENO: result: not found" >&5
6971 echo "${ECHO_T}not found" >&6; }
6972   fi
6973 fi
6974
6975
6976 if test x"$PERL" = xnone; then
6977    HAVE_PERL=0
6978
6979    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6980 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6981    { (exit 1); exit 1; }; }
6982 else
6983    HAVE_PERL=1
6984
6985 fi
6986
6987 # Find a good install program.  We prefer a C program (faster),
6988 # so one script is as good as another.  But avoid the broken or
6989 # incompatible versions:
6990 # SysV /etc/install, /usr/sbin/install
6991 # SunOS /usr/etc/install
6992 # IRIX /sbin/install
6993 # AIX /bin/install
6994 # AmigaOS /C/install, which installs bootblocks on floppy discs
6995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6998 # OS/2's system install, which has a completely different semantic
6999 # ./install, which can be erroneously created by make from ./install.sh.
7000 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7001 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7002 if test -z "$INSTALL"; then
7003 if test "${ac_cv_path_install+set}" = set; then
7004   echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011   # Account for people who put trailing slashes in PATH elements.
7012 case $as_dir/ in
7013   ./ | .// | /cC/* | \
7014   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7015   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7016   /usr/ucb/* ) ;;
7017   *)
7018     # OSF1 and SCO ODT 3.0 have their own names for install.
7019     # Don't use installbsd from OSF since it installs stuff as root
7020     # by default.
7021     for ac_prog in ginstall scoinst install; do
7022       for ac_exec_ext in '' $ac_executable_extensions; do
7023         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7024           if test $ac_prog = install &&
7025             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7026             # AIX install.  It has an incompatible calling convention.
7027             :
7028           elif test $ac_prog = install &&
7029             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7030             # program-specific install script used by HP pwplus--don't use.
7031             :
7032           else
7033             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7034             break 3
7035           fi
7036         fi
7037       done
7038     done
7039     ;;
7040 esac
7041 done
7042 IFS=$as_save_IFS
7043
7044
7045 fi
7046   if test "${ac_cv_path_install+set}" = set; then
7047     INSTALL=$ac_cv_path_install
7048   else
7049     # As a last resort, use the slow shell script.  Don't cache a
7050     # value for INSTALL within a source directory, because that will
7051     # break other packages using the cache if that directory is
7052     # removed, or if the value is a relative name.
7053     INSTALL=$ac_install_sh
7054   fi
7055 fi
7056 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7057 echo "${ECHO_T}$INSTALL" >&6; }
7058
7059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7060 # It thinks the first close brace ends the variable substitution.
7061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7062
7063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7064
7065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7066
7067 case "$INSTALL" in
7068  [\\/$]* | ?:[\\/]* ) ;;
7069  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7070 esac
7071
7072 # Extract the first word of "bzip2", so it can be a program name with args.
7073 set dummy bzip2; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BZIP2+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $BZIP2 in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   ;;
7100 esac
7101 fi
7102 BZIP2=$ac_cv_path_BZIP2
7103 if test -n "$BZIP2"; then
7104   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7105 echo "${ECHO_T}$BZIP2" >&6; }
7106 else
7107   { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7109 fi
7110
7111
7112 # Extract the first word of "cat", so it can be a program name with args.
7113 set dummy cat; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_CAT+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   case $CAT in
7120   [\\/]* | ?:[\\/]*)
7121   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7122   ;;
7123   *)
7124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129   for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139   ;;
7140 esac
7141 fi
7142 CAT=$ac_cv_path_CAT
7143 if test -n "$CAT"; then
7144   { echo "$as_me:$LINENO: result: $CAT" >&5
7145 echo "${ECHO_T}$CAT" >&6; }
7146 else
7147   { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7149 fi
7150
7151
7152 # Extract the first word of "doxygen", so it can be a program name with args.
7153 set dummy doxygen; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   case $DOXYGEN in
7160   [\\/]* | ?:[\\/]*)
7161   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7162   ;;
7163   *)
7164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169   for ac_exec_ext in '' $ac_executable_extensions; do
7170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179   ;;
7180 esac
7181 fi
7182 DOXYGEN=$ac_cv_path_DOXYGEN
7183 if test -n "$DOXYGEN"; then
7184   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7185 echo "${ECHO_T}$DOXYGEN" >&6; }
7186 else
7187   { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7189 fi
7190
7191
7192 # Extract the first word of "groff", so it can be a program name with args.
7193 set dummy groff; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_GROFF+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   case $GROFF in
7200   [\\/]* | ?:[\\/]*)
7201   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7202   ;;
7203   *)
7204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209   for ac_exec_ext in '' $ac_executable_extensions; do
7210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219   ;;
7220 esac
7221 fi
7222 GROFF=$ac_cv_path_GROFF
7223 if test -n "$GROFF"; then
7224   { echo "$as_me:$LINENO: result: $GROFF" >&5
7225 echo "${ECHO_T}$GROFF" >&6; }
7226 else
7227   { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7229 fi
7230
7231
7232 # Extract the first word of "gzip", so it can be a program name with args.
7233 set dummy gzip; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   case $GZIPBIN in
7240   [\\/]* | ?:[\\/]*)
7241   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7242   ;;
7243   *)
7244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249   for ac_exec_ext in '' $ac_executable_extensions; do
7250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259   ;;
7260 esac
7261 fi
7262 GZIPBIN=$ac_cv_path_GZIPBIN
7263 if test -n "$GZIPBIN"; then
7264   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7265 echo "${ECHO_T}$GZIPBIN" >&6; }
7266 else
7267   { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271
7272 # Extract the first word of "pod2html", so it can be a program name with args.
7273 set dummy pod2html; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_POD2HTML+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   case $POD2HTML in
7280   [\\/]* | ?:[\\/]*)
7281   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7282   ;;
7283   *)
7284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289   for ac_exec_ext in '' $ac_executable_extensions; do
7290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299   ;;
7300 esac
7301 fi
7302 POD2HTML=$ac_cv_path_POD2HTML
7303 if test -n "$POD2HTML"; then
7304   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7305 echo "${ECHO_T}$POD2HTML" >&6; }
7306 else
7307   { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7309 fi
7310
7311
7312 # Extract the first word of "pod2man", so it can be a program name with args.
7313 set dummy pod2man; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_POD2MAN+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   case $POD2MAN in
7320   [\\/]* | ?:[\\/]*)
7321   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7322   ;;
7323   *)
7324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329   for ac_exec_ext in '' $ac_executable_extensions; do
7330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339   ;;
7340 esac
7341 fi
7342 POD2MAN=$ac_cv_path_POD2MAN
7343 if test -n "$POD2MAN"; then
7344   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7345 echo "${ECHO_T}$POD2MAN" >&6; }
7346 else
7347   { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7349 fi
7350
7351
7352 # Extract the first word of "pdfroff", so it can be a program name with args.
7353 set dummy pdfroff; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_PDFROFF+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   case $PDFROFF in
7360   [\\/]* | ?:[\\/]*)
7361   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7362   ;;
7363   *)
7364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369   for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379   ;;
7380 esac
7381 fi
7382 PDFROFF=$ac_cv_path_PDFROFF
7383 if test -n "$PDFROFF"; then
7384   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7385 echo "${ECHO_T}$PDFROFF" >&6; }
7386 else
7387   { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7389 fi
7390
7391
7392 # Extract the first word of "runtest", so it can be a program name with args.
7393 set dummy runtest; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_RUNTEST+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   case $RUNTEST in
7400   [\\/]* | ?:[\\/]*)
7401   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7402   ;;
7403   *)
7404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419   ;;
7420 esac
7421 fi
7422 RUNTEST=$ac_cv_path_RUNTEST
7423 if test -n "$RUNTEST"; then
7424   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7425 echo "${ECHO_T}$RUNTEST" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432
7433 no_itcl=true
7434 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7435 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7436
7437 # Check whether --with-tclinclude was given.
7438 if test "${with_tclinclude+set}" = set; then
7439   withval=$with_tclinclude; with_tclinclude=${withval}
7440 else
7441   with_tclinclude=''
7442 fi
7443
7444 if test "${ac_cv_path_tclsh+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447
7448 if test x"${with_tclinclude}" != x ; then
7449   if test -f ${with_tclinclude}/tclsh ; then
7450     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7451   elif test -f ${with_tclinclude}/src/tclsh ; then
7452     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7453   else
7454     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7455 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7456    { (exit 1); exit 1; }; }
7457   fi
7458 fi
7459 fi
7460
7461
7462 if test x"${ac_cv_path_tclsh}" = x ; then
7463   { echo "$as_me:$LINENO: result: none" >&5
7464 echo "${ECHO_T}none" >&6; }
7465   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
7466 do
7467   # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7471 if test "${ac_cv_path_TCLSH+set}" = set; then
7472   echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474   case $TCLSH in
7475   [\\/]* | ?:[\\/]*)
7476   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7477   ;;
7478   *)
7479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484   for ac_exec_ext in '' $ac_executable_extensions; do
7485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7486     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494   ;;
7495 esac
7496 fi
7497 TCLSH=$ac_cv_path_TCLSH
7498 if test -n "$TCLSH"; then
7499   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7500 echo "${ECHO_T}$TCLSH" >&6; }
7501 else
7502   { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7504 fi
7505
7506
7507   test -n "$TCLSH" && break
7508 done
7509
7510   if test x"${TCLSH}" = x ; then
7511     ac_cv_path_tclsh='';
7512   else
7513     ac_cv_path_tclsh="${TCLSH}";
7514   fi
7515 else
7516   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7517 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7518   TCLSH="${ac_cv_path_tclsh}"
7519
7520 fi
7521
7522 # Extract the first word of "zip", so it can be a program name with args.
7523 set dummy zip; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_ZIP+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   case $ZIP in
7530   [\\/]* | ?:[\\/]*)
7531   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7532   ;;
7533   *)
7534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539   for ac_exec_ext in '' $ac_executable_extensions; do
7540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549   ;;
7550 esac
7551 fi
7552 ZIP=$ac_cv_path_ZIP
7553 if test -n "$ZIP"; then
7554   { echo "$as_me:$LINENO: result: $ZIP" >&5
7555 echo "${ECHO_T}$ZIP" >&6; }
7556 else
7557   { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7559 fi
7560
7561
7562 for ac_prog in ocamlc
7563 do
7564   # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_OCAMLC+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   case $OCAMLC in
7572   [\\/]* | ?:[\\/]*)
7573   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7574   ;;
7575   *)
7576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581   for ac_exec_ext in '' $ac_executable_extensions; do
7582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7583     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591   ;;
7592 esac
7593 fi
7594 OCAMLC=$ac_cv_path_OCAMLC
7595 if test -n "$OCAMLC"; then
7596   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7597 echo "${ECHO_T}$OCAMLC" >&6; }
7598 else
7599   { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7601 fi
7602
7603
7604   test -n "$OCAMLC" && break
7605 done
7606
7607 for ac_prog in ocamlopt
7608 do
7609   # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   case $OCAMLOPT in
7617   [\\/]* | ?:[\\/]*)
7618   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7619   ;;
7620   *)
7621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636   ;;
7637 esac
7638 fi
7639 OCAMLOPT=$ac_cv_path_OCAMLOPT
7640 if test -n "$OCAMLOPT"; then
7641   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7642 echo "${ECHO_T}$OCAMLOPT" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649   test -n "$OCAMLOPT" && break
7650 done
7651
7652 for ac_prog in ocamldep
7653 do
7654   # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661   case $OCAMLDEP in
7662   [\\/]* | ?:[\\/]*)
7663   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7664   ;;
7665   *)
7666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671   for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681   ;;
7682 esac
7683 fi
7684 OCAMLDEP=$ac_cv_path_OCAMLDEP
7685 if test -n "$OCAMLDEP"; then
7686   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7687 echo "${ECHO_T}$OCAMLDEP" >&6; }
7688 else
7689   { echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6; }
7691 fi
7692
7693
7694   test -n "$OCAMLDEP" && break
7695 done
7696
7697 for ac_prog in ocamldoc
7698 do
7699   # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   case $OCAMLDOC in
7707   [\\/]* | ?:[\\/]*)
7708   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7709   ;;
7710   *)
7711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716   for ac_exec_ext in '' $ac_executable_extensions; do
7717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7718     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726   ;;
7727 esac
7728 fi
7729 OCAMLDOC=$ac_cv_path_OCAMLDOC
7730 if test -n "$OCAMLDOC"; then
7731   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7732 echo "${ECHO_T}$OCAMLDOC" >&6; }
7733 else
7734   { echo "$as_me:$LINENO: result: no" >&5
7735 echo "${ECHO_T}no" >&6; }
7736 fi
7737
7738
7739   test -n "$OCAMLDOC" && break
7740 done
7741
7742 for ac_prog in gas as
7743 do
7744   # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_GAS+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   case $GAS in
7752   [\\/]* | ?:[\\/]*)
7753   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7754   ;;
7755   *)
7756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759   IFS=$as_save_IFS
7760   test -z "$as_dir" && as_dir=.
7761   for ac_exec_ext in '' $ac_executable_extensions; do
7762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765     break 2
7766   fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771   ;;
7772 esac
7773 fi
7774 GAS=$ac_cv_path_GAS
7775 if test -n "$GAS"; then
7776   { echo "$as_me:$LINENO: result: $GAS" >&5
7777 echo "${ECHO_T}$GAS" >&6; }
7778 else
7779   { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7781 fi
7782
7783
7784   test -n "$GAS" && break
7785 done
7786
7787
7788 { echo "$as_me:$LINENO: checking for linker version" >&5
7789 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7790 if test "${llvm_cv_link_version+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793
7794    version_string="$(ld -v 2>&1 | head -1)"
7795
7796    # Check for ld64.
7797    if (echo "$version_string" | grep -q "ld64"); then
7798      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7799    else
7800      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7801    fi
7802
7803 fi
7804 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7805 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7806
7807 cat >>confdefs.h <<_ACEOF
7808 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7809 _ACEOF
7810
7811
7812
7813 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7814 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7815 if test "${llvm_cv_link_use_r+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818    ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824   oldcflags="$CFLAGS"
7825   CFLAGS="$CFLAGS -Wl,-R."
7826   cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832
7833 int
7834 main ()
7835 {
7836
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (ac_try="$ac_link"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848   (eval "$ac_link") 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } &&
7855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7856   { (case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861   (eval "$ac_try") 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }; } &&
7865          { ac_try='test -s conftest$ac_exeext'
7866   { (case "(($ac_try" in
7867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868   *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871   (eval "$ac_try") 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; }; then
7875   llvm_cv_link_use_r=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880         llvm_cv_link_use_r=no
7881 fi
7882
7883 rm -f core conftest.err conftest.$ac_objext \
7884       conftest$ac_exeext conftest.$ac_ext
7885   CFLAGS="$oldcflags"
7886   ac_ext=c
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892
7893 fi
7894 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7895 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7896 if test "$llvm_cv_link_use_r" = yes ; then
7897
7898 cat >>confdefs.h <<\_ACEOF
7899 #define HAVE_LINK_R 1
7900 _ACEOF
7901
7902   fi
7903
7904
7905 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7906 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7907 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910    ac_ext=c
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916   oldcflags="$CFLAGS"
7917   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7918   cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924
7925 int
7926 main ()
7927 {
7928
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7935 case "(($ac_try" in
7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937   *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940   (eval "$ac_link") 2>conftest.er1
7941   ac_status=$?
7942   grep -v '^ *+' conftest.er1 >conftest.err
7943   rm -f conftest.er1
7944   cat conftest.err >&5
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948   { (case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_try") 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; } &&
7957          { ac_try='test -s conftest$ac_exeext'
7958   { (case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963   (eval "$ac_try") 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   llvm_cv_link_use_export_dynamic=yes
7968 else
7969   echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972         llvm_cv_link_use_export_dynamic=no
7973 fi
7974
7975 rm -f core conftest.err conftest.$ac_objext \
7976       conftest$ac_exeext conftest.$ac_ext
7977   CFLAGS="$oldcflags"
7978   ac_ext=c
7979 ac_cpp='$CPP $CPPFLAGS'
7980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983
7984
7985 fi
7986 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7987 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7988 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7989
7990 cat >>confdefs.h <<\_ACEOF
7991 #define HAVE_LINK_EXPORT_DYNAMIC 1
7992 _ACEOF
7993
7994   fi
7995
7996
7997 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7998 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7999 if test "${llvm_cv_link_use_version_script+set}" = set; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002    ac_ext=c
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008   oldcflags="$CFLAGS"
8009
8010   # The following code is from the autoconf manual,
8011   # "11.13: Limitations of Usual Tools".
8012   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8013   # Use mktemp if possible; otherwise fall back on mkdir,
8014   # with $RANDOM to make collisions less likely.
8015   : ${TMPDIR=/tmp}
8016   {
8017     tmp=`
8018       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8019     ` &&
8020     test -n "$tmp" && test -d "$tmp"
8021   } || {
8022     tmp=$TMPDIR/foo$$-$RANDOM
8023     (umask 077 && mkdir "$tmp")
8024   } || exit $?
8025
8026   echo "{" > "$tmp/export.map"
8027   echo "  global: main;" >> "$tmp/export.map"
8028   echo "  local: *;" >> "$tmp/export.map"
8029   echo "};" >> "$tmp/export.map"
8030
8031   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8032   cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h.  */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h.  */
8038
8039 int
8040 main ()
8041 {
8042
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8049 case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_link") 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062   { (case "(($ac_try" in
8063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064   *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067   (eval "$ac_try") 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); }; } &&
8071          { ac_try='test -s conftest$ac_exeext'
8072   { (case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_try") 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   llvm_cv_link_use_version_script=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086         llvm_cv_link_use_version_script=no
8087 fi
8088
8089 rm -f core conftest.err conftest.$ac_objext \
8090       conftest$ac_exeext conftest.$ac_ext
8091   rm "$tmp/export.map"
8092   rmdir "$tmp"
8093   CFLAGS="$oldcflags"
8094   ac_ext=c
8095 ac_cpp='$CPP $CPPFLAGS'
8096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8099
8100
8101 fi
8102 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8103 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8104 if test "$llvm_cv_link_use_version_script" = yes ; then
8105   HAVE_LINK_VERSION_SCRIPT=1
8106
8107   fi
8108
8109
8110
8111
8112 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8113 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8114 if test "${ac_cv_c_const+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123
8124 int
8125 main ()
8126 {
8127 /* FIXME: Include the comments suggested by Paul. */
8128 #ifndef __cplusplus
8129   /* Ultrix mips cc rejects this.  */
8130   typedef int charset[2];
8131   const charset x;
8132   /* SunOS 4.1.1 cc rejects this.  */
8133   char const *const *ccp;
8134   char **p;
8135   /* NEC SVR4.0.2 mips cc rejects this.  */
8136   struct point {int x, y;};
8137   static struct point const zero = {0,0};
8138   /* AIX XL C 1.02.0.0 rejects this.
8139      It does not let you subtract one const X* pointer from another in
8140      an arm of an if-expression whose if-part is not a constant
8141      expression */
8142   const char *g = "string";
8143   ccp = &g + (g ? g-g : 0);
8144   /* HPUX 7.0 cc rejects these. */
8145   ++ccp;
8146   p = (char**) ccp;
8147   ccp = (char const *const *) p;
8148   { /* SCO 3.2v4 cc rejects this.  */
8149     char *t;
8150     char const *s = 0 ? (char *) 0 : (char const *) 0;
8151
8152     *t++ = 0;
8153     if (s) return 0;
8154   }
8155   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8156     int x[] = {25, 17};
8157     const int *foo = &x[0];
8158     ++foo;
8159   }
8160   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8161     typedef const int *iptr;
8162     iptr p = 0;
8163     ++p;
8164   }
8165   { /* AIX XL C 1.02.0.0 rejects this saying
8166        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8167     struct s { int j; const int *ap[3]; };
8168     struct s *b; b->j = 5;
8169   }
8170   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8171     const int foo = 10;
8172     if (!foo) return 0;
8173   }
8174   return !x[0] && !zero.x;
8175 #endif
8176
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8183 case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_compile") 2>conftest.er1
8189   ac_status=$?
8190   grep -v '^ *+' conftest.er1 >conftest.err
8191   rm -f conftest.er1
8192   cat conftest.err >&5
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } &&
8195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196   { (case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_try") 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); }; } &&
8205          { ac_try='test -s conftest.$ac_objext'
8206   { (case "(($ac_try" in
8207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208   *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211   (eval "$ac_try") 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; }; then
8215   ac_cv_c_const=yes
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220         ac_cv_c_const=no
8221 fi
8222
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8226 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8227 if test $ac_cv_c_const = no; then
8228
8229 cat >>confdefs.h <<\_ACEOF
8230 #define const
8231 _ACEOF
8232
8233 fi
8234
8235
8236
8237
8238
8239
8240 ac_header_dirent=no
8241 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8242   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8243 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8244 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254 #include <sys/types.h>
8255 #include <$ac_hdr>
8256
8257 int
8258 main ()
8259 {
8260 if ((DIR *) 0)
8261 return 0;
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273   (eval "$ac_compile") 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } &&
8280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8281   { (case "(($ac_try" in
8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283   *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286   (eval "$ac_try") 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; } &&
8290          { ac_try='test -s conftest.$ac_objext'
8291   { (case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_try") 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; }; then
8300   eval "$as_ac_Header=yes"
8301 else
8302   echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305         eval "$as_ac_Header=no"
8306 fi
8307
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 ac_res=`eval echo '${'$as_ac_Header'}'`
8311                { echo "$as_me:$LINENO: result: $ac_res" >&5
8312 echo "${ECHO_T}$ac_res" >&6; }
8313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8314   cat >>confdefs.h <<_ACEOF
8315 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8316 _ACEOF
8317
8318 ac_header_dirent=$ac_hdr; break
8319 fi
8320
8321 done
8322 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8323 if test $ac_header_dirent = dirent.h; then
8324   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8325 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8326 if test "${ac_cv_search_opendir+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   ac_func_search_save_LIBS=$LIBS
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336
8337 /* Override any GCC internal prototype to avoid an error.
8338    Use char because int might match the return type of a GCC
8339    builtin and then its argument prototype would still apply.  */
8340 #ifdef __cplusplus
8341 extern "C"
8342 #endif
8343 char opendir ();
8344 int
8345 main ()
8346 {
8347 return opendir ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 for ac_lib in '' dir; do
8353   if test -z "$ac_lib"; then
8354     ac_res="none required"
8355   else
8356     ac_res=-l$ac_lib
8357     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8358   fi
8359   rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (ac_try="$ac_link"
8361 case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_link") 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } &&
8373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374   { (case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_try") 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; } &&
8383          { ac_try='test -s conftest$ac_exeext'
8384   { (case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_try") 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; }; then
8393   ac_cv_search_opendir=$ac_res
8394 else
8395   echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398
8399 fi
8400
8401 rm -f core conftest.err conftest.$ac_objext \
8402       conftest$ac_exeext
8403   if test "${ac_cv_search_opendir+set}" = set; then
8404   break
8405 fi
8406 done
8407 if test "${ac_cv_search_opendir+set}" = set; then
8408   :
8409 else
8410   ac_cv_search_opendir=no
8411 fi
8412 rm conftest.$ac_ext
8413 LIBS=$ac_func_search_save_LIBS
8414 fi
8415 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8416 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8417 ac_res=$ac_cv_search_opendir
8418 if test "$ac_res" != no; then
8419   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8420
8421 fi
8422
8423 else
8424   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8425 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8426 if test "${ac_cv_search_opendir+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   ac_func_search_save_LIBS=$LIBS
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436
8437 /* Override any GCC internal prototype to avoid an error.
8438    Use char because int might match the return type of a GCC
8439    builtin and then its argument prototype would still apply.  */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 char opendir ();
8444 int
8445 main ()
8446 {
8447 return opendir ();
8448   ;
8449   return 0;
8450 }
8451 _ACEOF
8452 for ac_lib in '' x; do
8453   if test -z "$ac_lib"; then
8454     ac_res="none required"
8455   else
8456     ac_res=-l$ac_lib
8457     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8458   fi
8459   rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (ac_try="$ac_link"
8461 case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_link") 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } &&
8473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8474   { (case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_try") 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; } &&
8483          { ac_try='test -s conftest$ac_exeext'
8484   { (case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_try") 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493   ac_cv_search_opendir=$ac_res
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498
8499 fi
8500
8501 rm -f core conftest.err conftest.$ac_objext \
8502       conftest$ac_exeext
8503   if test "${ac_cv_search_opendir+set}" = set; then
8504   break
8505 fi
8506 done
8507 if test "${ac_cv_search_opendir+set}" = set; then
8508   :
8509 else
8510   ac_cv_search_opendir=no
8511 fi
8512 rm conftest.$ac_ext
8513 LIBS=$ac_func_search_save_LIBS
8514 fi
8515 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8516 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8517 ac_res=$ac_cv_search_opendir
8518 if test "$ac_res" != no; then
8519   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8520
8521 fi
8522
8523 fi
8524
8525
8526 for ac_header in dlfcn.h
8527 do
8528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8530   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 fi
8535 ac_res=`eval echo '${'$as_ac_Header'}'`
8536                { echo "$as_me:$LINENO: result: $ac_res" >&5
8537 echo "${ECHO_T}$ac_res" >&6; }
8538 else
8539   # Is the header compilable?
8540 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h.  */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h.  */
8548 $ac_includes_default
8549 #include <$ac_header>
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (ac_try="$ac_compile"
8553 case "(($ac_try" in
8554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555   *) ac_try_echo=$ac_try;;
8556 esac
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558   (eval "$ac_compile") 2>conftest.er1
8559   ac_status=$?
8560   grep -v '^ *+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8566   { (case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571   (eval "$ac_try") 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; } &&
8575          { ac_try='test -s conftest.$ac_objext'
8576   { (case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581   (eval "$ac_try") 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; }; then
8585   ac_header_compiler=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590         ac_header_compiler=no
8591 fi
8592
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8595 echo "${ECHO_T}$ac_header_compiler" >&6; }
8596
8597 # Is the header present?
8598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606 #include <$ac_header>
8607 _ACEOF
8608 if { (ac_try="$ac_cpp conftest.$ac_ext"
8609 case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } >/dev/null; then
8621   if test -s conftest.err; then
8622     ac_cpp_err=$ac_c_preproc_warn_flag
8623     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8624   else
8625     ac_cpp_err=
8626   fi
8627 else
8628   ac_cpp_err=yes
8629 fi
8630 if test -z "$ac_cpp_err"; then
8631   ac_header_preproc=yes
8632 else
8633   echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636   ac_header_preproc=no
8637 fi
8638
8639 rm -f conftest.err conftest.$ac_ext
8640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8641 echo "${ECHO_T}$ac_header_preproc" >&6; }
8642
8643 # So?  What about this header?
8644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8645   yes:no: )
8646     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8650     ac_header_preproc=yes
8651     ;;
8652   no:yes:* )
8653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8659     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8660 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8663     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8665     ( cat <<\_ASBOX
8666 ## ----------------------------------- ##
8667 ## Report this to llvmbugs@cs.uiuc.edu ##
8668 ## ----------------------------------- ##
8669 _ASBOX
8670      ) | sed "s/^/$as_me: WARNING:     /" >&2
8671     ;;
8672 esac
8673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   eval "$as_ac_Header=\$ac_header_preproc"
8679 fi
8680 ac_res=`eval echo '${'$as_ac_Header'}'`
8681                { echo "$as_me:$LINENO: result: $ac_res" >&5
8682 echo "${ECHO_T}$ac_res" >&6; }
8683
8684 fi
8685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8686   cat >>confdefs.h <<_ACEOF
8687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8688 _ACEOF
8689
8690 fi
8691
8692 done
8693
8694 # Check whether --enable-ltdl-install was given.
8695 if test "${enable_ltdl_install+set}" = set; then
8696   enableval=$enable_ltdl_install;
8697 fi
8698
8699
8700
8701
8702 if test x"${enable_ltdl_install-no}" != xno; then
8703   INSTALL_LTDL_TRUE=
8704   INSTALL_LTDL_FALSE='#'
8705 else
8706   INSTALL_LTDL_TRUE='#'
8707   INSTALL_LTDL_FALSE=
8708 fi
8709
8710
8711
8712 if test x"${enable_ltdl_convenience-no}" != xno; then
8713   CONVENIENCE_LTDL_TRUE=
8714   CONVENIENCE_LTDL_FALSE='#'
8715 else
8716   CONVENIENCE_LTDL_TRUE='#'
8717   CONVENIENCE_LTDL_FALSE=
8718 fi
8719
8720
8721 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8722 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8723 library_names_spec=
8724 libname_spec='lib$name'
8725 soname_spec=
8726 shrext_cmds=".so"
8727 postinstall_cmds=
8728 postuninstall_cmds=
8729 finish_cmds=
8730 finish_eval=
8731 shlibpath_var=
8732 shlibpath_overrides_runpath=unknown
8733 version_type=none
8734 dynamic_linker="$host_os ld.so"
8735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8736 if test "$GCC" = yes; then
8737   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8738   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8739     # if the path contains ";" then we assume it to be the separator
8740     # otherwise default to the standard path separator (i.e. ":") - it is
8741     # assumed that no part of a normal pathname contains ";" but that should
8742     # okay in the real world where ";" in dirpaths is itself problematic.
8743     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8744   else
8745     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8746   fi
8747 else
8748   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8749 fi
8750 need_lib_prefix=unknown
8751 hardcode_into_libs=no
8752
8753 # when you set need_version to no, make sure it does not cause -set_version
8754 # flags to be left without arguments
8755 need_version=unknown
8756
8757 case $host_os in
8758 aix3*)
8759   version_type=linux
8760   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8761   shlibpath_var=LIBPATH
8762
8763   # AIX 3 has no versioning support, so we append a major version to the name.
8764   soname_spec='${libname}${release}${shared_ext}$major'
8765   ;;
8766
8767 aix4* | aix5*)
8768   version_type=linux
8769   need_lib_prefix=no
8770   need_version=no
8771   hardcode_into_libs=yes
8772   if test "$host_cpu" = ia64; then
8773     # AIX 5 supports IA64
8774     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8775     shlibpath_var=LD_LIBRARY_PATH
8776   else
8777     # With GCC up to 2.95.x, collect2 would create an import file
8778     # for dependence libraries.  The import file would start with
8779     # the line `#! .'.  This would cause the generated library to
8780     # depend on `.', always an invalid library.  This was fixed in
8781     # development snapshots of GCC prior to 3.0.
8782     case $host_os in
8783       aix4 | aix4.[01] | aix4.[01].*)
8784       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8785            echo ' yes '
8786            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8787         :
8788       else
8789         can_build_shared=no
8790       fi
8791       ;;
8792     esac
8793     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8794     # soname into executable. Probably we can add versioning support to
8795     # collect2, so additional links can be useful in future.
8796     if test "$aix_use_runtimelinking" = yes; then
8797       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8798       # instead of lib<name>.a to let people know that these are not
8799       # typical AIX shared libraries.
8800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801     else
8802       # We preserve .a as extension for shared libraries through AIX4.2
8803       # and later when we are not doing run time linking.
8804       library_names_spec='${libname}${release}.a $libname.a'
8805       soname_spec='${libname}${release}${shared_ext}$major'
8806     fi
8807     shlibpath_var=LIBPATH
8808   fi
8809   ;;
8810
8811 amigaos*)
8812   library_names_spec='$libname.ixlibrary $libname.a'
8813   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8814   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'
8815   ;;
8816
8817 beos*)
8818   library_names_spec='${libname}${shared_ext}'
8819   dynamic_linker="$host_os ld.so"
8820   shlibpath_var=LIBRARY_PATH
8821   ;;
8822
8823 bsdi[45]*)
8824   version_type=linux
8825   need_version=no
8826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827   soname_spec='${libname}${release}${shared_ext}$major'
8828   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8829   shlibpath_var=LD_LIBRARY_PATH
8830   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8831   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8832   # the default ld.so.conf also contains /usr/contrib/lib and
8833   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8834   # libtool to hard-code these into programs
8835   ;;
8836
8837 cygwin* | mingw* | pw32*)
8838   version_type=windows
8839   shrext_cmds=".dll"
8840   need_version=no
8841   need_lib_prefix=no
8842
8843   case $GCC,$host_os in
8844   yes,cygwin* | yes,mingw* | yes,pw32*)
8845     library_names_spec='$libname.dll.a'
8846     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8847     postinstall_cmds='base_file=`basename \${file}`~
8848       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8849       dldir=$destdir/`dirname \$dlpath`~
8850       test -d \$dldir || mkdir -p \$dldir~
8851       $install_prog $dir/$dlname \$dldir/$dlname~
8852       chmod a+x \$dldir/$dlname'
8853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8854       dlpath=$dir/\$dldll~
8855        $rm \$dlpath'
8856     shlibpath_overrides_runpath=yes
8857
8858     case $host_os in
8859     cygwin*)
8860       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8861       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8863       ;;
8864     mingw*)
8865       # MinGW DLLs use traditional 'lib' prefix
8866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8867       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8868       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8869         # It is most probably a Windows format PATH printed by
8870         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8871         # path with ; separators, and with drive letters. We can handle the
8872         # drive letters (cygwin fileutils understands them), so leave them,
8873         # especially as we might pass files found there to a mingw objdump,
8874         # which wouldn't understand a cygwinified path. Ahh.
8875         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8876       else
8877         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8878       fi
8879       ;;
8880     pw32*)
8881       # pw32 DLLs use 'pw' prefix rather than 'lib'
8882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883       ;;
8884     esac
8885     ;;
8886
8887   *)
8888     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8889     ;;
8890   esac
8891   dynamic_linker='Win32 ld.exe'
8892   # FIXME: first we should search . and the directory the executable is in
8893   shlibpath_var=PATH
8894   ;;
8895
8896 darwin* | rhapsody*)
8897   dynamic_linker="$host_os dyld"
8898   version_type=darwin
8899   need_lib_prefix=no
8900   need_version=no
8901   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8902   soname_spec='${libname}${release}${major}$shared_ext'
8903   shlibpath_overrides_runpath=yes
8904   shlibpath_var=DYLD_LIBRARY_PATH
8905   shrext_cmds='.dylib'
8906   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8907   if test "$GCC" = yes; then
8908     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"`
8909   else
8910     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8911   fi
8912   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8913   ;;
8914
8915 dgux*)
8916   version_type=linux
8917   need_lib_prefix=no
8918   need_version=no
8919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8920   soname_spec='${libname}${release}${shared_ext}$major'
8921   shlibpath_var=LD_LIBRARY_PATH
8922   ;;
8923
8924 freebsd1.*)
8925   dynamic_linker=no
8926   ;;
8927
8928 kfreebsd*-gnu)
8929   version_type=linux
8930   need_lib_prefix=no
8931   need_version=no
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   shlibpath_var=LD_LIBRARY_PATH
8935   shlibpath_overrides_runpath=no
8936   hardcode_into_libs=yes
8937   dynamic_linker='GNU ld.so'
8938   ;;
8939
8940 freebsd* | dragonfly*)
8941   # DragonFly does not have aout.  When/if they implement a new
8942   # versioning mechanism, adjust this.
8943   if test -x /usr/bin/objformat; then
8944     objformat=`/usr/bin/objformat`
8945   else
8946     case $host_os in
8947     freebsd[123].*) objformat=aout ;;
8948     *) objformat=elf ;;
8949     esac
8950   fi
8951   version_type=freebsd-$objformat
8952   case $version_type in
8953     freebsd-elf*)
8954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8955       need_version=no
8956       need_lib_prefix=no
8957       ;;
8958     freebsd-*)
8959       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8960       need_version=yes
8961       ;;
8962   esac
8963   shlibpath_var=LD_LIBRARY_PATH
8964   case $host_os in
8965   freebsd2.*)
8966     shlibpath_overrides_runpath=yes
8967     ;;
8968   freebsd3.[01]* | freebsdelf3.[01]*)
8969     shlibpath_overrides_runpath=yes
8970     hardcode_into_libs=yes
8971     ;;
8972   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8973   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8974     shlibpath_overrides_runpath=no
8975     hardcode_into_libs=yes
8976     ;;
8977   freebsd*) # from 4.6 on
8978     shlibpath_overrides_runpath=yes
8979     hardcode_into_libs=yes
8980     ;;
8981   esac
8982   ;;
8983
8984 gnu*)
8985   version_type=linux
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   shlibpath_var=LD_LIBRARY_PATH
8991   hardcode_into_libs=yes
8992   ;;
8993
8994 hpux9* | hpux10* | hpux11*)
8995   # Give a soname corresponding to the major version so that dld.sl refuses to
8996   # link against other versions.
8997   version_type=sunos
8998   need_lib_prefix=no
8999   need_version=no
9000   case $host_cpu in
9001   ia64*)
9002     shrext_cmds='.so'
9003     hardcode_into_libs=yes
9004     dynamic_linker="$host_os dld.so"
9005     shlibpath_var=LD_LIBRARY_PATH
9006     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008     soname_spec='${libname}${release}${shared_ext}$major'
9009     if test "X$HPUX_IA64_MODE" = X32; then
9010       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9011     else
9012       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9013     fi
9014     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9015     ;;
9016    hppa*64*)
9017      shrext_cmds='.sl'
9018      hardcode_into_libs=yes
9019      dynamic_linker="$host_os dld.sl"
9020      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9021      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9022      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023      soname_spec='${libname}${release}${shared_ext}$major'
9024      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9025      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9026      ;;
9027    *)
9028     shrext_cmds='.sl'
9029     dynamic_linker="$host_os dld.sl"
9030     shlibpath_var=SHLIB_PATH
9031     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033     soname_spec='${libname}${release}${shared_ext}$major'
9034     ;;
9035   esac
9036   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9037   postinstall_cmds='chmod 555 $lib'
9038   ;;
9039
9040 interix3*)
9041   version_type=linux
9042   need_lib_prefix=no
9043   need_version=no
9044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9045   soname_spec='${libname}${release}${shared_ext}$major'
9046   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9047   shlibpath_var=LD_LIBRARY_PATH
9048   shlibpath_overrides_runpath=no
9049   hardcode_into_libs=yes
9050   ;;
9051
9052 irix5* | irix6* | nonstopux*)
9053   case $host_os in
9054     nonstopux*) version_type=nonstopux ;;
9055     *)
9056         if test "$lt_cv_prog_gnu_ld" = yes; then
9057                 version_type=linux
9058         else
9059                 version_type=irix
9060         fi ;;
9061   esac
9062   need_lib_prefix=no
9063   need_version=no
9064   soname_spec='${libname}${release}${shared_ext}$major'
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9066   case $host_os in
9067   irix5* | nonstopux*)
9068     libsuff= shlibsuff=
9069     ;;
9070   *)
9071     case $LD in # libtool.m4 will add one of these switches to LD
9072     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9073       libsuff= shlibsuff= libmagic=32-bit;;
9074     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9075       libsuff=32 shlibsuff=N32 libmagic=N32;;
9076     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9077       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9078     *) libsuff= shlibsuff= libmagic=never-match;;
9079     esac
9080     ;;
9081   esac
9082   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9083   shlibpath_overrides_runpath=no
9084   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9085   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9086   hardcode_into_libs=yes
9087   ;;
9088
9089 # No shared lib support for Linux oldld, aout, or coff.
9090 linux*oldld* | linux*aout* | linux*coff*)
9091   dynamic_linker=no
9092   ;;
9093
9094 # This must be Linux ELF.
9095 linux*)
9096   version_type=linux
9097   need_lib_prefix=no
9098   need_version=no
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100   soname_spec='${libname}${release}${shared_ext}$major'
9101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9102   shlibpath_var=LD_LIBRARY_PATH
9103   shlibpath_overrides_runpath=no
9104   # This implies no fast_install, which is unacceptable.
9105   # Some rework will be needed to allow for fast_install
9106   # before this can be enabled.
9107   hardcode_into_libs=yes
9108
9109   # Append ld.so.conf contents to the search path
9110   if test -f /etc/ld.so.conf; then
9111     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' ' '`
9112     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9113   fi
9114
9115   # We used to test for /lib/ld.so.1 and disable shared libraries on
9116   # powerpc, because MkLinux only supported shared libraries with the
9117   # GNU dynamic linker.  Since this was broken with cross compilers,
9118   # most powerpc-linux boxes support dynamic linking these days and
9119   # people can always --disable-shared, the test was removed, and we
9120   # assume the GNU/Linux dynamic linker is in use.
9121   dynamic_linker='GNU/Linux ld.so'
9122   ;;
9123
9124 knetbsd*-gnu)
9125   version_type=linux
9126   need_lib_prefix=no
9127   need_version=no
9128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129   soname_spec='${libname}${release}${shared_ext}$major'
9130   shlibpath_var=LD_LIBRARY_PATH
9131   shlibpath_overrides_runpath=no
9132   hardcode_into_libs=yes
9133   dynamic_linker='GNU ld.so'
9134   ;;
9135
9136 netbsd*)
9137   version_type=sunos
9138   need_lib_prefix=no
9139   need_version=no
9140   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9142     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9143     dynamic_linker='NetBSD (a.out) ld.so'
9144   else
9145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146     soname_spec='${libname}${release}${shared_ext}$major'
9147     dynamic_linker='NetBSD ld.elf_so'
9148   fi
9149   shlibpath_var=LD_LIBRARY_PATH
9150   shlibpath_overrides_runpath=yes
9151   hardcode_into_libs=yes
9152   ;;
9153
9154 newsos6)
9155   version_type=linux
9156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   shlibpath_overrides_runpath=yes
9159   ;;
9160
9161 nto-qnx*)
9162   version_type=linux
9163   need_lib_prefix=no
9164   need_version=no
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166   soname_spec='${libname}${release}${shared_ext}$major'
9167   shlibpath_var=LD_LIBRARY_PATH
9168   shlibpath_overrides_runpath=yes
9169   ;;
9170
9171 openbsd*)
9172   version_type=sunos
9173   sys_lib_dlsearch_path_spec="/usr/lib"
9174   need_lib_prefix=no
9175   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9176   case $host_os in
9177     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9178     *)                         need_version=no  ;;
9179   esac
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9181   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9182   shlibpath_var=LD_LIBRARY_PATH
9183   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9184     case $host_os in
9185       openbsd2.[89] | openbsd2.[89].*)
9186         shlibpath_overrides_runpath=no
9187         ;;
9188       *)
9189         shlibpath_overrides_runpath=yes
9190         ;;
9191       esac
9192   else
9193     shlibpath_overrides_runpath=yes
9194   fi
9195   ;;
9196
9197 os2*)
9198   libname_spec='$name'
9199   shrext_cmds=".dll"
9200   need_lib_prefix=no
9201   library_names_spec='$libname${shared_ext} $libname.a'
9202   dynamic_linker='OS/2 ld.exe'
9203   shlibpath_var=LIBPATH
9204   ;;
9205
9206 osf3* | osf4* | osf5*)
9207   version_type=osf
9208   need_lib_prefix=no
9209   need_version=no
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212   shlibpath_var=LD_LIBRARY_PATH
9213   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9214   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9215   ;;
9216
9217 solaris*)
9218   version_type=linux
9219   need_lib_prefix=no
9220   need_version=no
9221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222   soname_spec='${libname}${release}${shared_ext}$major'
9223   shlibpath_var=LD_LIBRARY_PATH
9224   shlibpath_overrides_runpath=yes
9225   hardcode_into_libs=yes
9226   # ldd complains unless libraries are executable
9227   postinstall_cmds='chmod +x $lib'
9228   ;;
9229
9230 sunos4*)
9231   version_type=sunos
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9233   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   shlibpath_overrides_runpath=yes
9236   if test "$with_gnu_ld" = yes; then
9237     need_lib_prefix=no
9238   fi
9239   need_version=yes
9240   ;;
9241
9242 sysv4 | sysv4.3*)
9243   version_type=linux
9244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245   soname_spec='${libname}${release}${shared_ext}$major'
9246   shlibpath_var=LD_LIBRARY_PATH
9247   case $host_vendor in
9248     sni)
9249       shlibpath_overrides_runpath=no
9250       need_lib_prefix=no
9251       export_dynamic_flag_spec='${wl}-Blargedynsym'
9252       runpath_var=LD_RUN_PATH
9253       ;;
9254     siemens)
9255       need_lib_prefix=no
9256       ;;
9257     motorola)
9258       need_lib_prefix=no
9259       need_version=no
9260       shlibpath_overrides_runpath=no
9261       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9262       ;;
9263   esac
9264   ;;
9265
9266 sysv4*MP*)
9267   if test -d /usr/nec ;then
9268     version_type=linux
9269     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9270     soname_spec='$libname${shared_ext}.$major'
9271     shlibpath_var=LD_LIBRARY_PATH
9272   fi
9273   ;;
9274
9275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9276   version_type=freebsd-elf
9277   need_lib_prefix=no
9278   need_version=no
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9280   soname_spec='${libname}${release}${shared_ext}$major'
9281   shlibpath_var=LD_LIBRARY_PATH
9282   hardcode_into_libs=yes
9283   if test "$with_gnu_ld" = yes; then
9284     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9285     shlibpath_overrides_runpath=no
9286   else
9287     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9288     shlibpath_overrides_runpath=yes
9289     case $host_os in
9290       sco3.2v5*)
9291         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9292         ;;
9293     esac
9294   fi
9295   sys_lib_dlsearch_path_spec='/usr/lib'
9296   ;;
9297
9298 uts4*)
9299   version_type=linux
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301   soname_spec='${libname}${release}${shared_ext}$major'
9302   shlibpath_var=LD_LIBRARY_PATH
9303   ;;
9304
9305 *)
9306   dynamic_linker=no
9307   ;;
9308 esac
9309 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9310 echo "${ECHO_T}$dynamic_linker" >&6; }
9311 test "$dynamic_linker" = no && can_build_shared=no
9312
9313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9314 if test "$GCC" = yes; then
9315   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9316 fi
9317
9318
9319 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9320 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9321 if test "${libltdl_cv_shlibext+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324
9325 module=yes
9326 eval libltdl_cv_shlibext=$shrext_cmds
9327
9328 fi
9329 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9330 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9331 if test -n "$libltdl_cv_shlibext"; then
9332
9333 cat >>confdefs.h <<_ACEOF
9334 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9335 _ACEOF
9336
9337 fi
9338
9339
9340 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9341 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   libltdl_cv_shlibpath_var="$shlibpath_var"
9346 fi
9347 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9348 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9349 if test -n "$libltdl_cv_shlibpath_var"; then
9350
9351 cat >>confdefs.h <<_ACEOF
9352 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9353 _ACEOF
9354
9355 fi
9356
9357
9358 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9359 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9360 if test "${libltdl_cv_sys_search_path+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9364 fi
9365 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9366 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9367 if test -n "$libltdl_cv_sys_search_path"; then
9368   sys_search_path=
9369   for dir in $libltdl_cv_sys_search_path; do
9370     if test -z "$sys_search_path"; then
9371       sys_search_path="$dir"
9372     else
9373       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9374     fi
9375   done
9376
9377 cat >>confdefs.h <<_ACEOF
9378 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9379 _ACEOF
9380
9381 fi
9382
9383 { echo "$as_me:$LINENO: checking for objdir" >&5
9384 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9385 if test "${libltdl_cv_objdir+set}" = set; then
9386   echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388   libltdl_cv_objdir="$objdir"
9389   if test -n "$objdir"; then
9390     :
9391   else
9392     rm -f .libs 2>/dev/null
9393     mkdir .libs 2>/dev/null
9394     if test -d .libs; then
9395       libltdl_cv_objdir=.libs
9396     else
9397       # MS-DOS does not allow filenames that begin with a dot.
9398       libltdl_cv_objdir=_libs
9399     fi
9400   rmdir .libs 2>/dev/null
9401   fi
9402
9403 fi
9404 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9405 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9406
9407 cat >>confdefs.h <<_ACEOF
9408 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9409 _ACEOF
9410
9411
9412
9413
9414
9415
9416 # Check for command to grab the raw symbol name followed by C symbol from nm.
9417 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9418 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9419 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422
9423 # These are sane defaults that work on at least a few old systems.
9424 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9425
9426 # Character class describing NM global symbol codes.
9427 symcode='[BCDEGRST]'
9428
9429 # Regexp to match symbols that can be accessed directly from C.
9430 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9431
9432 # Transform an extracted symbol line into a proper C declaration
9433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9434
9435 # Transform an extracted symbol line into symbol name and symbol address
9436 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9437
9438 # Define system-specific variables.
9439 case $host_os in
9440 aix*)
9441   symcode='[BCDT]'
9442   ;;
9443 cygwin* | mingw* | pw32*)
9444   symcode='[ABCDGISTW]'
9445   ;;
9446 hpux*) # Its linker distinguishes data from code symbols
9447   if test "$host_cpu" = ia64; then
9448     symcode='[ABCDEGRST]'
9449   fi
9450   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9451   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'"
9452   ;;
9453 linux*)
9454   if test "$host_cpu" = ia64; then
9455     symcode='[ABCDGIRSTW]'
9456     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9457     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'"
9458   fi
9459   ;;
9460 irix* | nonstopux*)
9461   symcode='[BCDEGRST]'
9462   ;;
9463 osf*)
9464   symcode='[BCDEGQRST]'
9465   ;;
9466 solaris*)
9467   symcode='[BDRT]'
9468   ;;
9469 sco3.2v5*)
9470   symcode='[DT]'
9471   ;;
9472 sysv4.2uw2*)
9473   symcode='[DT]'
9474   ;;
9475 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9476   symcode='[ABDT]'
9477   ;;
9478 sysv4)
9479   symcode='[DFNSTU]'
9480   ;;
9481 esac
9482
9483 # Handle CRLF in mingw tool chain
9484 opt_cr=
9485 case $build_os in
9486 mingw*)
9487   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9488   ;;
9489 esac
9490
9491 # If we're using GNU nm, then use its standard symbol codes.
9492 case `$NM -V 2>&1` in
9493 *GNU* | *'with BFD'*)
9494   symcode='[ABCDGIRSTW]' ;;
9495 esac
9496
9497 # Try without a prefix undercore, then with it.
9498 for ac_symprfx in "" "_"; do
9499
9500   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9501   symxfrm="\\1 $ac_symprfx\\2 \\2"
9502
9503   # Write the raw and C identifiers.
9504   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9505
9506   # Check to see that the pipe works correctly.
9507   pipe_works=no
9508
9509   rm -f conftest*
9510   cat > conftest.$ac_ext <<EOF
9511 #ifdef __cplusplus
9512 extern "C" {
9513 #endif
9514 char nm_test_var;
9515 void nm_test_func(){}
9516 #ifdef __cplusplus
9517 }
9518 #endif
9519 int main(){nm_test_var='a';nm_test_func();return(0);}
9520 EOF
9521
9522   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523   (eval $ac_compile) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; then
9527     # Now try to grab the symbols.
9528     nlist=conftest.nm
9529     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9530   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9531   ac_status=$?
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } && test -s "$nlist"; then
9534       # Try sorting and uniquifying the output.
9535       if sort "$nlist" | uniq > "$nlist"T; then
9536         mv -f "$nlist"T "$nlist"
9537       else
9538         rm -f "$nlist"T
9539       fi
9540
9541       # Make sure that we snagged all the symbols we need.
9542       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9543         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9544           cat <<EOF > conftest.$ac_ext
9545 #ifdef __cplusplus
9546 extern "C" {
9547 #endif
9548
9549 EOF
9550           # Now generate the symbol file.
9551           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9552
9553           cat <<EOF >> conftest.$ac_ext
9554 #if defined (__STDC__) && __STDC__
9555 # define lt_ptr_t void *
9556 #else
9557 # define lt_ptr_t char *
9558 # define const
9559 #endif
9560
9561 /* The mapping between symbol names and symbols. */
9562 const struct {
9563   const char *name;
9564   lt_ptr_t address;
9565 }
9566 lt_preloaded_symbols[] =
9567 {
9568 EOF
9569           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9570           cat <<\EOF >> conftest.$ac_ext
9571   {0, (lt_ptr_t) 0}
9572 };
9573
9574 #ifdef __cplusplus
9575 }
9576 #endif
9577 EOF
9578           # Now try linking the two files.
9579           mv conftest.$ac_objext conftstm.$ac_objext
9580           lt_save_LIBS="$LIBS"
9581           lt_save_CFLAGS="$CFLAGS"
9582           LIBS="conftstm.$ac_objext"
9583           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9584           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9585   (eval $ac_link) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9589             pipe_works=yes
9590           fi
9591           LIBS="$lt_save_LIBS"
9592           CFLAGS="$lt_save_CFLAGS"
9593         else
9594           echo "cannot find nm_test_func in $nlist" >&5
9595         fi
9596       else
9597         echo "cannot find nm_test_var in $nlist" >&5
9598       fi
9599     else
9600       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9601     fi
9602   else
9603     echo "$progname: failed program was:" >&5
9604     cat conftest.$ac_ext >&5
9605   fi
9606   rm -f conftest* conftst*
9607
9608   # Do not use the global_symbol_pipe unless it works.
9609   if test "$pipe_works" = yes; then
9610     break
9611   else
9612     lt_cv_sys_global_symbol_pipe=
9613   fi
9614 done
9615
9616 fi
9617
9618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9619   lt_cv_sys_global_symbol_to_cdecl=
9620 fi
9621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9622   { echo "$as_me:$LINENO: result: failed" >&5
9623 echo "${ECHO_T}failed" >&6; }
9624 else
9625   { echo "$as_me:$LINENO: result: ok" >&5
9626 echo "${ECHO_T}ok" >&6; }
9627 fi
9628
9629
9630 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9631 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9632 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9633   echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9636     libltdl_cv_preloaded_symbols=yes
9637   else
9638     libltdl_cv_preloaded_symbols=no
9639   fi
9640
9641 fi
9642 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9643 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9644 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9645
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_PRELOADED_SYMBOLS 1
9648 _ACEOF
9649
9650 fi
9651
9652 LIBADD_DL=
9653
9654 ac_ext=c
9655 ac_cpp='$CPP $CPPFLAGS'
9656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9659
9660
9661 { echo "$as_me:$LINENO: checking for shl_load" >&5
9662 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9663 if test "${ac_cv_func_shl_load+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666   cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h.  */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h.  */
9672 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9674 #define shl_load innocuous_shl_load
9675
9676 /* System header to define __stub macros and hopefully few prototypes,
9677     which can conflict with char shl_load (); below.
9678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9679     <limits.h> exists even on freestanding compilers.  */
9680
9681 #ifdef __STDC__
9682 # include <limits.h>
9683 #else
9684 # include <assert.h>
9685 #endif
9686
9687 #undef shl_load
9688
9689 /* Override any GCC internal prototype to avoid an error.
9690    Use char because int might match the return type of a GCC
9691    builtin and then its argument prototype would still apply.  */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char shl_load ();
9696 /* The GNU C library defines this for functions which it implements
9697     to always fail with ENOSYS.  Some functions are actually named
9698     something starting with __ and the normal name is an alias.  */
9699 #if defined __stub_shl_load || defined __stub___shl_load
9700 choke me
9701 #endif
9702
9703 int
9704 main ()
9705 {
9706 return shl_load ();
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9713 case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_link") 2>conftest.er1
9719   ac_status=$?
9720   grep -v '^ *+' conftest.er1 >conftest.err
9721   rm -f conftest.er1
9722   cat conftest.err >&5
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); } &&
9725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726   { (case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_try") 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; } &&
9735          { ac_try='test -s conftest$ac_exeext'
9736   { (case "(($ac_try" in
9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738   *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741   (eval "$ac_try") 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745   ac_cv_func_shl_load=yes
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750         ac_cv_func_shl_load=no
9751 fi
9752
9753 rm -f core conftest.err conftest.$ac_objext \
9754       conftest$ac_exeext conftest.$ac_ext
9755 fi
9756 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9757 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9758 if test $ac_cv_func_shl_load = yes; then
9759
9760 cat >>confdefs.h <<\_ACEOF
9761 #define HAVE_SHL_LOAD 1
9762 _ACEOF
9763
9764 else
9765   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   ac_check_lib_save_LIBS=$LIBS
9771 LIBS="-ldld  $LIBS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778
9779 /* Override any GCC internal prototype to avoid an error.
9780    Use char because int might match the return type of a GCC
9781    builtin and then its argument prototype would still apply.  */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 char shl_load ();
9786 int
9787 main ()
9788 {
9789 return shl_load ();
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_link") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } &&
9808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809   { (case "(($ac_try" in
9810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811   *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814   (eval "$ac_try") 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; } &&
9818          { ac_try='test -s conftest$ac_exeext'
9819   { (case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_try") 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; }; then
9828   ac_cv_lib_dld_shl_load=yes
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833         ac_cv_lib_dld_shl_load=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext \
9837       conftest$ac_exeext conftest.$ac_ext
9838 LIBS=$ac_check_lib_save_LIBS
9839 fi
9840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9841 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9842 if test $ac_cv_lib_dld_shl_load = yes; then
9843
9844 cat >>confdefs.h <<\_ACEOF
9845 #define HAVE_SHL_LOAD 1
9846 _ACEOF
9847
9848         LIBADD_DL="$LIBADD_DL -ldld"
9849 else
9850   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9851 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9853   echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855   ac_check_lib_save_LIBS=$LIBS
9856 LIBS="-ldl  $LIBS"
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h.  */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h.  */
9863
9864 /* Override any GCC internal prototype to avoid an error.
9865    Use char because int might match the return type of a GCC
9866    builtin and then its argument prototype would still apply.  */
9867 #ifdef __cplusplus
9868 extern "C"
9869 #endif
9870 char dlopen ();
9871 int
9872 main ()
9873 {
9874 return dlopen ();
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9881 case "(($ac_try" in
9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883   *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886   (eval "$ac_link") 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894   { (case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_try") 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; } &&
9903          { ac_try='test -s conftest$ac_exeext'
9904   { (case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_try") 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; }; then
9913   ac_cv_lib_dl_dlopen=yes
9914 else
9915   echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918         ac_cv_lib_dl_dlopen=no
9919 fi
9920
9921 rm -f core conftest.err conftest.$ac_objext \
9922       conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9924 fi
9925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9927 if test $ac_cv_lib_dl_dlopen = yes; then
9928
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_LIBDL 1
9931 _ACEOF
9932
9933                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941 #if HAVE_DLFCN_H
9942 #  include <dlfcn.h>
9943 #endif
9944
9945 int
9946 main ()
9947 {
9948 dlopen(0, 0);
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext conftest$ac_exeext
9954 if { (ac_try="$ac_link"
9955 case "(($ac_try" in
9956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957   *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960   (eval "$ac_link") 2>conftest.er1
9961   ac_status=$?
9962   grep -v '^ *+' conftest.er1 >conftest.err
9963   rm -f conftest.er1
9964   cat conftest.err >&5
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); } &&
9967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9968   { (case "(($ac_try" in
9969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970   *) ac_try_echo=$ac_try;;
9971 esac
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973   (eval "$ac_try") 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); }; } &&
9977          { ac_try='test -s conftest$ac_exeext'
9978   { (case "(($ac_try" in
9979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980   *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983   (eval "$ac_try") 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; }; then
9987
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_LIBDL 1
9990 _ACEOF
9991  libltdl_cv_func_dlopen="yes"
9992 else
9993   echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9997 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9999   echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001   ac_check_lib_save_LIBS=$LIBS
10002 LIBS="-lsvld  $LIBS"
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h.  */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h.  */
10009
10010 /* Override any GCC internal prototype to avoid an error.
10011    Use char because int might match the return type of a GCC
10012    builtin and then its argument prototype would still apply.  */
10013 #ifdef __cplusplus
10014 extern "C"
10015 #endif
10016 char dlopen ();
10017 int
10018 main ()
10019 {
10020 return dlopen ();
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (ac_try="$ac_link"
10027 case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_link") 2>conftest.er1
10033   ac_status=$?
10034   grep -v '^ *+' conftest.er1 >conftest.err
10035   rm -f conftest.er1
10036   cat conftest.err >&5
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); } &&
10039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10040   { (case "(($ac_try" in
10041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042   *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045   (eval "$ac_try") 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; } &&
10049          { ac_try='test -s conftest$ac_exeext'
10050   { (case "(($ac_try" in
10051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052   *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055   (eval "$ac_try") 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_lib_svld_dlopen=yes
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064         ac_cv_lib_svld_dlopen=no
10065 fi
10066
10067 rm -f core conftest.err conftest.$ac_objext \
10068       conftest$ac_exeext conftest.$ac_ext
10069 LIBS=$ac_check_lib_save_LIBS
10070 fi
10071 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10072 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10073 if test $ac_cv_lib_svld_dlopen = yes; then
10074
10075 cat >>confdefs.h <<\_ACEOF
10076 #define HAVE_LIBDL 1
10077 _ACEOF
10078
10079                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10080 else
10081   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10082 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-ldld  $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10094
10095 /* Override any GCC internal prototype to avoid an error.
10096    Use char because int might match the return type of a GCC
10097    builtin and then its argument prototype would still apply.  */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 char dld_link ();
10102 int
10103 main ()
10104 {
10105 return dld_link ();
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_link") 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } &&
10124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125   { (case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_try") 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; } &&
10134          { ac_try='test -s conftest$ac_exeext'
10135   { (case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140   (eval "$ac_try") 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); }; }; then
10144   ac_cv_lib_dld_dld_link=yes
10145 else
10146   echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10148
10149         ac_cv_lib_dld_dld_link=no
10150 fi
10151
10152 rm -f core conftest.err conftest.$ac_objext \
10153       conftest$ac_exeext conftest.$ac_ext
10154 LIBS=$ac_check_lib_save_LIBS
10155 fi
10156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10158 if test $ac_cv_lib_dld_dld_link = yes; then
10159
10160 cat >>confdefs.h <<\_ACEOF
10161 #define HAVE_DLD 1
10162 _ACEOF
10163
10164                 LIBADD_DL="$LIBADD_DL -ldld"
10165 else
10166   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10167 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10168 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10179 #define _dyld_func_lookup innocuous__dyld_func_lookup
10180
10181 /* System header to define __stub macros and hopefully few prototypes,
10182     which can conflict with char _dyld_func_lookup (); below.
10183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184     <limits.h> exists even on freestanding compilers.  */
10185
10186 #ifdef __STDC__
10187 # include <limits.h>
10188 #else
10189 # include <assert.h>
10190 #endif
10191
10192 #undef _dyld_func_lookup
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195    Use char because int might match the return type of a GCC
10196    builtin and then its argument prototype would still apply.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char _dyld_func_lookup ();
10201 /* The GNU C library defines this for functions which it implements
10202     to always fail with ENOSYS.  Some functions are actually named
10203     something starting with __ and the normal name is an alias.  */
10204 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10205 choke me
10206 #endif
10207
10208 int
10209 main ()
10210 {
10211 return _dyld_func_lookup ();
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220   *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223   (eval "$ac_link") 2>conftest.er1
10224   ac_status=$?
10225   grep -v '^ *+' conftest.er1 >conftest.err
10226   rm -f conftest.er1
10227   cat conftest.err >&5
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); } &&
10230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231   { (case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_try") 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; } &&
10240          { ac_try='test -s conftest$ac_exeext'
10241   { (case "(($ac_try" in
10242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243   *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246   (eval "$ac_try") 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); }; }; then
10250   ac_cv_func__dyld_func_lookup=yes
10251 else
10252   echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255         ac_cv_func__dyld_func_lookup=no
10256 fi
10257
10258 rm -f core conftest.err conftest.$ac_objext \
10259       conftest$ac_exeext conftest.$ac_ext
10260 fi
10261 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10262 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10263 if test $ac_cv_func__dyld_func_lookup = yes; then
10264
10265 cat >>confdefs.h <<\_ACEOF
10266 #define HAVE_DYLD 1
10267 _ACEOF
10268
10269 fi
10270
10271
10272 fi
10273
10274
10275 fi
10276
10277
10278 fi
10279
10280 rm -f core conftest.err conftest.$ac_objext \
10281       conftest$ac_exeext conftest.$ac_ext
10282
10283 fi
10284
10285
10286 fi
10287
10288
10289 fi
10290
10291
10292 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10293 then
10294   lt_save_LIBS="$LIBS"
10295   LIBS="$LIBS $LIBADD_DL"
10296
10297 for ac_func in dlerror
10298 do
10299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10313 #define $ac_func innocuous_$ac_func
10314
10315 /* System header to define __stub macros and hopefully few prototypes,
10316     which can conflict with char $ac_func (); below.
10317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10318     <limits.h> exists even on freestanding compilers.  */
10319
10320 #ifdef __STDC__
10321 # include <limits.h>
10322 #else
10323 # include <assert.h>
10324 #endif
10325
10326 #undef $ac_func
10327
10328 /* Override any GCC internal prototype to avoid an error.
10329    Use char because int might match the return type of a GCC
10330    builtin and then its argument prototype would still apply.  */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char $ac_func ();
10335 /* The GNU C library defines this for functions which it implements
10336     to always fail with ENOSYS.  Some functions are actually named
10337     something starting with __ and the normal name is an alias.  */
10338 #if defined __stub_$ac_func || defined __stub___$ac_func
10339 choke me
10340 #endif
10341
10342 int
10343 main ()
10344 {
10345 return $ac_func ();
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354   *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357   (eval "$ac_link") 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365   { (case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_try") 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; } &&
10374          { ac_try='test -s conftest$ac_exeext'
10375   { (case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_try") 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   eval "$as_ac_var=yes"
10385 else
10386   echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389         eval "$as_ac_var=no"
10390 fi
10391
10392 rm -f core conftest.err conftest.$ac_objext \
10393       conftest$ac_exeext conftest.$ac_ext
10394 fi
10395 ac_res=`eval echo '${'$as_ac_var'}'`
10396                { echo "$as_me:$LINENO: result: $ac_res" >&5
10397 echo "${ECHO_T}$ac_res" >&6; }
10398 if test `eval echo '${'$as_ac_var'}'` = yes; then
10399   cat >>confdefs.h <<_ACEOF
10400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10401 _ACEOF
10402
10403 fi
10404 done
10405
10406   LIBS="$lt_save_LIBS"
10407 fi
10408 ac_ext=c
10409 ac_cpp='$CPP $CPPFLAGS'
10410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10413
10414
10415
10416 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10417 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10418 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   ac_cv_sys_symbol_underscore=no
10422   cat > conftest.$ac_ext <<EOF
10423 void nm_test_func(){}
10424 int main(){nm_test_func;return 0;}
10425 EOF
10426   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427   (eval $ac_compile) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; then
10431     # Now try to grab the symbols.
10432     ac_nlist=conftest.nm
10433     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10434   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } && test -s "$ac_nlist"; then
10438       # See whether the symbols have a leading underscore.
10439       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10440         ac_cv_sys_symbol_underscore=yes
10441       else
10442         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10443           :
10444         else
10445           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10446         fi
10447       fi
10448     else
10449       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10450     fi
10451   else
10452     echo "configure: failed program was:" >&5
10453     cat conftest.c >&5
10454   fi
10455   rm -rf conftest*
10456
10457 fi
10458 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10459 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10460
10461
10462 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10463   if test x"$libltdl_cv_func_dlopen" = xyes ||
10464      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10465         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10466 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10467 if test "${libltdl_cv_need_uscore+set}" = set; then
10468   echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470   libltdl_cv_need_uscore=unknown
10471           save_LIBS="$LIBS"
10472           LIBS="$LIBS $LIBADD_DL"
10473           if test "$cross_compiling" = yes; then :
10474   libltdl_cv_need_uscore=cross
10475 else
10476   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10477   lt_status=$lt_dlunknown
10478   cat > conftest.$ac_ext <<EOF
10479 #line 10479 "configure"
10480 #include "confdefs.h"
10481
10482 #if HAVE_DLFCN_H
10483 #include <dlfcn.h>
10484 #endif
10485
10486 #include <stdio.h>
10487
10488 #ifdef RTLD_GLOBAL
10489 #  define LT_DLGLOBAL           RTLD_GLOBAL
10490 #else
10491 #  ifdef DL_GLOBAL
10492 #    define LT_DLGLOBAL         DL_GLOBAL
10493 #  else
10494 #    define LT_DLGLOBAL         0
10495 #  endif
10496 #endif
10497
10498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10499    find out it does not work in some platform. */
10500 #ifndef LT_DLLAZY_OR_NOW
10501 #  ifdef RTLD_LAZY
10502 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10503 #  else
10504 #    ifdef DL_LAZY
10505 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10506 #    else
10507 #      ifdef RTLD_NOW
10508 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10509 #      else
10510 #        ifdef DL_NOW
10511 #          define LT_DLLAZY_OR_NOW      DL_NOW
10512 #        else
10513 #          define LT_DLLAZY_OR_NOW      0
10514 #        endif
10515 #      endif
10516 #    endif
10517 #  endif
10518 #endif
10519
10520 #ifdef __cplusplus
10521 extern "C" void exit (int);
10522 #endif
10523
10524 void fnord() { int i=42;}
10525 int main ()
10526 {
10527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10528   int status = $lt_dlunknown;
10529
10530   if (self)
10531     {
10532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10533       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10534       /* dlclose (self); */
10535     }
10536   else
10537     puts (dlerror ());
10538
10539     exit (status);
10540 }
10541 EOF
10542   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543   (eval $ac_link) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10547     (./conftest; exit; ) >&5 2>/dev/null
10548     lt_status=$?
10549     case x$lt_status in
10550       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10551       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10552       x$lt_dlunknown|x*)  ;;
10553     esac
10554   else :
10555     # compilation failed
10556
10557   fi
10558 fi
10559 rm -fr conftest*
10560
10561           LIBS="$save_LIBS"
10562
10563 fi
10564 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10565 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10566   fi
10567 fi
10568
10569 if test x"$libltdl_cv_need_uscore" = xyes; then
10570
10571 cat >>confdefs.h <<\_ACEOF
10572 #define NEED_USCORE 1
10573 _ACEOF
10574
10575 fi
10576
10577
10578 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10579 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10580 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   # PORTME does your system automatically load deplibs for dlopen?
10584   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10585   # For now, we just catch OSes we know something about -- in the
10586   # future, we'll try test this programmatically.
10587   libltdl_cv_sys_dlopen_deplibs=unknown
10588   case "$host_os" in
10589   aix3*|aix4.1.*|aix4.2.*)
10590     # Unknown whether this is true for these versions of AIX, but
10591     # we want this `case' here to explicitly catch those versions.
10592     libltdl_cv_sys_dlopen_deplibs=unknown
10593     ;;
10594   aix[45]*)
10595     libltdl_cv_sys_dlopen_deplibs=yes
10596     ;;
10597   darwin*)
10598     # Assuming the user has installed a libdl from somewhere, this is true
10599     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10600     libltdl_cv_sys_dlopen_deplibs=yes
10601     ;;
10602   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10603     # GNU and its variants, using gnu ld.so (Glibc)
10604     libltdl_cv_sys_dlopen_deplibs=yes
10605     ;;
10606   hpux10*|hpux11*)
10607     libltdl_cv_sys_dlopen_deplibs=yes
10608     ;;
10609   interix*)
10610     libltdl_cv_sys_dlopen_deplibs=yes
10611     ;;
10612   irix[12345]*|irix6.[01]*)
10613     # Catch all versions of IRIX before 6.2, and indicate that we don't
10614     # know how it worked for any of those versions.
10615     libltdl_cv_sys_dlopen_deplibs=unknown
10616     ;;
10617   irix*)
10618     # The case above catches anything before 6.2, and it's known that
10619     # at 6.2 and later dlopen does load deplibs.
10620     libltdl_cv_sys_dlopen_deplibs=yes
10621     ;;
10622   netbsd*)
10623     libltdl_cv_sys_dlopen_deplibs=yes
10624     ;;
10625   openbsd*)
10626     libltdl_cv_sys_dlopen_deplibs=yes
10627     ;;
10628   osf[1234]*)
10629     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10630     # it did *not* use an RPATH in a shared library to find objects the
10631     # library depends on, so we explicitly say `no'.
10632     libltdl_cv_sys_dlopen_deplibs=no
10633     ;;
10634   osf5.0|osf5.0a|osf5.1)
10635     # dlopen *does* load deplibs and with the right loader patch applied
10636     # it even uses RPATH in a shared library to search for shared objects
10637     # that the library depends on, but there's no easy way to know if that
10638     # patch is installed.  Since this is the case, all we can really
10639     # say is unknown -- it depends on the patch being installed.  If
10640     # it is, this changes to `yes'.  Without it, it would be `no'.
10641     libltdl_cv_sys_dlopen_deplibs=unknown
10642     ;;
10643   osf*)
10644     # the two cases above should catch all versions of osf <= 5.1.  Read
10645     # the comments above for what we know about them.
10646     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10647     # is used to find them so we can finally say `yes'.
10648     libltdl_cv_sys_dlopen_deplibs=yes
10649     ;;
10650   solaris*)
10651     libltdl_cv_sys_dlopen_deplibs=yes
10652     ;;
10653   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10654     libltdl_cv_sys_dlopen_deplibs=yes
10655     ;;
10656   esac
10657
10658 fi
10659 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10660 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10661 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10662
10663 cat >>confdefs.h <<\_ACEOF
10664 #define LTDL_DLOPEN_DEPLIBS 1
10665 _ACEOF
10666
10667 fi
10668
10669
10670 for ac_header in argz.h
10671 do
10672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10677   echo $ECHO_N "(cached) $ECHO_C" >&6
10678 fi
10679 ac_res=`eval echo '${'$as_ac_Header'}'`
10680                { echo "$as_me:$LINENO: result: $ac_res" >&5
10681 echo "${ECHO_T}$ac_res" >&6; }
10682 else
10683   # Is the header compilable?
10684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 $ac_includes_default
10693 #include <$ac_header>
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699   *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702   (eval "$ac_compile") 2>conftest.er1
10703   ac_status=$?
10704   grep -v '^ *+' conftest.er1 >conftest.err
10705   rm -f conftest.er1
10706   cat conftest.err >&5
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } &&
10709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710   { (case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715   (eval "$ac_try") 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; } &&
10719          { ac_try='test -s conftest.$ac_objext'
10720   { (case "(($ac_try" in
10721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722   *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725   (eval "$ac_try") 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }; }; then
10729   ac_header_compiler=yes
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734         ac_header_compiler=no
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10739 echo "${ECHO_T}$ac_header_compiler" >&6; }
10740
10741 # Is the header present?
10742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h.  */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h.  */
10750 #include <$ac_header>
10751 _ACEOF
10752 if { (ac_try="$ac_cpp conftest.$ac_ext"
10753 case "(($ac_try" in
10754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755   *) ac_try_echo=$ac_try;;
10756 esac
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10759   ac_status=$?
10760   grep -v '^ *+' conftest.er1 >conftest.err
10761   rm -f conftest.er1
10762   cat conftest.err >&5
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); } >/dev/null; then
10765   if test -s conftest.err; then
10766     ac_cpp_err=$ac_c_preproc_warn_flag
10767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10768   else
10769     ac_cpp_err=
10770   fi
10771 else
10772   ac_cpp_err=yes
10773 fi
10774 if test -z "$ac_cpp_err"; then
10775   ac_header_preproc=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780   ac_header_preproc=no
10781 fi
10782
10783 rm -f conftest.err conftest.$ac_ext
10784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10785 echo "${ECHO_T}$ac_header_preproc" >&6; }
10786
10787 # So?  What about this header?
10788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10789   yes:no: )
10790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10794     ac_header_preproc=yes
10795     ;;
10796   no:yes:* )
10797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10809     ( cat <<\_ASBOX
10810 ## ----------------------------------- ##
10811 ## Report this to llvmbugs@cs.uiuc.edu ##
10812 ## ----------------------------------- ##
10813 _ASBOX
10814      ) | sed "s/^/$as_me: WARNING:     /" >&2
10815     ;;
10816 esac
10817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822   eval "$as_ac_Header=\$ac_header_preproc"
10823 fi
10824 ac_res=`eval echo '${'$as_ac_Header'}'`
10825                { echo "$as_me:$LINENO: result: $ac_res" >&5
10826 echo "${ECHO_T}$ac_res" >&6; }
10827
10828 fi
10829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10830   cat >>confdefs.h <<_ACEOF
10831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10832 _ACEOF
10833
10834 fi
10835
10836 done
10837
10838
10839 { echo "$as_me:$LINENO: checking for error_t" >&5
10840 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10841 if test "${ac_cv_type_error_t+set}" = set; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h.  */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h.  */
10850 #if HAVE_ARGZ_H
10851 #  include <argz.h>
10852 #endif
10853
10854 typedef error_t ac__type_new_;
10855 int
10856 main ()
10857 {
10858 if ((ac__type_new_ *) 0)
10859   return 0;
10860 if (sizeof (ac__type_new_))
10861   return 0;
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_compile") 2>conftest.er1
10874   ac_status=$?
10875   grep -v '^ *+' conftest.er1 >conftest.err
10876   rm -f conftest.er1
10877   cat conftest.err >&5
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } &&
10880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881   { (case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_try") 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; } &&
10890          { ac_try='test -s conftest.$ac_objext'
10891   { (case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896   (eval "$ac_try") 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); }; }; then
10900   ac_cv_type_error_t=yes
10901 else
10902   echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905         ac_cv_type_error_t=no
10906 fi
10907
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 fi
10910 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10911 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10912 if test $ac_cv_type_error_t = yes; then
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_ERROR_T 1
10916 _ACEOF
10917
10918
10919 else
10920
10921 cat >>confdefs.h <<\_ACEOF
10922 #define error_t int
10923 _ACEOF
10924
10925 fi
10926
10927
10928
10929
10930
10931
10932
10933 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10934 do
10935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10949 #define $ac_func innocuous_$ac_func
10950
10951 /* System header to define __stub macros and hopefully few prototypes,
10952     which can conflict with char $ac_func (); below.
10953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954     <limits.h> exists even on freestanding compilers.  */
10955
10956 #ifdef __STDC__
10957 # include <limits.h>
10958 #else
10959 # include <assert.h>
10960 #endif
10961
10962 #undef $ac_func
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965    Use char because int might match the return type of a GCC
10966    builtin and then its argument prototype would still apply.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char $ac_func ();
10971 /* The GNU C library defines this for functions which it implements
10972     to always fail with ENOSYS.  Some functions are actually named
10973     something starting with __ and the normal name is an alias.  */
10974 #if defined __stub_$ac_func || defined __stub___$ac_func
10975 choke me
10976 #endif
10977
10978 int
10979 main ()
10980 {
10981 return $ac_func ();
10982   ;
10983   return 0;
10984 }
10985 _ACEOF
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (ac_try="$ac_link"
10988 case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_link") 2>conftest.er1
10994   ac_status=$?
10995   grep -v '^ *+' conftest.er1 >conftest.err
10996   rm -f conftest.er1
10997   cat conftest.err >&5
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } &&
11000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001   { (case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_try") 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; } &&
11010          { ac_try='test -s conftest$ac_exeext'
11011   { (case "(($ac_try" in
11012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013   *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_try") 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; }; then
11020   eval "$as_ac_var=yes"
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025         eval "$as_ac_var=no"
11026 fi
11027
11028 rm -f core conftest.err conftest.$ac_objext \
11029       conftest$ac_exeext conftest.$ac_ext
11030 fi
11031 ac_res=`eval echo '${'$as_ac_var'}'`
11032                { echo "$as_me:$LINENO: result: $ac_res" >&5
11033 echo "${ECHO_T}$ac_res" >&6; }
11034 if test `eval echo '${'$as_ac_var'}'` = yes; then
11035   cat >>confdefs.h <<_ACEOF
11036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11037 _ACEOF
11038
11039 fi
11040 done
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11070                   stdio.h unistd.h
11071 do
11072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11074   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 fi
11079 ac_res=`eval echo '${'$as_ac_Header'}'`
11080                { echo "$as_me:$LINENO: result: $ac_res" >&5
11081 echo "${ECHO_T}$ac_res" >&6; }
11082 else
11083   # Is the header compilable?
11084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h.  */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h.  */
11092 $ac_includes_default
11093 #include <$ac_header>
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_compile") 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } &&
11109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11110   { (case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_try") 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; } &&
11119          { ac_try='test -s conftest.$ac_objext'
11120   { (case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_try") 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; }; then
11129   ac_header_compiler=yes
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134         ac_header_compiler=no
11135 fi
11136
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11139 echo "${ECHO_T}$ac_header_compiler" >&6; }
11140
11141 # Is the header present?
11142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11144 cat >conftest.$ac_ext <<_ACEOF
11145 /* confdefs.h.  */
11146 _ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h.  */
11150 #include <$ac_header>
11151 _ACEOF
11152 if { (ac_try="$ac_cpp conftest.$ac_ext"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } >/dev/null; then
11165   if test -s conftest.err; then
11166     ac_cpp_err=$ac_c_preproc_warn_flag
11167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11168   else
11169     ac_cpp_err=
11170   fi
11171 else
11172   ac_cpp_err=yes
11173 fi
11174 if test -z "$ac_cpp_err"; then
11175   ac_header_preproc=yes
11176 else
11177   echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180   ac_header_preproc=no
11181 fi
11182
11183 rm -f conftest.err conftest.$ac_ext
11184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11185 echo "${ECHO_T}$ac_header_preproc" >&6; }
11186
11187 # So?  What about this header?
11188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11189   yes:no: )
11190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11194     ac_header_preproc=yes
11195     ;;
11196   no:yes:* )
11197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11209     ( cat <<\_ASBOX
11210 ## ----------------------------------- ##
11211 ## Report this to llvmbugs@cs.uiuc.edu ##
11212 ## ----------------------------------- ##
11213 _ASBOX
11214      ) | sed "s/^/$as_me: WARNING:     /" >&2
11215     ;;
11216 esac
11217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220   echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222   eval "$as_ac_Header=\$ac_header_preproc"
11223 fi
11224 ac_res=`eval echo '${'$as_ac_Header'}'`
11225                { echo "$as_me:$LINENO: result: $ac_res" >&5
11226 echo "${ECHO_T}$ac_res" >&6; }
11227
11228 fi
11229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11230   cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11232 _ACEOF
11233
11234 fi
11235
11236 done
11237
11238
11239
11240
11241
11242 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11243 do
11244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11249   echo $ECHO_N "(cached) $ECHO_C" >&6
11250 fi
11251 ac_res=`eval echo '${'$as_ac_Header'}'`
11252                { echo "$as_me:$LINENO: result: $ac_res" >&5
11253 echo "${ECHO_T}$ac_res" >&6; }
11254 else
11255   # Is the header compilable?
11256 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 $ac_includes_default
11265 #include <$ac_header>
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271   *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274   (eval "$ac_compile") 2>conftest.er1
11275   ac_status=$?
11276   grep -v '^ *+' conftest.er1 >conftest.err
11277   rm -f conftest.er1
11278   cat conftest.err >&5
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); } &&
11281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11282   { (case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287   (eval "$ac_try") 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; } &&
11291          { ac_try='test -s conftest.$ac_objext'
11292   { (case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_try") 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; }; then
11301   ac_header_compiler=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306         ac_header_compiler=no
11307 fi
11308
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 #include <$ac_header>
11323 _ACEOF
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } >/dev/null; then
11337   if test -s conftest.err; then
11338     ac_cpp_err=$ac_c_preproc_warn_flag
11339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11340   else
11341     ac_cpp_err=
11342   fi
11343 else
11344   ac_cpp_err=yes
11345 fi
11346 if test -z "$ac_cpp_err"; then
11347   ac_header_preproc=yes
11348 else
11349   echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352   ac_header_preproc=no
11353 fi
11354
11355 rm -f conftest.err conftest.$ac_ext
11356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11357 echo "${ECHO_T}$ac_header_preproc" >&6; }
11358
11359 # So?  What about this header?
11360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11361   yes:no: )
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11366     ac_header_preproc=yes
11367     ;;
11368   no:yes:* )
11369     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11372 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11376 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11381     ( cat <<\_ASBOX
11382 ## ----------------------------------- ##
11383 ## Report this to llvmbugs@cs.uiuc.edu ##
11384 ## ----------------------------------- ##
11385 _ASBOX
11386      ) | sed "s/^/$as_me: WARNING:     /" >&2
11387     ;;
11388 esac
11389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   eval "$as_ac_Header=\$ac_header_preproc"
11395 fi
11396 ac_res=`eval echo '${'$as_ac_Header'}'`
11397                { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11399
11400 fi
11401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11402   cat >>confdefs.h <<_ACEOF
11403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11404 _ACEOF
11405
11406 fi
11407
11408 done
11409
11410
11411
11412 for ac_header in string.h strings.h
11413 do
11414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419   echo $ECHO_N "(cached) $ECHO_C" >&6
11420 fi
11421 ac_res=`eval echo '${'$as_ac_Header'}'`
11422                { echo "$as_me:$LINENO: result: $ac_res" >&5
11423 echo "${ECHO_T}$ac_res" >&6; }
11424 else
11425   # Is the header compilable?
11426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434 $ac_includes_default
11435 #include <$ac_header>
11436 _ACEOF
11437 rm -f conftest.$ac_objext
11438 if { (ac_try="$ac_compile"
11439 case "(($ac_try" in
11440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441   *) ac_try_echo=$ac_try;;
11442 esac
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444   (eval "$ac_compile") 2>conftest.er1
11445   ac_status=$?
11446   grep -v '^ *+' conftest.er1 >conftest.err
11447   rm -f conftest.er1
11448   cat conftest.err >&5
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); } &&
11451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11452   { (case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457   (eval "$ac_try") 2>&5
11458   ac_status=$?
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); }; } &&
11461          { ac_try='test -s conftest.$ac_objext'
11462   { (case "(($ac_try" in
11463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464   *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467   (eval "$ac_try") 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; }; then
11471   ac_header_compiler=yes
11472 else
11473   echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476         ac_header_compiler=no
11477 fi
11478
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481 echo "${ECHO_T}$ac_header_compiler" >&6; }
11482
11483 # Is the header present?
11484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492 #include <$ac_header>
11493 _ACEOF
11494 if { (ac_try="$ac_cpp conftest.$ac_ext"
11495 case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11501   ac_status=$?
11502   grep -v '^ *+' conftest.er1 >conftest.err
11503   rm -f conftest.er1
11504   cat conftest.err >&5
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } >/dev/null; then
11507   if test -s conftest.err; then
11508     ac_cpp_err=$ac_c_preproc_warn_flag
11509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11510   else
11511     ac_cpp_err=
11512   fi
11513 else
11514   ac_cpp_err=yes
11515 fi
11516 if test -z "$ac_cpp_err"; then
11517   ac_header_preproc=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522   ac_header_preproc=no
11523 fi
11524
11525 rm -f conftest.err conftest.$ac_ext
11526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11527 echo "${ECHO_T}$ac_header_preproc" >&6; }
11528
11529 # So?  What about this header?
11530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11531   yes:no: )
11532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11536     ac_header_preproc=yes
11537     ;;
11538   no:yes:* )
11539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11551     ( cat <<\_ASBOX
11552 ## ----------------------------------- ##
11553 ## Report this to llvmbugs@cs.uiuc.edu ##
11554 ## ----------------------------------- ##
11555 _ASBOX
11556      ) | sed "s/^/$as_me: WARNING:     /" >&2
11557     ;;
11558 esac
11559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11562   echo $ECHO_N "(cached) $ECHO_C" >&6
11563 else
11564   eval "$as_ac_Header=\$ac_header_preproc"
11565 fi
11566 ac_res=`eval echo '${'$as_ac_Header'}'`
11567                { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11569
11570 fi
11571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11572   cat >>confdefs.h <<_ACEOF
11573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11574 _ACEOF
11575  break
11576 fi
11577
11578 done
11579
11580
11581
11582
11583 for ac_func in strchr index
11584 do
11585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h.  */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h.  */
11597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11599 #define $ac_func innocuous_$ac_func
11600
11601 /* System header to define __stub macros and hopefully few prototypes,
11602     which can conflict with char $ac_func (); below.
11603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604     <limits.h> exists even on freestanding compilers.  */
11605
11606 #ifdef __STDC__
11607 # include <limits.h>
11608 #else
11609 # include <assert.h>
11610 #endif
11611
11612 #undef $ac_func
11613
11614 /* Override any GCC internal prototype to avoid an error.
11615    Use char because int might match the return type of a GCC
11616    builtin and then its argument prototype would still apply.  */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 char $ac_func ();
11621 /* The GNU C library defines this for functions which it implements
11622     to always fail with ENOSYS.  Some functions are actually named
11623     something starting with __ and the normal name is an alias.  */
11624 #if defined __stub_$ac_func || defined __stub___$ac_func
11625 choke me
11626 #endif
11627
11628 int
11629 main ()
11630 {
11631 return $ac_func ();
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (ac_try="$ac_link"
11638 case "(($ac_try" in
11639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640   *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643   (eval "$ac_link") 2>conftest.er1
11644   ac_status=$?
11645   grep -v '^ *+' conftest.er1 >conftest.err
11646   rm -f conftest.er1
11647   cat conftest.err >&5
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651   { (case "(($ac_try" in
11652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653   *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656   (eval "$ac_try") 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); }; } &&
11660          { ac_try='test -s conftest$ac_exeext'
11661   { (case "(($ac_try" in
11662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663   *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666   (eval "$ac_try") 2>&5
11667   ac_status=$?
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); }; }; then
11670   eval "$as_ac_var=yes"
11671 else
11672   echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675         eval "$as_ac_var=no"
11676 fi
11677
11678 rm -f core conftest.err conftest.$ac_objext \
11679       conftest$ac_exeext conftest.$ac_ext
11680 fi
11681 ac_res=`eval echo '${'$as_ac_var'}'`
11682                { echo "$as_me:$LINENO: result: $ac_res" >&5
11683 echo "${ECHO_T}$ac_res" >&6; }
11684 if test `eval echo '${'$as_ac_var'}'` = yes; then
11685   cat >>confdefs.h <<_ACEOF
11686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11687 _ACEOF
11688  break
11689 fi
11690 done
11691
11692
11693
11694 for ac_func in strrchr rindex
11695 do
11696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11700   echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702   cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11710 #define $ac_func innocuous_$ac_func
11711
11712 /* System header to define __stub macros and hopefully few prototypes,
11713     which can conflict with char $ac_func (); below.
11714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11715     <limits.h> exists even on freestanding compilers.  */
11716
11717 #ifdef __STDC__
11718 # include <limits.h>
11719 #else
11720 # include <assert.h>
11721 #endif
11722
11723 #undef $ac_func
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726    Use char because int might match the return type of a GCC
11727    builtin and then its argument prototype would still apply.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char $ac_func ();
11732 /* The GNU C library defines this for functions which it implements
11733     to always fail with ENOSYS.  Some functions are actually named
11734     something starting with __ and the normal name is an alias.  */
11735 #if defined __stub_$ac_func || defined __stub___$ac_func
11736 choke me
11737 #endif
11738
11739 int
11740 main ()
11741 {
11742 return $ac_func ();
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_link") 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762   { (case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_try") 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; } &&
11771          { ac_try='test -s conftest$ac_exeext'
11772   { (case "(($ac_try" in
11773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774   *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777   (eval "$ac_try") 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   eval "$as_ac_var=yes"
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786         eval "$as_ac_var=no"
11787 fi
11788
11789 rm -f core conftest.err conftest.$ac_objext \
11790       conftest$ac_exeext conftest.$ac_ext
11791 fi
11792 ac_res=`eval echo '${'$as_ac_var'}'`
11793                { echo "$as_me:$LINENO: result: $ac_res" >&5
11794 echo "${ECHO_T}$ac_res" >&6; }
11795 if test `eval echo '${'$as_ac_var'}'` = yes; then
11796   cat >>confdefs.h <<_ACEOF
11797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 _ACEOF
11799  break
11800 fi
11801 done
11802
11803
11804
11805 for ac_func in memcpy bcopy
11806 do
11807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811   echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813   cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h.  */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h.  */
11819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11821 #define $ac_func innocuous_$ac_func
11822
11823 /* System header to define __stub macros and hopefully few prototypes,
11824     which can conflict with char $ac_func (); below.
11825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826     <limits.h> exists even on freestanding compilers.  */
11827
11828 #ifdef __STDC__
11829 # include <limits.h>
11830 #else
11831 # include <assert.h>
11832 #endif
11833
11834 #undef $ac_func
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837    Use char because int might match the return type of a GCC
11838    builtin and then its argument prototype would still apply.  */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char $ac_func ();
11843 /* The GNU C library defines this for functions which it implements
11844     to always fail with ENOSYS.  Some functions are actually named
11845     something starting with __ and the normal name is an alias.  */
11846 #if defined __stub_$ac_func || defined __stub___$ac_func
11847 choke me
11848 #endif
11849
11850 int
11851 main ()
11852 {
11853 return $ac_func ();
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_link") 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873   { (case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_try") 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest$ac_exeext'
11883   { (case "(($ac_try" in
11884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885   *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888   (eval "$ac_try") 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; }; then
11892   eval "$as_ac_var=yes"
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897         eval "$as_ac_var=no"
11898 fi
11899
11900 rm -f core conftest.err conftest.$ac_objext \
11901       conftest$ac_exeext conftest.$ac_ext
11902 fi
11903 ac_res=`eval echo '${'$as_ac_var'}'`
11904                { echo "$as_me:$LINENO: result: $ac_res" >&5
11905 echo "${ECHO_T}$ac_res" >&6; }
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907   cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 _ACEOF
11910  break
11911 fi
11912 done
11913
11914
11915
11916 for ac_func in memmove strcmp
11917 do
11918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h.  */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h.  */
11930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11932 #define $ac_func innocuous_$ac_func
11933
11934 /* System header to define __stub macros and hopefully few prototypes,
11935     which can conflict with char $ac_func (); below.
11936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937     <limits.h> exists even on freestanding compilers.  */
11938
11939 #ifdef __STDC__
11940 # include <limits.h>
11941 #else
11942 # include <assert.h>
11943 #endif
11944
11945 #undef $ac_func
11946
11947 /* Override any GCC internal prototype to avoid an error.
11948    Use char because int might match the return type of a GCC
11949    builtin and then its argument prototype would still apply.  */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char $ac_func ();
11954 /* The GNU C library defines this for functions which it implements
11955     to always fail with ENOSYS.  Some functions are actually named
11956     something starting with __ and the normal name is an alias.  */
11957 #if defined __stub_$ac_func || defined __stub___$ac_func
11958 choke me
11959 #endif
11960
11961 int
11962 main ()
11963 {
11964 return $ac_func ();
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973   *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976   (eval "$ac_link") 2>conftest.er1
11977   ac_status=$?
11978   grep -v '^ *+' conftest.er1 >conftest.err
11979   rm -f conftest.er1
11980   cat conftest.err >&5
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } &&
11983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11984   { (case "(($ac_try" in
11985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986   *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989   (eval "$ac_try") 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; } &&
11993          { ac_try='test -s conftest$ac_exeext'
11994   { (case "(($ac_try" in
11995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996   *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999   (eval "$ac_try") 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; }; then
12003   eval "$as_ac_var=yes"
12004 else
12005   echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008         eval "$as_ac_var=no"
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext \
12012       conftest$ac_exeext conftest.$ac_ext
12013 fi
12014 ac_res=`eval echo '${'$as_ac_var'}'`
12015                { echo "$as_me:$LINENO: result: $ac_res" >&5
12016 echo "${ECHO_T}$ac_res" >&6; }
12017 if test `eval echo '${'$as_ac_var'}'` = yes; then
12018   cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12020 _ACEOF
12021
12022 fi
12023 done
12024
12025
12026
12027
12028 for ac_func in closedir opendir readdir
12029 do
12030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12044 #define $ac_func innocuous_$ac_func
12045
12046 /* System header to define __stub macros and hopefully few prototypes,
12047     which can conflict with char $ac_func (); below.
12048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049     <limits.h> exists even on freestanding compilers.  */
12050
12051 #ifdef __STDC__
12052 # include <limits.h>
12053 #else
12054 # include <assert.h>
12055 #endif
12056
12057 #undef $ac_func
12058
12059 /* Override any GCC internal prototype to avoid an error.
12060    Use char because int might match the return type of a GCC
12061    builtin and then its argument prototype would still apply.  */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char $ac_func ();
12066 /* The GNU C library defines this for functions which it implements
12067     to always fail with ENOSYS.  Some functions are actually named
12068     something starting with __ and the normal name is an alias.  */
12069 #if defined __stub_$ac_func || defined __stub___$ac_func
12070 choke me
12071 #endif
12072
12073 int
12074 main ()
12075 {
12076 return $ac_func ();
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_link") 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096   { (case "(($ac_try" in
12097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098   *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101   (eval "$ac_try") 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); }; } &&
12105          { ac_try='test -s conftest$ac_exeext'
12106   { (case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_try") 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; }; then
12115   eval "$as_ac_var=yes"
12116 else
12117   echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120         eval "$as_ac_var=no"
12121 fi
12122
12123 rm -f core conftest.err conftest.$ac_objext \
12124       conftest$ac_exeext conftest.$ac_ext
12125 fi
12126 ac_res=`eval echo '${'$as_ac_var'}'`
12127                { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12129 if test `eval echo '${'$as_ac_var'}'` = yes; then
12130   cat >>confdefs.h <<_ACEOF
12131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 _ACEOF
12133
12134 fi
12135 done
12136
12137
12138
12139 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12140 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12141
12142 ICC=no
12143 IXX=no
12144 case $CC in
12145   icc*|icpc*)
12146     ICC=yes
12147     IXX=yes
12148     ;;
12149    *)
12150     ;;
12151 esac
12152
12153 if test "$GCC" != "yes" && test "$ICC" != "yes"
12154 then
12155   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12156 echo "$as_me: error: gcc|icc required but not found" >&2;}
12157    { (exit 1); exit 1; }; }
12158 fi
12159
12160 if test "$GXX" != "yes" && test "$IXX" != "yes"
12161 then
12162   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12163 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12164    { (exit 1); exit 1; }; }
12165 fi
12166
12167 if test "$GCC" = "yes"
12168 then
12169   cat >conftest.$ac_ext <<_ACEOF
12170 #if !defined(__GNUC__) || __GNUC__ < 3
12171 #error Unsupported GCC version
12172 #endif
12173
12174 _ACEOF
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_compile") 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190   { (case "(($ac_try" in
12191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192   *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195   (eval "$ac_try") 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205   (eval "$ac_try") 2>&5
12206   ac_status=$?
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); }; }; then
12209   :
12210 else
12211   echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12215 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12216    { (exit 1); exit 1; }; }
12217 fi
12218
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 fi
12221
12222 if test -z "$llvm_cv_gnu_make_command"
12223 then
12224   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12225 echo "$as_me: error: GNU Make required but not found" >&2;}
12226    { (exit 1); exit 1; }; }
12227 fi
12228
12229 { echo "$as_me:$LINENO: result: ok" >&5
12230 echo "${ECHO_T}ok" >&6; }
12231
12232 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12233 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12234 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12235
12236 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12237
12238 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12239 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12240
12241
12242
12243 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12244 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12245 if test "${ac_cv_lib_m_sin+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-lm  $LIBS"
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256
12257 /* Override any GCC internal prototype to avoid an error.
12258    Use char because int might match the return type of a GCC
12259    builtin and then its argument prototype would still apply.  */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char sin ();
12264 int
12265 main ()
12266 {
12267 return sin ();
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276   *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279   (eval "$ac_link") 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287   { (case "(($ac_try" in
12288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289   *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292   (eval "$ac_try") 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; } &&
12296          { ac_try='test -s conftest$ac_exeext'
12297   { (case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_try") 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; }; then
12306   ac_cv_lib_m_sin=yes
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         ac_cv_lib_m_sin=no
12312 fi
12313
12314 rm -f core conftest.err conftest.$ac_objext \
12315       conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12317 fi
12318 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12319 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12320 if test $ac_cv_lib_m_sin = yes; then
12321   cat >>confdefs.h <<_ACEOF
12322 #define HAVE_LIBM 1
12323 _ACEOF
12324
12325   LIBS="-lm $LIBS"
12326
12327 fi
12328
12329 if test "$llvm_cv_os_type" = "MingW" ; then
12330
12331 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12332 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12333 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336   ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-limagehlp  $LIBS"
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344
12345
12346 int
12347 main ()
12348 {
12349 return main ();
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358   *) ac_try_echo=$ac_try;;
12359 esac
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361   (eval "$ac_link") 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } &&
12368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369   { (case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_try") 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; } &&
12378          { ac_try='test -s conftest$ac_exeext'
12379   { (case "(($ac_try" in
12380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381   *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384   (eval "$ac_try") 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); }; }; then
12388   ac_cv_lib_imagehlp_main=yes
12389 else
12390   echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393         ac_cv_lib_imagehlp_main=no
12394 fi
12395
12396 rm -f core conftest.err conftest.$ac_objext \
12397       conftest$ac_exeext conftest.$ac_ext
12398 LIBS=$ac_check_lib_save_LIBS
12399 fi
12400 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12401 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12402 if test $ac_cv_lib_imagehlp_main = yes; then
12403   cat >>confdefs.h <<_ACEOF
12404 #define HAVE_LIBIMAGEHLP 1
12405 _ACEOF
12406
12407   LIBS="-limagehlp $LIBS"
12408
12409 fi
12410
12411
12412 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12413 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12414 if test "${ac_cv_lib_psapi_main+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-lpsapi  $LIBS"
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h.  */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h.  */
12425
12426
12427 int
12428 main ()
12429 {
12430 return main ();
12431   ;
12432   return 0;
12433 }
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_link") 2>conftest.er1
12443   ac_status=$?
12444   grep -v '^ *+' conftest.er1 >conftest.err
12445   rm -f conftest.er1
12446   cat conftest.err >&5
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450   { (case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455   (eval "$ac_try") 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest$ac_exeext'
12460   { (case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465   (eval "$ac_try") 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469   ac_cv_lib_psapi_main=yes
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474         ac_cv_lib_psapi_main=no
12475 fi
12476
12477 rm -f core conftest.err conftest.$ac_objext \
12478       conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12480 fi
12481 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12482 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12483 if test $ac_cv_lib_psapi_main = yes; then
12484   cat >>confdefs.h <<_ACEOF
12485 #define HAVE_LIBPSAPI 1
12486 _ACEOF
12487
12488   LIBS="-lpsapi $LIBS"
12489
12490 fi
12491
12492 fi
12493
12494 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12495 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12496 if test "${ac_cv_search_dlopen+set}" = set; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499   ac_func_search_save_LIBS=$LIBS
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506
12507 /* Override any GCC internal prototype to avoid an error.
12508    Use char because int might match the return type of a GCC
12509    builtin and then its argument prototype would still apply.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char dlopen ();
12514 int
12515 main ()
12516 {
12517 return dlopen ();
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 for ac_lib in '' dl; do
12523   if test -z "$ac_lib"; then
12524     ac_res="none required"
12525   else
12526     ac_res=-l$ac_lib
12527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12528   fi
12529   rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_link") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544   { (case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_try") 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest$ac_exeext'
12554   { (case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_try") 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_cv_search_dlopen=$ac_res
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext \
12572       conftest$ac_exeext
12573   if test "${ac_cv_search_dlopen+set}" = set; then
12574   break
12575 fi
12576 done
12577 if test "${ac_cv_search_dlopen+set}" = set; then
12578   :
12579 else
12580   ac_cv_search_dlopen=no
12581 fi
12582 rm conftest.$ac_ext
12583 LIBS=$ac_func_search_save_LIBS
12584 fi
12585 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12586 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12587 ac_res=$ac_cv_search_dlopen
12588 if test "$ac_res" != no; then
12589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12590
12591 cat >>confdefs.h <<\_ACEOF
12592 #define HAVE_DLOPEN 1
12593 _ACEOF
12594
12595 else
12596   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12597 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12598 fi
12599
12600
12601 if test "$llvm_cv_enable_libffi" = "yes" ; then
12602   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12603 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12604 if test "${ac_cv_search_ffi_call+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607   ac_func_search_save_LIBS=$LIBS
12608 cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h.  */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h.  */
12614
12615 /* Override any GCC internal prototype to avoid an error.
12616    Use char because int might match the return type of a GCC
12617    builtin and then its argument prototype would still apply.  */
12618 #ifdef __cplusplus
12619 extern "C"
12620 #endif
12621 char ffi_call ();
12622 int
12623 main ()
12624 {
12625 return ffi_call ();
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 for ac_lib in '' ffi; do
12631   if test -z "$ac_lib"; then
12632     ac_res="none required"
12633   else
12634     ac_res=-l$ac_lib
12635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12636   fi
12637   rm -f conftest.$ac_objext conftest$ac_exeext
12638 if { (ac_try="$ac_link"
12639 case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_link") 2>conftest.er1
12645   ac_status=$?
12646   grep -v '^ *+' conftest.er1 >conftest.err
12647   rm -f conftest.er1
12648   cat conftest.err >&5
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } &&
12651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12652   { (case "(($ac_try" in
12653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654   *) ac_try_echo=$ac_try;;
12655 esac
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657   (eval "$ac_try") 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; } &&
12661          { ac_try='test -s conftest$ac_exeext'
12662   { (case "(($ac_try" in
12663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664   *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667   (eval "$ac_try") 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; }; then
12671   ac_cv_search_ffi_call=$ac_res
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676
12677 fi
12678
12679 rm -f core conftest.err conftest.$ac_objext \
12680       conftest$ac_exeext
12681   if test "${ac_cv_search_ffi_call+set}" = set; then
12682   break
12683 fi
12684 done
12685 if test "${ac_cv_search_ffi_call+set}" = set; then
12686   :
12687 else
12688   ac_cv_search_ffi_call=no
12689 fi
12690 rm conftest.$ac_ext
12691 LIBS=$ac_func_search_save_LIBS
12692 fi
12693 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12694 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12695 ac_res=$ac_cv_search_ffi_call
12696 if test "$ac_res" != no; then
12697   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12698
12699 cat >>confdefs.h <<\_ACEOF
12700 #define HAVE_FFI_CALL 1
12701 _ACEOF
12702
12703 else
12704   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12705 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12706    { (exit 1); exit 1; }; }
12707 fi
12708
12709 fi
12710
12711 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12712 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12713 if test "${ac_cv_search_mallinfo+set}" = set; then
12714   echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716   ac_func_search_save_LIBS=$LIBS
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h.  */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h.  */
12723
12724 /* Override any GCC internal prototype to avoid an error.
12725    Use char because int might match the return type of a GCC
12726    builtin and then its argument prototype would still apply.  */
12727 #ifdef __cplusplus
12728 extern "C"
12729 #endif
12730 char mallinfo ();
12731 int
12732 main ()
12733 {
12734 return mallinfo ();
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 for ac_lib in '' malloc; do
12740   if test -z "$ac_lib"; then
12741     ac_res="none required"
12742   else
12743     ac_res=-l$ac_lib
12744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12745   fi
12746   rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753   (eval "$ac_link") 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12761   { (case "(($ac_try" in
12762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763   *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766   (eval "$ac_try") 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; } &&
12770          { ac_try='test -s conftest$ac_exeext'
12771   { (case "(($ac_try" in
12772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773   *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776   (eval "$ac_try") 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; }; then
12780   ac_cv_search_mallinfo=$ac_res
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785
12786 fi
12787
12788 rm -f core conftest.err conftest.$ac_objext \
12789       conftest$ac_exeext
12790   if test "${ac_cv_search_mallinfo+set}" = set; then
12791   break
12792 fi
12793 done
12794 if test "${ac_cv_search_mallinfo+set}" = set; then
12795   :
12796 else
12797   ac_cv_search_mallinfo=no
12798 fi
12799 rm conftest.$ac_ext
12800 LIBS=$ac_func_search_save_LIBS
12801 fi
12802 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12803 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12804 ac_res=$ac_cv_search_mallinfo
12805 if test "$ac_res" != no; then
12806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12807
12808 cat >>confdefs.h <<\_ACEOF
12809 #define HAVE_MALLINFO 1
12810 _ACEOF
12811
12812 fi
12813
12814
12815 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12816
12817 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12818 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12819 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   ac_check_lib_save_LIBS=$LIBS
12823 LIBS="-lpthread  $LIBS"
12824 cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830
12831 /* Override any GCC internal prototype to avoid an error.
12832    Use char because int might match the return type of a GCC
12833    builtin and then its argument prototype would still apply.  */
12834 #ifdef __cplusplus
12835 extern "C"
12836 #endif
12837 char pthread_mutex_init ();
12838 int
12839 main ()
12840 {
12841 return pthread_mutex_init ();
12842   ;
12843   return 0;
12844 }
12845 _ACEOF
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (ac_try="$ac_link"
12848 case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_link") 2>conftest.er1
12854   ac_status=$?
12855   grep -v '^ *+' conftest.er1 >conftest.err
12856   rm -f conftest.er1
12857   cat conftest.err >&5
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } &&
12860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12861   { (case "(($ac_try" in
12862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863   *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866   (eval "$ac_try") 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; } &&
12870          { ac_try='test -s conftest$ac_exeext'
12871   { (case "(($ac_try" in
12872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873   *) ac_try_echo=$ac_try;;
12874 esac
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876   (eval "$ac_try") 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; }; then
12880   ac_cv_lib_pthread_pthread_mutex_init=yes
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885         ac_cv_lib_pthread_pthread_mutex_init=no
12886 fi
12887
12888 rm -f core conftest.err conftest.$ac_objext \
12889       conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12891 fi
12892 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12893 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12894 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12895   cat >>confdefs.h <<_ACEOF
12896 #define HAVE_LIBPTHREAD 1
12897 _ACEOF
12898
12899   LIBS="-lpthread $LIBS"
12900
12901 fi
12902
12903   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12904 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12905 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12906   echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908   ac_func_search_save_LIBS=$LIBS
12909 cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h.  */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h.  */
12915
12916 /* Override any GCC internal prototype to avoid an error.
12917    Use char because int might match the return type of a GCC
12918    builtin and then its argument prototype would still apply.  */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char pthread_mutex_lock ();
12923 int
12924 main ()
12925 {
12926 return pthread_mutex_lock ();
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 for ac_lib in '' pthread; do
12932   if test -z "$ac_lib"; then
12933     ac_res="none required"
12934   else
12935     ac_res=-l$ac_lib
12936     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12937   fi
12938   rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (ac_try="$ac_link"
12940 case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_link") 2>conftest.er1
12946   ac_status=$?
12947   grep -v '^ *+' conftest.er1 >conftest.err
12948   rm -f conftest.er1
12949   cat conftest.err >&5
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } &&
12952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12953   { (case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_try") 2>&5
12959   ac_status=$?
12960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961   (exit $ac_status); }; } &&
12962          { ac_try='test -s conftest$ac_exeext'
12963   { (case "(($ac_try" in
12964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965   *) ac_try_echo=$ac_try;;
12966 esac
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968   (eval "$ac_try") 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   ac_cv_search_pthread_mutex_lock=$ac_res
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977
12978 fi
12979
12980 rm -f core conftest.err conftest.$ac_objext \
12981       conftest$ac_exeext
12982   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12983   break
12984 fi
12985 done
12986 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987   :
12988 else
12989   ac_cv_search_pthread_mutex_lock=no
12990 fi
12991 rm conftest.$ac_ext
12992 LIBS=$ac_func_search_save_LIBS
12993 fi
12994 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12995 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12996 ac_res=$ac_cv_search_pthread_mutex_lock
12997 if test "$ac_res" != no; then
12998   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12999
13000 cat >>confdefs.h <<\_ACEOF
13001 #define HAVE_PTHREAD_MUTEX_LOCK 1
13002 _ACEOF
13003
13004 fi
13005
13006   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13007 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13008 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   ac_func_search_save_LIBS=$LIBS
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018
13019 /* Override any GCC internal prototype to avoid an error.
13020    Use char because int might match the return type of a GCC
13021    builtin and then its argument prototype would still apply.  */
13022 #ifdef __cplusplus
13023 extern "C"
13024 #endif
13025 char pthread_rwlock_init ();
13026 int
13027 main ()
13028 {
13029 return pthread_rwlock_init ();
13030   ;
13031   return 0;
13032 }
13033 _ACEOF
13034 for ac_lib in '' pthread; do
13035   if test -z "$ac_lib"; then
13036     ac_res="none required"
13037   else
13038     ac_res=-l$ac_lib
13039     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13040   fi
13041   rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048   (eval "$ac_link") 2>conftest.er1
13049   ac_status=$?
13050   grep -v '^ *+' conftest.er1 >conftest.err
13051   rm -f conftest.er1
13052   cat conftest.err >&5
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } &&
13055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056   { (case "(($ac_try" in
13057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058   *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061   (eval "$ac_try") 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; } &&
13065          { ac_try='test -s conftest$ac_exeext'
13066   { (case "(($ac_try" in
13067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068   *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071   (eval "$ac_try") 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); }; }; then
13075   ac_cv_search_pthread_rwlock_init=$ac_res
13076 else
13077   echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13079
13080
13081 fi
13082
13083 rm -f core conftest.err conftest.$ac_objext \
13084       conftest$ac_exeext
13085   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13086   break
13087 fi
13088 done
13089 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090   :
13091 else
13092   ac_cv_search_pthread_rwlock_init=no
13093 fi
13094 rm conftest.$ac_ext
13095 LIBS=$ac_func_search_save_LIBS
13096 fi
13097 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13098 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13099 ac_res=$ac_cv_search_pthread_rwlock_init
13100 if test "$ac_res" != no; then
13101   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13102
13103 cat >>confdefs.h <<\_ACEOF
13104 #define HAVE_PTHREAD_RWLOCK_INIT 1
13105 _ACEOF
13106
13107 fi
13108
13109   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13110 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13111 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   ac_func_search_save_LIBS=$LIBS
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h.  */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h.  */
13121
13122 /* Override any GCC internal prototype to avoid an error.
13123    Use char because int might match the return type of a GCC
13124    builtin and then its argument prototype would still apply.  */
13125 #ifdef __cplusplus
13126 extern "C"
13127 #endif
13128 char pthread_getspecific ();
13129 int
13130 main ()
13131 {
13132 return pthread_getspecific ();
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 for ac_lib in '' pthread; do
13138   if test -z "$ac_lib"; then
13139     ac_res="none required"
13140   else
13141     ac_res=-l$ac_lib
13142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13143   fi
13144   rm -f conftest.$ac_objext conftest$ac_exeext
13145 if { (ac_try="$ac_link"
13146 case "(($ac_try" in
13147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148   *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151   (eval "$ac_link") 2>conftest.er1
13152   ac_status=$?
13153   grep -v '^ *+' conftest.er1 >conftest.err
13154   rm -f conftest.er1
13155   cat conftest.err >&5
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } &&
13158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13159   { (case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_try") 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; } &&
13168          { ac_try='test -s conftest$ac_exeext'
13169   { (case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_try") 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; }; then
13178   ac_cv_search_pthread_getspecific=$ac_res
13179 else
13180   echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183
13184 fi
13185
13186 rm -f core conftest.err conftest.$ac_objext \
13187       conftest$ac_exeext
13188   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13189   break
13190 fi
13191 done
13192 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193   :
13194 else
13195   ac_cv_search_pthread_getspecific=no
13196 fi
13197 rm conftest.$ac_ext
13198 LIBS=$ac_func_search_save_LIBS
13199 fi
13200 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13201 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13202 ac_res=$ac_cv_search_pthread_getspecific
13203 if test "$ac_res" != no; then
13204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13205
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_PTHREAD_GETSPECIFIC 1
13208 _ACEOF
13209
13210 fi
13211
13212 fi
13213
13214
13215 # Check whether --with-udis86 was given.
13216 if test "${with_udis86+set}" = set; then
13217   withval=$with_udis86;
13218       USE_UDIS86=1
13219
13220       case "$withval" in
13221         /usr/lib|yes) ;;
13222         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13223       esac
13224
13225 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13226 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13227 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13228   echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230   ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-ludis86  $LIBS"
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240    Use char because int might match the return type of a GCC
13241    builtin and then its argument prototype would still apply.  */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char ud_init ();
13246 int
13247 main ()
13248 {
13249 return ud_init ();
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258   *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261   (eval "$ac_link") 2>conftest.er1
13262   ac_status=$?
13263   grep -v '^ *+' conftest.er1 >conftest.err
13264   rm -f conftest.er1
13265   cat conftest.err >&5
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); } &&
13268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269   { (case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274   (eval "$ac_try") 2>&5
13275   ac_status=$?
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); }; } &&
13278          { ac_try='test -s conftest$ac_exeext'
13279   { (case "(($ac_try" in
13280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281   *) ac_try_echo=$ac_try;;
13282 esac
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284   (eval "$ac_try") 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); }; }; then
13288   ac_cv_lib_udis86_ud_init=yes
13289 else
13290   echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293         ac_cv_lib_udis86_ud_init=no
13294 fi
13295
13296 rm -f core conftest.err conftest.$ac_objext \
13297       conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13299 fi
13300 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13301 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13302 if test $ac_cv_lib_udis86_ud_init = yes; then
13303   cat >>confdefs.h <<_ACEOF
13304 #define HAVE_LIBUDIS86 1
13305 _ACEOF
13306
13307   LIBS="-ludis86 $LIBS"
13308
13309 else
13310
13311         echo "Error! You need to have libudis86 around."
13312         exit -1
13313
13314 fi
13315
13316
13317 else
13318   USE_UDIS86=0
13319
13320 fi
13321
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define USE_UDIS86 $USE_UDIS86
13325 _ACEOF
13326
13327
13328
13329 # Check whether --with-oprofile was given.
13330 if test "${with_oprofile+set}" = set; then
13331   withval=$with_oprofile;
13332       USE_OPROFILE=1
13333
13334       case "$withval" in
13335         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13336         no) llvm_cv_oppath=
13337             USE_OPROFILE=0
13338  ;;
13339         *) llvm_cv_oppath="${withval}/lib/oprofile"
13340            CPPFLAGS="-I${withval}/include";;
13341       esac
13342       if test -n "$llvm_cv_oppath" ; then
13343         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13344                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13345 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13346 if test "${ac_cv_search_bfd_init+set}" = set; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349   ac_func_search_save_LIBS=$LIBS
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h.  */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h.  */
13356
13357 /* Override any GCC internal prototype to avoid an error.
13358    Use char because int might match the return type of a GCC
13359    builtin and then its argument prototype would still apply.  */
13360 #ifdef __cplusplus
13361 extern "C"
13362 #endif
13363 char bfd_init ();
13364 int
13365 main ()
13366 {
13367 return bfd_init ();
13368   ;
13369   return 0;
13370 }
13371 _ACEOF
13372 for ac_lib in '' bfd; do
13373   if test -z "$ac_lib"; then
13374     ac_res="none required"
13375   else
13376     ac_res=-l$ac_lib
13377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13378   fi
13379   rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383   *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386   (eval "$ac_link") 2>conftest.er1
13387   ac_status=$?
13388   grep -v '^ *+' conftest.er1 >conftest.err
13389   rm -f conftest.er1
13390   cat conftest.err >&5
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } &&
13393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394   { (case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_try") 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; } &&
13403          { ac_try='test -s conftest$ac_exeext'
13404   { (case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_try") 2>&5
13410   ac_status=$?
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); }; }; then
13413   ac_cv_search_bfd_init=$ac_res
13414 else
13415   echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418
13419 fi
13420
13421 rm -f core conftest.err conftest.$ac_objext \
13422       conftest$ac_exeext
13423   if test "${ac_cv_search_bfd_init+set}" = set; then
13424   break
13425 fi
13426 done
13427 if test "${ac_cv_search_bfd_init+set}" = set; then
13428   :
13429 else
13430   ac_cv_search_bfd_init=no
13431 fi
13432 rm conftest.$ac_ext
13433 LIBS=$ac_func_search_save_LIBS
13434 fi
13435 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13436 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13437 ac_res=$ac_cv_search_bfd_init
13438 if test "$ac_res" != no; then
13439   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13440
13441 fi
13442
13443         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13444 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13445 if test "${ac_cv_search_op_open_agent+set}" = set; then
13446   echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448   ac_func_search_save_LIBS=$LIBS
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h.  */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h.  */
13455
13456 /* Override any GCC internal prototype to avoid an error.
13457    Use char because int might match the return type of a GCC
13458    builtin and then its argument prototype would still apply.  */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char op_open_agent ();
13463 int
13464 main ()
13465 {
13466 return op_open_agent ();
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 for ac_lib in '' opagent; do
13472   if test -z "$ac_lib"; then
13473     ac_res="none required"
13474   else
13475     ac_res=-l$ac_lib
13476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13477   fi
13478   rm -f conftest.$ac_objext conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482   *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485   (eval "$ac_link") 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493   { (case "(($ac_try" in
13494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495   *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498   (eval "$ac_try") 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; } &&
13502          { ac_try='test -s conftest$ac_exeext'
13503   { (case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_try") 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   ac_cv_search_op_open_agent=$ac_res
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517
13518 fi
13519
13520 rm -f core conftest.err conftest.$ac_objext \
13521       conftest$ac_exeext
13522   if test "${ac_cv_search_op_open_agent+set}" = set; then
13523   break
13524 fi
13525 done
13526 if test "${ac_cv_search_op_open_agent+set}" = set; then
13527   :
13528 else
13529   ac_cv_search_op_open_agent=no
13530 fi
13531 rm conftest.$ac_ext
13532 LIBS=$ac_func_search_save_LIBS
13533 fi
13534 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13535 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13536 ac_res=$ac_cv_search_op_open_agent
13537 if test "$ac_res" != no; then
13538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13539
13540 else
13541
13542           echo "Error! You need to have libopagent around."
13543           exit -1
13544
13545 fi
13546
13547         if test "${ac_cv_header_opagent_h+set}" = set; then
13548   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13549 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13550 if test "${ac_cv_header_opagent_h+set}" = set; then
13551   echo $ECHO_N "(cached) $ECHO_C" >&6
13552 fi
13553 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13554 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13555 else
13556   # Is the header compilable?
13557 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13558 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h.  */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h.  */
13565 $ac_includes_default
13566 #include <opagent.h>
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575   (eval "$ac_compile") 2>conftest.er1
13576   ac_status=$?
13577   grep -v '^ *+' conftest.er1 >conftest.err
13578   rm -f conftest.er1
13579   cat conftest.err >&5
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); } &&
13582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13583   { (case "(($ac_try" in
13584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585   *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588   (eval "$ac_try") 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; } &&
13592          { ac_try='test -s conftest.$ac_objext'
13593   { (case "(($ac_try" in
13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595   *) ac_try_echo=$ac_try;;
13596 esac
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598   (eval "$ac_try") 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; }; then
13602   ac_header_compiler=yes
13603 else
13604   echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13606
13607         ac_header_compiler=no
13608 fi
13609
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13612 echo "${ECHO_T}$ac_header_compiler" >&6; }
13613
13614 # Is the header present?
13615 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13616 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 #include <opagent.h>
13624 _ACEOF
13625 if { (ac_try="$ac_cpp conftest.$ac_ext"
13626 case "(($ac_try" in
13627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628   *) ac_try_echo=$ac_try;;
13629 esac
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13632   ac_status=$?
13633   grep -v '^ *+' conftest.er1 >conftest.err
13634   rm -f conftest.er1
13635   cat conftest.err >&5
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } >/dev/null; then
13638   if test -s conftest.err; then
13639     ac_cpp_err=$ac_c_preproc_warn_flag
13640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13641   else
13642     ac_cpp_err=
13643   fi
13644 else
13645   ac_cpp_err=yes
13646 fi
13647 if test -z "$ac_cpp_err"; then
13648   ac_header_preproc=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653   ac_header_preproc=no
13654 fi
13655
13656 rm -f conftest.err conftest.$ac_ext
13657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13658 echo "${ECHO_T}$ac_header_preproc" >&6; }
13659
13660 # So?  What about this header?
13661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13662   yes:no: )
13663     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13664 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13665     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13666 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13667     ac_header_preproc=yes
13668     ;;
13669   no:yes:* )
13670     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13671 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13672     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13673 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13674     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13675 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13676     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13677 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13678     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13679 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13680     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13681 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13682     ( cat <<\_ASBOX
13683 ## ----------------------------------- ##
13684 ## Report this to llvmbugs@cs.uiuc.edu ##
13685 ## ----------------------------------- ##
13686 _ASBOX
13687      ) | sed "s/^/$as_me: WARNING:     /" >&2
13688     ;;
13689 esac
13690 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13691 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13692 if test "${ac_cv_header_opagent_h+set}" = set; then
13693   echo $ECHO_N "(cached) $ECHO_C" >&6
13694 else
13695   ac_cv_header_opagent_h=$ac_header_preproc
13696 fi
13697 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13698 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13699
13700 fi
13701 if test $ac_cv_header_opagent_h = yes; then
13702   :
13703 else
13704
13705           echo "Error! You need to have opagent.h around."
13706           exit -1
13707
13708 fi
13709
13710
13711       fi
13712
13713 else
13714
13715       USE_OPROFILE=0
13716
13717
13718 fi
13719
13720
13721 cat >>confdefs.h <<_ACEOF
13722 #define USE_OPROFILE $USE_OPROFILE
13723 _ACEOF
13724
13725
13726
13727
13728
13729
13730
13731
13732 ac_header_dirent=no
13733 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13734   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13735 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13736 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13738   echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740   cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746 #include <sys/types.h>
13747 #include <$ac_hdr>
13748
13749 int
13750 main ()
13751 {
13752 if ((DIR *) 0)
13753 return 0;
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 rm -f conftest.$ac_objext
13759 if { (ac_try="$ac_compile"
13760 case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_compile") 2>conftest.er1
13766   ac_status=$?
13767   grep -v '^ *+' conftest.er1 >conftest.err
13768   rm -f conftest.er1
13769   cat conftest.err >&5
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } &&
13772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13773   { (case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778   (eval "$ac_try") 2>&5
13779   ac_status=$?
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); }; } &&
13782          { ac_try='test -s conftest.$ac_objext'
13783   { (case "(($ac_try" in
13784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785   *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788   (eval "$ac_try") 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }; then
13792   eval "$as_ac_Header=yes"
13793 else
13794   echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13796
13797         eval "$as_ac_Header=no"
13798 fi
13799
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 fi
13802 ac_res=`eval echo '${'$as_ac_Header'}'`
13803                { echo "$as_me:$LINENO: result: $ac_res" >&5
13804 echo "${ECHO_T}$ac_res" >&6; }
13805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13806   cat >>confdefs.h <<_ACEOF
13807 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13808 _ACEOF
13809
13810 ac_header_dirent=$ac_hdr; break
13811 fi
13812
13813 done
13814 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13815 if test $ac_header_dirent = dirent.h; then
13816   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13817 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13818 if test "${ac_cv_search_opendir+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   ac_func_search_save_LIBS=$LIBS
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828
13829 /* Override any GCC internal prototype to avoid an error.
13830    Use char because int might match the return type of a GCC
13831    builtin and then its argument prototype would still apply.  */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 char opendir ();
13836 int
13837 main ()
13838 {
13839 return opendir ();
13840   ;
13841   return 0;
13842 }
13843 _ACEOF
13844 for ac_lib in '' dir; do
13845   if test -z "$ac_lib"; then
13846     ac_res="none required"
13847   else
13848     ac_res=-l$ac_lib
13849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13850   fi
13851   rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (ac_try="$ac_link"
13853 case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_link") 2>conftest.er1
13859   ac_status=$?
13860   grep -v '^ *+' conftest.er1 >conftest.err
13861   rm -f conftest.er1
13862   cat conftest.err >&5
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); } &&
13865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13866   { (case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_try") 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; } &&
13875          { ac_try='test -s conftest$ac_exeext'
13876   { (case "(($ac_try" in
13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878   *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881   (eval "$ac_try") 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885   ac_cv_search_opendir=$ac_res
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890
13891 fi
13892
13893 rm -f core conftest.err conftest.$ac_objext \
13894       conftest$ac_exeext
13895   if test "${ac_cv_search_opendir+set}" = set; then
13896   break
13897 fi
13898 done
13899 if test "${ac_cv_search_opendir+set}" = set; then
13900   :
13901 else
13902   ac_cv_search_opendir=no
13903 fi
13904 rm conftest.$ac_ext
13905 LIBS=$ac_func_search_save_LIBS
13906 fi
13907 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13908 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13909 ac_res=$ac_cv_search_opendir
13910 if test "$ac_res" != no; then
13911   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13912
13913 fi
13914
13915 else
13916   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13917 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13918 if test "${ac_cv_search_opendir+set}" = set; then
13919   echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921   ac_func_search_save_LIBS=$LIBS
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928
13929 /* Override any GCC internal prototype to avoid an error.
13930    Use char because int might match the return type of a GCC
13931    builtin and then its argument prototype would still apply.  */
13932 #ifdef __cplusplus
13933 extern "C"
13934 #endif
13935 char opendir ();
13936 int
13937 main ()
13938 {
13939 return opendir ();
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 for ac_lib in '' x; do
13945   if test -z "$ac_lib"; then
13946     ac_res="none required"
13947   else
13948     ac_res=-l$ac_lib
13949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13950   fi
13951   rm -f conftest.$ac_objext conftest$ac_exeext
13952 if { (ac_try="$ac_link"
13953 case "(($ac_try" in
13954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955   *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958   (eval "$ac_link") 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966   { (case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971   (eval "$ac_try") 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; } &&
13975          { ac_try='test -s conftest$ac_exeext'
13976   { (case "(($ac_try" in
13977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978   *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981   (eval "$ac_try") 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; }; then
13985   ac_cv_search_opendir=$ac_res
13986 else
13987   echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990
13991 fi
13992
13993 rm -f core conftest.err conftest.$ac_objext \
13994       conftest$ac_exeext
13995   if test "${ac_cv_search_opendir+set}" = set; then
13996   break
13997 fi
13998 done
13999 if test "${ac_cv_search_opendir+set}" = set; then
14000   :
14001 else
14002   ac_cv_search_opendir=no
14003 fi
14004 rm conftest.$ac_ext
14005 LIBS=$ac_func_search_save_LIBS
14006 fi
14007 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14008 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14009 ac_res=$ac_cv_search_opendir
14010 if test "$ac_res" != no; then
14011   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14012
14013 fi
14014
14015 fi
14016
14017 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14018 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14019 if test "${ac_cv_header_mmap_anon+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022    ac_ext=c
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
14028   cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034 #include <sys/mman.h>
14035 #include <unistd.h>
14036 #include <fcntl.h>
14037 int
14038 main ()
14039 {
14040 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 rm -f conftest.$ac_objext
14046 if { (ac_try="$ac_compile"
14047 case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_compile") 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } &&
14059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060   { (case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_try") 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; } &&
14069          { ac_try='test -s conftest.$ac_objext'
14070   { (case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075   (eval "$ac_try") 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; }; then
14079   ac_cv_header_mmap_anon=yes
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084         ac_cv_header_mmap_anon=no
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088   ac_ext=c
14089 ac_cpp='$CPP $CPPFLAGS'
14090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14093
14094
14095 fi
14096 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14097 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14098 if test "$ac_cv_header_mmap_anon" = yes; then
14099
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_MMAP_ANONYMOUS 1
14102 _ACEOF
14103
14104 fi
14105
14106 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14107 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14108 if test "${ac_cv_header_stat_broken+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 #include <sys/types.h>
14118 #include <sys/stat.h>
14119
14120 #if defined S_ISBLK && defined S_IFDIR
14121 # if S_ISBLK (S_IFDIR)
14122 You lose.
14123 # endif
14124 #endif
14125
14126 #if defined S_ISBLK && defined S_IFCHR
14127 # if S_ISBLK (S_IFCHR)
14128 You lose.
14129 # endif
14130 #endif
14131
14132 #if defined S_ISLNK && defined S_IFREG
14133 # if S_ISLNK (S_IFREG)
14134 You lose.
14135 # endif
14136 #endif
14137
14138 #if defined S_ISSOCK && defined S_IFREG
14139 # if S_ISSOCK (S_IFREG)
14140 You lose.
14141 # endif
14142 #endif
14143
14144 _ACEOF
14145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14146   $EGREP "You lose" >/dev/null 2>&1; then
14147   ac_cv_header_stat_broken=yes
14148 else
14149   ac_cv_header_stat_broken=no
14150 fi
14151 rm -f conftest*
14152
14153 fi
14154 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14155 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14156 if test $ac_cv_header_stat_broken = yes; then
14157
14158 cat >>confdefs.h <<\_ACEOF
14159 #define STAT_MACROS_BROKEN 1
14160 _ACEOF
14161
14162 fi
14163
14164 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14165 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14166 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h.  */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h.  */
14175 #include <sys/types.h>
14176 #include <sys/wait.h>
14177 #ifndef WEXITSTATUS
14178 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14179 #endif
14180 #ifndef WIFEXITED
14181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14182 #endif
14183
14184 int
14185 main ()
14186 {
14187   int s;
14188   wait (&s);
14189   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext
14195 if { (ac_try="$ac_compile"
14196 case "(($ac_try" in
14197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198   *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201   (eval "$ac_compile") 2>conftest.er1
14202   ac_status=$?
14203   grep -v '^ *+' conftest.er1 >conftest.err
14204   rm -f conftest.er1
14205   cat conftest.err >&5
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209   { (case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_try") 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; } &&
14218          { ac_try='test -s conftest.$ac_objext'
14219   { (case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_try") 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; }; then
14228   ac_cv_header_sys_wait_h=yes
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14232
14233         ac_cv_header_sys_wait_h=no
14234 fi
14235
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 fi
14238 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14239 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14240 if test $ac_cv_header_sys_wait_h = yes; then
14241
14242 cat >>confdefs.h <<\_ACEOF
14243 #define HAVE_SYS_WAIT_H 1
14244 _ACEOF
14245
14246 fi
14247
14248 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14249 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14250 if test "${ac_cv_header_time+set}" = set; then
14251   echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253   cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h.  */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h.  */
14259 #include <sys/types.h>
14260 #include <sys/time.h>
14261 #include <time.h>
14262
14263 int
14264 main ()
14265 {
14266 if ((struct tm *) 0)
14267 return 0;
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext
14273 if { (ac_try="$ac_compile"
14274 case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_compile") 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } &&
14286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14287   { (case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292   (eval "$ac_try") 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); }; } &&
14296          { ac_try='test -s conftest.$ac_objext'
14297   { (case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_try") 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_cv_header_time=yes
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311         ac_cv_header_time=no
14312 fi
14313
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 fi
14316 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14317 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14318 if test $ac_cv_header_time = yes; then
14319
14320 cat >>confdefs.h <<\_ACEOF
14321 #define TIME_WITH_SYS_TIME 1
14322 _ACEOF
14323
14324 fi
14325
14326
14327
14328
14329
14330
14331
14332
14333 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14334 do
14335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14340   echo $ECHO_N "(cached) $ECHO_C" >&6
14341 fi
14342 ac_res=`eval echo '${'$as_ac_Header'}'`
14343                { echo "$as_me:$LINENO: result: $ac_res" >&5
14344 echo "${ECHO_T}$ac_res" >&6; }
14345 else
14346   # Is the header compilable?
14347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14349 cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 $ac_includes_default
14356 #include <$ac_header>
14357 _ACEOF
14358 rm -f conftest.$ac_objext
14359 if { (ac_try="$ac_compile"
14360 case "(($ac_try" in
14361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362   *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365   (eval "$ac_compile") 2>conftest.er1
14366   ac_status=$?
14367   grep -v '^ *+' conftest.er1 >conftest.err
14368   rm -f conftest.er1
14369   cat conftest.err >&5
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); } &&
14372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14373   { (case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378   (eval "$ac_try") 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; } &&
14382          { ac_try='test -s conftest.$ac_objext'
14383   { (case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_try") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; }; then
14392   ac_header_compiler=yes
14393 else
14394   echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397         ac_header_compiler=no
14398 fi
14399
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14402 echo "${ECHO_T}$ac_header_compiler" >&6; }
14403
14404 # Is the header present?
14405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14407 cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 #include <$ac_header>
14414 _ACEOF
14415 if { (ac_try="$ac_cpp conftest.$ac_ext"
14416 case "(($ac_try" in
14417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418   *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14422   ac_status=$?
14423   grep -v '^ *+' conftest.er1 >conftest.err
14424   rm -f conftest.er1
14425   cat conftest.err >&5
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); } >/dev/null; then
14428   if test -s conftest.err; then
14429     ac_cpp_err=$ac_c_preproc_warn_flag
14430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14431   else
14432     ac_cpp_err=
14433   fi
14434 else
14435   ac_cpp_err=yes
14436 fi
14437 if test -z "$ac_cpp_err"; then
14438   ac_header_preproc=yes
14439 else
14440   echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443   ac_header_preproc=no
14444 fi
14445
14446 rm -f conftest.err conftest.$ac_ext
14447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448 echo "${ECHO_T}$ac_header_preproc" >&6; }
14449
14450 # So?  What about this header?
14451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14452   yes:no: )
14453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14457     ac_header_preproc=yes
14458     ;;
14459   no:yes:* )
14460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14462     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14463 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14464     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14466     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14467 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14470     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14472     ( cat <<\_ASBOX
14473 ## ----------------------------------- ##
14474 ## Report this to llvmbugs@cs.uiuc.edu ##
14475 ## ----------------------------------- ##
14476 _ASBOX
14477      ) | sed "s/^/$as_me: WARNING:     /" >&2
14478     ;;
14479 esac
14480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   eval "$as_ac_Header=\$ac_header_preproc"
14486 fi
14487 ac_res=`eval echo '${'$as_ac_Header'}'`
14488                { echo "$as_me:$LINENO: result: $ac_res" >&5
14489 echo "${ECHO_T}$ac_res" >&6; }
14490
14491 fi
14492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14493   cat >>confdefs.h <<_ACEOF
14494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14495 _ACEOF
14496
14497 fi
14498
14499 done
14500
14501
14502
14503
14504
14505
14506
14507 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14508 do
14509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 fi
14516 ac_res=`eval echo '${'$as_ac_Header'}'`
14517                { echo "$as_me:$LINENO: result: $ac_res" >&5
14518 echo "${ECHO_T}$ac_res" >&6; }
14519 else
14520   # Is the header compilable?
14521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14523 cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h.  */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h.  */
14529 $ac_includes_default
14530 #include <$ac_header>
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_compile") 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547   { (case "(($ac_try" in
14548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549   *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552   (eval "$ac_try") 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; } &&
14556          { ac_try='test -s conftest.$ac_objext'
14557   { (case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_try") 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_header_compiler=yes
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571         ac_header_compiler=no
14572 fi
14573
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14576 echo "${ECHO_T}$ac_header_compiler" >&6; }
14577
14578 # Is the header present?
14579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587 #include <$ac_header>
14588 _ACEOF
14589 if { (ac_try="$ac_cpp conftest.$ac_ext"
14590 case "(($ac_try" in
14591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592   *) ac_try_echo=$ac_try;;
14593 esac
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14596   ac_status=$?
14597   grep -v '^ *+' conftest.er1 >conftest.err
14598   rm -f conftest.er1
14599   cat conftest.err >&5
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } >/dev/null; then
14602   if test -s conftest.err; then
14603     ac_cpp_err=$ac_c_preproc_warn_flag
14604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14605   else
14606     ac_cpp_err=
14607   fi
14608 else
14609   ac_cpp_err=yes
14610 fi
14611 if test -z "$ac_cpp_err"; then
14612   ac_header_preproc=yes
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617   ac_header_preproc=no
14618 fi
14619
14620 rm -f conftest.err conftest.$ac_ext
14621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14622 echo "${ECHO_T}$ac_header_preproc" >&6; }
14623
14624 # So?  What about this header?
14625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14626   yes:no: )
14627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14631     ac_header_preproc=yes
14632     ;;
14633   no:yes:* )
14634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14646     ( cat <<\_ASBOX
14647 ## ----------------------------------- ##
14648 ## Report this to llvmbugs@cs.uiuc.edu ##
14649 ## ----------------------------------- ##
14650 _ASBOX
14651      ) | sed "s/^/$as_me: WARNING:     /" >&2
14652     ;;
14653 esac
14654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14657   echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659   eval "$as_ac_Header=\$ac_header_preproc"
14660 fi
14661 ac_res=`eval echo '${'$as_ac_Header'}'`
14662                { echo "$as_me:$LINENO: result: $ac_res" >&5
14663 echo "${ECHO_T}$ac_res" >&6; }
14664
14665 fi
14666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14667   cat >>confdefs.h <<_ACEOF
14668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14669 _ACEOF
14670
14671 fi
14672
14673 done
14674
14675
14676
14677 for ac_header in utime.h windows.h
14678 do
14679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14681   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 fi
14686 ac_res=`eval echo '${'$as_ac_Header'}'`
14687                { echo "$as_me:$LINENO: result: $ac_res" >&5
14688 echo "${ECHO_T}$ac_res" >&6; }
14689 else
14690   # Is the header compilable?
14691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h.  */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h.  */
14699 $ac_includes_default
14700 #include <$ac_header>
14701 _ACEOF
14702 rm -f conftest.$ac_objext
14703 if { (ac_try="$ac_compile"
14704 case "(($ac_try" in
14705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706   *) ac_try_echo=$ac_try;;
14707 esac
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709   (eval "$ac_compile") 2>conftest.er1
14710   ac_status=$?
14711   grep -v '^ *+' conftest.er1 >conftest.err
14712   rm -f conftest.er1
14713   cat conftest.err >&5
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } &&
14716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14717   { (case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_try") 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; } &&
14726          { ac_try='test -s conftest.$ac_objext'
14727   { (case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732   (eval "$ac_try") 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; }; then
14736   ac_header_compiler=yes
14737 else
14738   echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741         ac_header_compiler=no
14742 fi
14743
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14746 echo "${ECHO_T}$ac_header_compiler" >&6; }
14747
14748 # Is the header present?
14749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14751 cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h.  */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h.  */
14757 #include <$ac_header>
14758 _ACEOF
14759 if { (ac_try="$ac_cpp conftest.$ac_ext"
14760 case "(($ac_try" in
14761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762   *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14766   ac_status=$?
14767   grep -v '^ *+' conftest.er1 >conftest.err
14768   rm -f conftest.er1
14769   cat conftest.err >&5
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); } >/dev/null; then
14772   if test -s conftest.err; then
14773     ac_cpp_err=$ac_c_preproc_warn_flag
14774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14775   else
14776     ac_cpp_err=
14777   fi
14778 else
14779   ac_cpp_err=yes
14780 fi
14781 if test -z "$ac_cpp_err"; then
14782   ac_header_preproc=yes
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787   ac_header_preproc=no
14788 fi
14789
14790 rm -f conftest.err conftest.$ac_ext
14791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14792 echo "${ECHO_T}$ac_header_preproc" >&6; }
14793
14794 # So?  What about this header?
14795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14796   yes:no: )
14797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14801     ac_header_preproc=yes
14802     ;;
14803   no:yes:* )
14804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14816     ( cat <<\_ASBOX
14817 ## ----------------------------------- ##
14818 ## Report this to llvmbugs@cs.uiuc.edu ##
14819 ## ----------------------------------- ##
14820 _ASBOX
14821      ) | sed "s/^/$as_me: WARNING:     /" >&2
14822     ;;
14823 esac
14824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14827   echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829   eval "$as_ac_Header=\$ac_header_preproc"
14830 fi
14831 ac_res=`eval echo '${'$as_ac_Header'}'`
14832                { echo "$as_me:$LINENO: result: $ac_res" >&5
14833 echo "${ECHO_T}$ac_res" >&6; }
14834
14835 fi
14836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14837   cat >>confdefs.h <<_ACEOF
14838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14839 _ACEOF
14840
14841 fi
14842
14843 done
14844
14845
14846
14847
14848
14849
14850 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14851 do
14852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857   echo $ECHO_N "(cached) $ECHO_C" >&6
14858 fi
14859 ac_res=`eval echo '${'$as_ac_Header'}'`
14860                { echo "$as_me:$LINENO: result: $ac_res" >&5
14861 echo "${ECHO_T}$ac_res" >&6; }
14862 else
14863   # Is the header compilable?
14864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h.  */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h.  */
14872 $ac_includes_default
14873 #include <$ac_header>
14874 _ACEOF
14875 rm -f conftest.$ac_objext
14876 if { (ac_try="$ac_compile"
14877 case "(($ac_try" in
14878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879   *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882   (eval "$ac_compile") 2>conftest.er1
14883   ac_status=$?
14884   grep -v '^ *+' conftest.er1 >conftest.err
14885   rm -f conftest.er1
14886   cat conftest.err >&5
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); } &&
14889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14890   { (case "(($ac_try" in
14891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892   *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895   (eval "$ac_try") 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); }; } &&
14899          { ac_try='test -s conftest.$ac_objext'
14900   { (case "(($ac_try" in
14901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902   *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905   (eval "$ac_try") 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); }; }; then
14909   ac_header_compiler=yes
14910 else
14911   echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914         ac_header_compiler=no
14915 fi
14916
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14919 echo "${ECHO_T}$ac_header_compiler" >&6; }
14920
14921 # Is the header present?
14922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930 #include <$ac_header>
14931 _ACEOF
14932 if { (ac_try="$ac_cpp conftest.$ac_ext"
14933 case "(($ac_try" in
14934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935   *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14939   ac_status=$?
14940   grep -v '^ *+' conftest.er1 >conftest.err
14941   rm -f conftest.er1
14942   cat conftest.err >&5
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } >/dev/null; then
14945   if test -s conftest.err; then
14946     ac_cpp_err=$ac_c_preproc_warn_flag
14947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14948   else
14949     ac_cpp_err=
14950   fi
14951 else
14952   ac_cpp_err=yes
14953 fi
14954 if test -z "$ac_cpp_err"; then
14955   ac_header_preproc=yes
14956 else
14957   echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14959
14960   ac_header_preproc=no
14961 fi
14962
14963 rm -f conftest.err conftest.$ac_ext
14964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14965 echo "${ECHO_T}$ac_header_preproc" >&6; }
14966
14967 # So?  What about this header?
14968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14969   yes:no: )
14970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14974     ac_header_preproc=yes
14975     ;;
14976   no:yes:* )
14977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14989     ( cat <<\_ASBOX
14990 ## ----------------------------------- ##
14991 ## Report this to llvmbugs@cs.uiuc.edu ##
14992 ## ----------------------------------- ##
14993 _ASBOX
14994      ) | sed "s/^/$as_me: WARNING:     /" >&2
14995     ;;
14996 esac
14997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   eval "$as_ac_Header=\$ac_header_preproc"
15003 fi
15004 ac_res=`eval echo '${'$as_ac_Header'}'`
15005                { echo "$as_me:$LINENO: result: $ac_res" >&5
15006 echo "${ECHO_T}$ac_res" >&6; }
15007
15008 fi
15009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15010   cat >>confdefs.h <<_ACEOF
15011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15012 _ACEOF
15013
15014 fi
15015
15016 done
15017
15018
15019
15020
15021
15022 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15023 do
15024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 fi
15031 ac_res=`eval echo '${'$as_ac_Header'}'`
15032                { echo "$as_me:$LINENO: result: $ac_res" >&5
15033 echo "${ECHO_T}$ac_res" >&6; }
15034 else
15035   # Is the header compilable?
15036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044 $ac_includes_default
15045 #include <$ac_header>
15046 _ACEOF
15047 rm -f conftest.$ac_objext
15048 if { (ac_try="$ac_compile"
15049 case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_compile") 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062   { (case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_try") 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; } &&
15071          { ac_try='test -s conftest.$ac_objext'
15072   { (case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_try") 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; }; then
15081   ac_header_compiler=yes
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086         ac_header_compiler=no
15087 fi
15088
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15091 echo "${ECHO_T}$ac_header_compiler" >&6; }
15092
15093 # Is the header present?
15094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h.  */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h.  */
15102 #include <$ac_header>
15103 _ACEOF
15104 if { (ac_try="$ac_cpp conftest.$ac_ext"
15105 case "(($ac_try" in
15106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107   *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15111   ac_status=$?
15112   grep -v '^ *+' conftest.er1 >conftest.err
15113   rm -f conftest.er1
15114   cat conftest.err >&5
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } >/dev/null; then
15117   if test -s conftest.err; then
15118     ac_cpp_err=$ac_c_preproc_warn_flag
15119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15120   else
15121     ac_cpp_err=
15122   fi
15123 else
15124   ac_cpp_err=yes
15125 fi
15126 if test -z "$ac_cpp_err"; then
15127   ac_header_preproc=yes
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132   ac_header_preproc=no
15133 fi
15134
15135 rm -f conftest.err conftest.$ac_ext
15136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15137 echo "${ECHO_T}$ac_header_preproc" >&6; }
15138
15139 # So?  What about this header?
15140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15141   yes:no: )
15142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15146     ac_header_preproc=yes
15147     ;;
15148   no:yes:* )
15149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15161     ( cat <<\_ASBOX
15162 ## ----------------------------------- ##
15163 ## Report this to llvmbugs@cs.uiuc.edu ##
15164 ## ----------------------------------- ##
15165 _ASBOX
15166      ) | sed "s/^/$as_me: WARNING:     /" >&2
15167     ;;
15168 esac
15169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172   echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174   eval "$as_ac_Header=\$ac_header_preproc"
15175 fi
15176 ac_res=`eval echo '${'$as_ac_Header'}'`
15177                { echo "$as_me:$LINENO: result: $ac_res" >&5
15178 echo "${ECHO_T}$ac_res" >&6; }
15179
15180 fi
15181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15182   cat >>confdefs.h <<_ACEOF
15183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15184 _ACEOF
15185
15186 fi
15187
15188 done
15189
15190
15191 for ac_header in valgrind/valgrind.h
15192 do
15193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 fi
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201                { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15203 else
15204   # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213 $ac_includes_default
15214 #include <$ac_header>
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_compile") 2>conftest.er1
15224   ac_status=$?
15225   grep -v '^ *+' conftest.er1 >conftest.err
15226   rm -f conftest.er1
15227   cat conftest.err >&5
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } &&
15230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15231   { (case "(($ac_try" in
15232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233   *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236   (eval "$ac_try") 2>&5
15237   ac_status=$?
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); }; } &&
15240          { ac_try='test -s conftest.$ac_objext'
15241   { (case "(($ac_try" in
15242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243   *) ac_try_echo=$ac_try;;
15244 esac
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246   (eval "$ac_try") 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   ac_header_compiler=yes
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255         ac_header_compiler=no
15256 fi
15257
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260 echo "${ECHO_T}$ac_header_compiler" >&6; }
15261
15262 # Is the header present?
15263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15271 #include <$ac_header>
15272 _ACEOF
15273 if { (ac_try="$ac_cpp conftest.$ac_ext"
15274 case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } >/dev/null; then
15286   if test -s conftest.err; then
15287     ac_cpp_err=$ac_c_preproc_warn_flag
15288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15289   else
15290     ac_cpp_err=
15291   fi
15292 else
15293   ac_cpp_err=yes
15294 fi
15295 if test -z "$ac_cpp_err"; then
15296   ac_header_preproc=yes
15297 else
15298   echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301   ac_header_preproc=no
15302 fi
15303
15304 rm -f conftest.err conftest.$ac_ext
15305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15306 echo "${ECHO_T}$ac_header_preproc" >&6; }
15307
15308 # So?  What about this header?
15309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15310   yes:no: )
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15315     ac_header_preproc=yes
15316     ;;
15317   no:yes:* )
15318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15330     ( cat <<\_ASBOX
15331 ## ----------------------------------- ##
15332 ## Report this to llvmbugs@cs.uiuc.edu ##
15333 ## ----------------------------------- ##
15334 _ASBOX
15335      ) | sed "s/^/$as_me: WARNING:     /" >&2
15336     ;;
15337 esac
15338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341   echo $ECHO_N "(cached) $ECHO_C" >&6
15342 else
15343   eval "$as_ac_Header=\$ac_header_preproc"
15344 fi
15345 ac_res=`eval echo '${'$as_ac_Header'}'`
15346                { echo "$as_me:$LINENO: result: $ac_res" >&5
15347 echo "${ECHO_T}$ac_res" >&6; }
15348
15349 fi
15350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351   cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15353 _ACEOF
15354
15355 fi
15356
15357 done
15358
15359
15360 for ac_header in fenv.h
15361 do
15362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15364   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367   echo $ECHO_N "(cached) $ECHO_C" >&6
15368 fi
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370                { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15372 else
15373   # Is the header compilable?
15374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 $ac_includes_default
15383 #include <$ac_header>
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (ac_try="$ac_compile"
15387 case "(($ac_try" in
15388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389   *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392   (eval "$ac_compile") 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } &&
15399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400   { (case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_try") 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; } &&
15409          { ac_try='test -s conftest.$ac_objext'
15410   { (case "(($ac_try" in
15411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412   *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415   (eval "$ac_try") 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   ac_header_compiler=yes
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424         ac_header_compiler=no
15425 fi
15426
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15429 echo "${ECHO_T}$ac_header_compiler" >&6; }
15430
15431 # Is the header present?
15432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15434 cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440 #include <$ac_header>
15441 _ACEOF
15442 if { (ac_try="$ac_cpp conftest.$ac_ext"
15443 case "(($ac_try" in
15444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445   *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15449   ac_status=$?
15450   grep -v '^ *+' conftest.er1 >conftest.err
15451   rm -f conftest.er1
15452   cat conftest.err >&5
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } >/dev/null; then
15455   if test -s conftest.err; then
15456     ac_cpp_err=$ac_c_preproc_warn_flag
15457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15458   else
15459     ac_cpp_err=
15460   fi
15461 else
15462   ac_cpp_err=yes
15463 fi
15464 if test -z "$ac_cpp_err"; then
15465   ac_header_preproc=yes
15466 else
15467   echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470   ac_header_preproc=no
15471 fi
15472
15473 rm -f conftest.err conftest.$ac_ext
15474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15475 echo "${ECHO_T}$ac_header_preproc" >&6; }
15476
15477 # So?  What about this header?
15478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15479   yes:no: )
15480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15484     ac_header_preproc=yes
15485     ;;
15486   no:yes:* )
15487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15499     ( cat <<\_ASBOX
15500 ## ----------------------------------- ##
15501 ## Report this to llvmbugs@cs.uiuc.edu ##
15502 ## ----------------------------------- ##
15503 _ASBOX
15504      ) | sed "s/^/$as_me: WARNING:     /" >&2
15505     ;;
15506 esac
15507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15510   echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512   eval "$as_ac_Header=\$ac_header_preproc"
15513 fi
15514 ac_res=`eval echo '${'$as_ac_Header'}'`
15515                { echo "$as_me:$LINENO: result: $ac_res" >&5
15516 echo "${ECHO_T}$ac_res" >&6; }
15517
15518 fi
15519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15520   cat >>confdefs.h <<_ACEOF
15521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15522 _ACEOF
15523
15524 fi
15525
15526 done
15527
15528 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15529
15530 for ac_header in pthread.h
15531 do
15532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15534   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15537   echo $ECHO_N "(cached) $ECHO_C" >&6
15538 fi
15539 ac_res=`eval echo '${'$as_ac_Header'}'`
15540                { echo "$as_me:$LINENO: result: $ac_res" >&5
15541 echo "${ECHO_T}$ac_res" >&6; }
15542 else
15543   # Is the header compilable?
15544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552 $ac_includes_default
15553 #include <$ac_header>
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (ac_try="$ac_compile"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_compile") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } &&
15569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570   { (case "(($ac_try" in
15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572   *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575   (eval "$ac_try") 2>&5
15576   ac_status=$?
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); }; } &&
15579          { ac_try='test -s conftest.$ac_objext'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589   ac_header_compiler=yes
15590 else
15591   echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594         ac_header_compiler=no
15595 fi
15596
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15599 echo "${ECHO_T}$ac_header_compiler" >&6; }
15600
15601 # Is the header present?
15602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15605 /* confdefs.h.  */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h.  */
15610 #include <$ac_header>
15611 _ACEOF
15612 if { (ac_try="$ac_cpp conftest.$ac_ext"
15613 case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } >/dev/null; then
15625   if test -s conftest.err; then
15626     ac_cpp_err=$ac_c_preproc_warn_flag
15627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15628   else
15629     ac_cpp_err=
15630   fi
15631 else
15632   ac_cpp_err=yes
15633 fi
15634 if test -z "$ac_cpp_err"; then
15635   ac_header_preproc=yes
15636 else
15637   echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640   ac_header_preproc=no
15641 fi
15642
15643 rm -f conftest.err conftest.$ac_ext
15644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15645 echo "${ECHO_T}$ac_header_preproc" >&6; }
15646
15647 # So?  What about this header?
15648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15649   yes:no: )
15650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15654     ac_header_preproc=yes
15655     ;;
15656   no:yes:* )
15657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15669     ( cat <<\_ASBOX
15670 ## ----------------------------------- ##
15671 ## Report this to llvmbugs@cs.uiuc.edu ##
15672 ## ----------------------------------- ##
15673 _ASBOX
15674      ) | sed "s/^/$as_me: WARNING:     /" >&2
15675     ;;
15676 esac
15677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15680   echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682   eval "$as_ac_Header=\$ac_header_preproc"
15683 fi
15684 ac_res=`eval echo '${'$as_ac_Header'}'`
15685                { echo "$as_me:$LINENO: result: $ac_res" >&5
15686 echo "${ECHO_T}$ac_res" >&6; }
15687
15688 fi
15689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15690   cat >>confdefs.h <<_ACEOF
15691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15692 _ACEOF
15693  HAVE_PTHREAD=1
15694
15695 else
15696   HAVE_PTHREAD=0
15697
15698 fi
15699
15700 done
15701
15702 else
15703   HAVE_PTHREAD=0
15704
15705 fi
15706
15707 if test "$llvm_cv_enable_libffi" = "yes" ; then
15708
15709
15710 for ac_header in ffi.h ffi/ffi.h
15711 do
15712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 fi
15719 ac_res=`eval echo '${'$as_ac_Header'}'`
15720                { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15722 else
15723   # Is the header compilable?
15724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732 $ac_includes_default
15733 #include <$ac_header>
15734 _ACEOF
15735 rm -f conftest.$ac_objext
15736 if { (ac_try="$ac_compile"
15737 case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_compile") 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } &&
15749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750   { (case "(($ac_try" in
15751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752   *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755   (eval "$ac_try") 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; } &&
15759          { ac_try='test -s conftest.$ac_objext'
15760   { (case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_try") 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   ac_header_compiler=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774         ac_header_compiler=no
15775 fi
15776
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6; }
15780
15781 # Is the header present?
15782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790 #include <$ac_header>
15791 _ACEOF
15792 if { (ac_try="$ac_cpp conftest.$ac_ext"
15793 case "(($ac_try" in
15794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795   *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } >/dev/null; then
15805   if test -s conftest.err; then
15806     ac_cpp_err=$ac_c_preproc_warn_flag
15807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15808   else
15809     ac_cpp_err=
15810   fi
15811 else
15812   ac_cpp_err=yes
15813 fi
15814 if test -z "$ac_cpp_err"; then
15815   ac_header_preproc=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820   ac_header_preproc=no
15821 fi
15822
15823 rm -f conftest.err conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6; }
15826
15827 # So?  What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829   yes:no: )
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834     ac_header_preproc=yes
15835     ;;
15836   no:yes:* )
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849     ( cat <<\_ASBOX
15850 ## ----------------------------------- ##
15851 ## Report this to llvmbugs@cs.uiuc.edu ##
15852 ## ----------------------------------- ##
15853 _ASBOX
15854      ) | sed "s/^/$as_me: WARNING:     /" >&2
15855     ;;
15856 esac
15857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   eval "$as_ac_Header=\$ac_header_preproc"
15863 fi
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865                { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15867
15868 fi
15869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15870   cat >>confdefs.h <<_ACEOF
15871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15872 _ACEOF
15873
15874 fi
15875
15876 done
15877
15878 fi
15879
15880
15881 for ac_header in CrashReporterClient.h
15882 do
15883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 fi
15890 ac_res=`eval echo '${'$as_ac_Header'}'`
15891                { echo "$as_me:$LINENO: result: $ac_res" >&5
15892 echo "${ECHO_T}$ac_res" >&6; }
15893 else
15894   # Is the header compilable?
15895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903 $ac_includes_default
15904 #include <$ac_header>
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (ac_try="$ac_compile"
15908 case "(($ac_try" in
15909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910   *) ac_try_echo=$ac_try;;
15911 esac
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913   (eval "$ac_compile") 2>conftest.er1
15914   ac_status=$?
15915   grep -v '^ *+' conftest.er1 >conftest.err
15916   rm -f conftest.er1
15917   cat conftest.err >&5
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } &&
15920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15921   { (case "(($ac_try" in
15922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923   *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926   (eval "$ac_try") 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest.$ac_objext'
15931   { (case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_try") 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   ac_header_compiler=yes
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945         ac_header_compiler=no
15946 fi
15947
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950 echo "${ECHO_T}$ac_header_compiler" >&6; }
15951
15952 # Is the header present?
15953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15955 cat >conftest.$ac_ext <<_ACEOF
15956 /* confdefs.h.  */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h.  */
15961 #include <$ac_header>
15962 _ACEOF
15963 if { (ac_try="$ac_cpp conftest.$ac_ext"
15964 case "(($ac_try" in
15965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966   *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15970   ac_status=$?
15971   grep -v '^ *+' conftest.er1 >conftest.err
15972   rm -f conftest.er1
15973   cat conftest.err >&5
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); } >/dev/null; then
15976   if test -s conftest.err; then
15977     ac_cpp_err=$ac_c_preproc_warn_flag
15978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979   else
15980     ac_cpp_err=
15981   fi
15982 else
15983   ac_cpp_err=yes
15984 fi
15985 if test -z "$ac_cpp_err"; then
15986   ac_header_preproc=yes
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991   ac_header_preproc=no
15992 fi
15993
15994 rm -f conftest.err conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996 echo "${ECHO_T}$ac_header_preproc" >&6; }
15997
15998 # So?  What about this header?
15999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16000   yes:no: )
16001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16005     ac_header_preproc=yes
16006     ;;
16007   no:yes:* )
16008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16020     ( cat <<\_ASBOX
16021 ## ----------------------------------- ##
16022 ## Report this to llvmbugs@cs.uiuc.edu ##
16023 ## ----------------------------------- ##
16024 _ASBOX
16025      ) | sed "s/^/$as_me: WARNING:     /" >&2
16026     ;;
16027 esac
16028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   eval "$as_ac_Header=\$ac_header_preproc"
16034 fi
16035 ac_res=`eval echo '${'$as_ac_Header'}'`
16036                { echo "$as_me:$LINENO: result: $ac_res" >&5
16037 echo "${ECHO_T}$ac_res" >&6; }
16038
16039 fi
16040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16041   cat >>confdefs.h <<_ACEOF
16042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16043 _ACEOF
16044
16045 fi
16046
16047 done
16048
16049
16050 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16051 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058 extern const char *__crashreporter_info__;
16059       int main() {
16060         __crashreporter_info__ = "test";
16061         return 0;
16062       }
16063
16064 _ACEOF
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (ac_try="$ac_link"
16067 case "(($ac_try" in
16068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069   *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072   (eval "$ac_link") 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } &&
16079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16080   { (case "(($ac_try" in
16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082   *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085   (eval "$ac_try") 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; } &&
16089          { ac_try='test -s conftest$ac_exeext'
16090   { (case "(($ac_try" in
16091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092   *) ac_try_echo=$ac_try;;
16093 esac
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095   (eval "$ac_try") 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); }; }; then
16099   { echo "$as_me:$LINENO: result: yes" >&5
16100 echo "${ECHO_T}yes" >&6; }
16101
16102 cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_CRASHREPORTER_INFO 1
16104 _ACEOF
16105
16106 else
16107   echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110         { echo "$as_me:$LINENO: result: no" >&5
16111 echo "${ECHO_T}no" >&6; }
16112
16113 cat >>confdefs.h <<\_ACEOF
16114 #define HAVE_CRASHREPORTER_INFO 0
16115 _ACEOF
16116
16117 fi
16118
16119 rm -f core conftest.err conftest.$ac_objext \
16120       conftest$ac_exeext conftest.$ac_ext
16121
16122
16123
16124
16125   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16126 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16127 if test "${ac_cv_huge_val_sanity+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130
16131     ac_ext=cpp
16132 ac_cpp='$CXXCPP $CPPFLAGS'
16133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16136
16137     ac_save_CXXFLAGS=$CXXFLAGS
16138     CXXFLAGS=-pedantic
16139     if test "$cross_compiling" = yes; then
16140   ac_cv_huge_val_sanity=yes
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 #include <math.h>
16149 int
16150 main ()
16151 {
16152 double x = HUGE_VAL; return x != x;
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest$ac_exeext
16158 if { (ac_try="$ac_link"
16159 case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164   (eval "$ac_link") 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16168   { (case "(($ac_try" in
16169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170   *) ac_try_echo=$ac_try;;
16171 esac
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173   (eval "$ac_try") 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; }; then
16177   ac_cv_huge_val_sanity=yes
16178 else
16179   echo "$as_me: program exited with status $ac_status" >&5
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ( exit $ac_status )
16184 ac_cv_huge_val_sanity=no
16185 fi
16186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16187 fi
16188
16189
16190     CXXFLAGS=$ac_save_CXXFLAGS
16191     ac_ext=c
16192 ac_cpp='$CPP $CPPFLAGS'
16193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16196
16197
16198 fi
16199 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16200 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16201   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16202
16203
16204 { echo "$as_me:$LINENO: checking for pid_t" >&5
16205 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16206 if test "${ac_cv_type_pid_t+set}" = set; then
16207   echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209   cat >conftest.$ac_ext <<_ACEOF
16210 /* confdefs.h.  */
16211 _ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h.  */
16215 $ac_includes_default
16216 typedef pid_t ac__type_new_;
16217 int
16218 main ()
16219 {
16220 if ((ac__type_new_ *) 0)
16221   return 0;
16222 if (sizeof (ac__type_new_))
16223   return 0;
16224   ;
16225   return 0;
16226 }
16227 _ACEOF
16228 rm -f conftest.$ac_objext
16229 if { (ac_try="$ac_compile"
16230 case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_compile") 2>conftest.er1
16236   ac_status=$?
16237   grep -v '^ *+' conftest.er1 >conftest.err
16238   rm -f conftest.er1
16239   cat conftest.err >&5
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); } &&
16242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16243   { (case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_try") 2>&5
16249   ac_status=$?
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); }; } &&
16252          { ac_try='test -s conftest.$ac_objext'
16253   { (case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_try") 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; }; then
16262   ac_cv_type_pid_t=yes
16263 else
16264   echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16266
16267         ac_cv_type_pid_t=no
16268 fi
16269
16270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 fi
16272 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16273 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16274 if test $ac_cv_type_pid_t = yes; then
16275   :
16276 else
16277
16278 cat >>confdefs.h <<_ACEOF
16279 #define pid_t int
16280 _ACEOF
16281
16282 fi
16283
16284 { echo "$as_me:$LINENO: checking for size_t" >&5
16285 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16286 if test "${ac_cv_type_size_t+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295 $ac_includes_default
16296 typedef size_t ac__type_new_;
16297 int
16298 main ()
16299 {
16300 if ((ac__type_new_ *) 0)
16301   return 0;
16302 if (sizeof (ac__type_new_))
16303   return 0;
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_compile") 2>conftest.er1
16316   ac_status=$?
16317   grep -v '^ *+' conftest.er1 >conftest.err
16318   rm -f conftest.er1
16319   cat conftest.err >&5
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } &&
16322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323   { (case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_try") 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (case "(($ac_try" in
16334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335   *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338   (eval "$ac_try") 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342   ac_cv_type_size_t=yes
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347         ac_cv_type_size_t=no
16348 fi
16349
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351 fi
16352 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16353 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16354 if test $ac_cv_type_size_t = yes; then
16355   :
16356 else
16357
16358 cat >>confdefs.h <<_ACEOF
16359 #define size_t unsigned int
16360 _ACEOF
16361
16362 fi
16363
16364
16365 cat >>confdefs.h <<_ACEOF
16366 #define RETSIGTYPE void
16367 _ACEOF
16368
16369 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16370 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16371 if test "${ac_cv_struct_tm+set}" = set; then
16372   echo $ECHO_N "(cached) $ECHO_C" >&6
16373 else
16374   cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h.  */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h.  */
16380 #include <sys/types.h>
16381 #include <time.h>
16382
16383 int
16384 main ()
16385 {
16386 struct tm *tp; tp->tm_sec;
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_compile") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } &&
16405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406   { (case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_try") 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (case "(($ac_try" in
16417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418   *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421   (eval "$ac_try") 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   ac_cv_struct_tm=time.h
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430         ac_cv_struct_tm=sys/time.h
16431 fi
16432
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 fi
16435 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16436 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16437 if test $ac_cv_struct_tm = sys/time.h; then
16438
16439 cat >>confdefs.h <<\_ACEOF
16440 #define TM_IN_SYS_TIME 1
16441 _ACEOF
16442
16443 fi
16444
16445 { echo "$as_me:$LINENO: checking for int64_t" >&5
16446 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16447 if test "${ac_cv_type_int64_t+set}" = set; then
16448   echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450   cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456 $ac_includes_default
16457 typedef int64_t ac__type_new_;
16458 int
16459 main ()
16460 {
16461 if ((ac__type_new_ *) 0)
16462   return 0;
16463 if (sizeof (ac__type_new_))
16464   return 0;
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 rm -f conftest.$ac_objext
16470 if { (ac_try="$ac_compile"
16471 case "(($ac_try" in
16472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473   *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476   (eval "$ac_compile") 2>conftest.er1
16477   ac_status=$?
16478   grep -v '^ *+' conftest.er1 >conftest.err
16479   rm -f conftest.er1
16480   cat conftest.err >&5
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); } &&
16483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484   { (case "(($ac_try" in
16485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486   *) ac_try_echo=$ac_try;;
16487 esac
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489   (eval "$ac_try") 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; } &&
16493          { ac_try='test -s conftest.$ac_objext'
16494   { (case "(($ac_try" in
16495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496   *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499   (eval "$ac_try") 2>&5
16500   ac_status=$?
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); }; }; then
16503   ac_cv_type_int64_t=yes
16504 else
16505   echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508         ac_cv_type_int64_t=no
16509 fi
16510
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 fi
16513 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16514 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16515 if test $ac_cv_type_int64_t = yes; then
16516
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_INT64_T 1
16519 _ACEOF
16520
16521
16522 else
16523   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16524 echo "$as_me: error: Type int64_t required but not found" >&2;}
16525    { (exit 1); exit 1; }; }
16526 fi
16527
16528 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16529 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16530 if test "${ac_cv_type_uint64_t+set}" = set; then
16531   echo $ECHO_N "(cached) $ECHO_C" >&6
16532 else
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 $ac_includes_default
16540 typedef uint64_t ac__type_new_;
16541 int
16542 main ()
16543 {
16544 if ((ac__type_new_ *) 0)
16545   return 0;
16546 if (sizeof (ac__type_new_))
16547   return 0;
16548   ;
16549   return 0;
16550 }
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (ac_try="$ac_compile"
16554 case "(($ac_try" in
16555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556   *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559   (eval "$ac_compile") 2>conftest.er1
16560   ac_status=$?
16561   grep -v '^ *+' conftest.er1 >conftest.err
16562   rm -f conftest.er1
16563   cat conftest.err >&5
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); } &&
16566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567   { (case "(($ac_try" in
16568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569   *) ac_try_echo=$ac_try;;
16570 esac
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572   (eval "$ac_try") 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; } &&
16576          { ac_try='test -s conftest.$ac_objext'
16577   { (case "(($ac_try" in
16578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579   *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582   (eval "$ac_try") 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_cv_type_uint64_t=yes
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591         ac_cv_type_uint64_t=no
16592 fi
16593
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 fi
16596 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16597 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16598 if test $ac_cv_type_uint64_t = yes; then
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_UINT64_T 1
16602 _ACEOF
16603
16604
16605 else
16606   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16607 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16608 if test "${ac_cv_type_u_int64_t+set}" = set; then
16609   echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611   cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h.  */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h.  */
16617 $ac_includes_default
16618 typedef u_int64_t ac__type_new_;
16619 int
16620 main ()
16621 {
16622 if ((ac__type_new_ *) 0)
16623   return 0;
16624 if (sizeof (ac__type_new_))
16625   return 0;
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext
16631 if { (ac_try="$ac_compile"
16632 case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_compile") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } &&
16644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645   { (case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650   (eval "$ac_try") 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest.$ac_objext'
16655   { (case "(($ac_try" in
16656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657   *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660   (eval "$ac_try") 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); }; }; then
16664   ac_cv_type_u_int64_t=yes
16665 else
16666   echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16668
16669         ac_cv_type_u_int64_t=no
16670 fi
16671
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673 fi
16674 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16675 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16676 if test $ac_cv_type_u_int64_t = yes; then
16677
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_U_INT64_T 1
16680 _ACEOF
16681
16682
16683 else
16684   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16685 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16686    { (exit 1); exit 1; }; }
16687 fi
16688
16689 fi
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16701 do
16702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16706   echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708   cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h.  */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h.  */
16714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16716 #define $ac_func innocuous_$ac_func
16717
16718 /* System header to define __stub macros and hopefully few prototypes,
16719     which can conflict with char $ac_func (); below.
16720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16721     <limits.h> exists even on freestanding compilers.  */
16722
16723 #ifdef __STDC__
16724 # include <limits.h>
16725 #else
16726 # include <assert.h>
16727 #endif
16728
16729 #undef $ac_func
16730
16731 /* Override any GCC internal prototype to avoid an error.
16732    Use char because int might match the return type of a GCC
16733    builtin and then its argument prototype would still apply.  */
16734 #ifdef __cplusplus
16735 extern "C"
16736 #endif
16737 char $ac_func ();
16738 /* The GNU C library defines this for functions which it implements
16739     to always fail with ENOSYS.  Some functions are actually named
16740     something starting with __ and the normal name is an alias.  */
16741 #if defined __stub_$ac_func || defined __stub___$ac_func
16742 choke me
16743 #endif
16744
16745 int
16746 main ()
16747 {
16748 return $ac_func ();
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (ac_try="$ac_link"
16755 case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_link") 2>conftest.er1
16761   ac_status=$?
16762   grep -v '^ *+' conftest.er1 >conftest.err
16763   rm -f conftest.er1
16764   cat conftest.err >&5
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); } &&
16767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768   { (case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_try") 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; } &&
16777          { ac_try='test -s conftest$ac_exeext'
16778   { (case "(($ac_try" in
16779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780   *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783   (eval "$ac_try") 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; }; then
16787   eval "$as_ac_var=yes"
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792         eval "$as_ac_var=no"
16793 fi
16794
16795 rm -f core conftest.err conftest.$ac_objext \
16796       conftest$ac_exeext conftest.$ac_ext
16797 fi
16798 ac_res=`eval echo '${'$as_ac_var'}'`
16799                { echo "$as_me:$LINENO: result: $ac_res" >&5
16800 echo "${ECHO_T}$ac_res" >&6; }
16801 if test `eval echo '${'$as_ac_var'}'` = yes; then
16802   cat >>confdefs.h <<_ACEOF
16803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16804 _ACEOF
16805
16806 fi
16807 done
16808
16809
16810
16811
16812
16813 for ac_func in powf fmodf strtof round
16814 do
16815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16819   echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821   cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16829 #define $ac_func innocuous_$ac_func
16830
16831 /* System header to define __stub macros and hopefully few prototypes,
16832     which can conflict with char $ac_func (); below.
16833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16834     <limits.h> exists even on freestanding compilers.  */
16835
16836 #ifdef __STDC__
16837 # include <limits.h>
16838 #else
16839 # include <assert.h>
16840 #endif
16841
16842 #undef $ac_func
16843
16844 /* Override any GCC internal prototype to avoid an error.
16845    Use char because int might match the return type of a GCC
16846    builtin and then its argument prototype would still apply.  */
16847 #ifdef __cplusplus
16848 extern "C"
16849 #endif
16850 char $ac_func ();
16851 /* The GNU C library defines this for functions which it implements
16852     to always fail with ENOSYS.  Some functions are actually named
16853     something starting with __ and the normal name is an alias.  */
16854 #if defined __stub_$ac_func || defined __stub___$ac_func
16855 choke me
16856 #endif
16857
16858 int
16859 main ()
16860 {
16861 return $ac_func ();
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (ac_try="$ac_link"
16868 case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873   (eval "$ac_link") 2>conftest.er1
16874   ac_status=$?
16875   grep -v '^ *+' conftest.er1 >conftest.err
16876   rm -f conftest.er1
16877   cat conftest.err >&5
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } &&
16880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16881   { (case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_try") 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; } &&
16890          { ac_try='test -s conftest$ac_exeext'
16891   { (case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_try") 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; }; then
16900   eval "$as_ac_var=yes"
16901 else
16902   echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16904
16905         eval "$as_ac_var=no"
16906 fi
16907
16908 rm -f core conftest.err conftest.$ac_objext \
16909       conftest$ac_exeext conftest.$ac_ext
16910 fi
16911 ac_res=`eval echo '${'$as_ac_var'}'`
16912                { echo "$as_me:$LINENO: result: $ac_res" >&5
16913 echo "${ECHO_T}$ac_res" >&6; }
16914 if test `eval echo '${'$as_ac_var'}'` = yes; then
16915   cat >>confdefs.h <<_ACEOF
16916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16917 _ACEOF
16918
16919 fi
16920 done
16921
16922
16923
16924
16925
16926
16927 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16928 do
16929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16933   echo $ECHO_N "(cached) $ECHO_C" >&6
16934 else
16935   cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16943 #define $ac_func innocuous_$ac_func
16944
16945 /* System header to define __stub macros and hopefully few prototypes,
16946     which can conflict with char $ac_func (); below.
16947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948     <limits.h> exists even on freestanding compilers.  */
16949
16950 #ifdef __STDC__
16951 # include <limits.h>
16952 #else
16953 # include <assert.h>
16954 #endif
16955
16956 #undef $ac_func
16957
16958 /* Override any GCC internal prototype to avoid an error.
16959    Use char because int might match the return type of a GCC
16960    builtin and then its argument prototype would still apply.  */
16961 #ifdef __cplusplus
16962 extern "C"
16963 #endif
16964 char $ac_func ();
16965 /* The GNU C library defines this for functions which it implements
16966     to always fail with ENOSYS.  Some functions are actually named
16967     something starting with __ and the normal name is an alias.  */
16968 #if defined __stub_$ac_func || defined __stub___$ac_func
16969 choke me
16970 #endif
16971
16972 int
16973 main ()
16974 {
16975 return $ac_func ();
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_link") 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } &&
16994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995   { (case "(($ac_try" in
16996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997   *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000   (eval "$ac_try") 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }; } &&
17004          { ac_try='test -s conftest$ac_exeext'
17005   { (case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_try") 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); }; }; then
17014   eval "$as_ac_var=yes"
17015 else
17016   echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17018
17019         eval "$as_ac_var=no"
17020 fi
17021
17022 rm -f core conftest.err conftest.$ac_objext \
17023       conftest$ac_exeext conftest.$ac_ext
17024 fi
17025 ac_res=`eval echo '${'$as_ac_var'}'`
17026                { echo "$as_me:$LINENO: result: $ac_res" >&5
17027 echo "${ECHO_T}$ac_res" >&6; }
17028 if test `eval echo '${'$as_ac_var'}'` = yes; then
17029   cat >>confdefs.h <<_ACEOF
17030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17031 _ACEOF
17032
17033 fi
17034 done
17035
17036
17037
17038
17039 for ac_func in isatty mkdtemp mkstemp
17040 do
17041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045   echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047   cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17055 #define $ac_func innocuous_$ac_func
17056
17057 /* System header to define __stub macros and hopefully few prototypes,
17058     which can conflict with char $ac_func (); below.
17059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060     <limits.h> exists even on freestanding compilers.  */
17061
17062 #ifdef __STDC__
17063 # include <limits.h>
17064 #else
17065 # include <assert.h>
17066 #endif
17067
17068 #undef $ac_func
17069
17070 /* Override any GCC internal prototype to avoid an error.
17071    Use char because int might match the return type of a GCC
17072    builtin and then its argument prototype would still apply.  */
17073 #ifdef __cplusplus
17074 extern "C"
17075 #endif
17076 char $ac_func ();
17077 /* The GNU C library defines this for functions which it implements
17078     to always fail with ENOSYS.  Some functions are actually named
17079     something starting with __ and the normal name is an alias.  */
17080 #if defined __stub_$ac_func || defined __stub___$ac_func
17081 choke me
17082 #endif
17083
17084 int
17085 main ()
17086 {
17087 return $ac_func ();
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_link") 2>conftest.er1
17100   ac_status=$?
17101   grep -v '^ *+' conftest.er1 >conftest.err
17102   rm -f conftest.er1
17103   cat conftest.err >&5
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); } &&
17106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17107   { (case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112   (eval "$ac_try") 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); }; } &&
17116          { ac_try='test -s conftest$ac_exeext'
17117   { (case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122   (eval "$ac_try") 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; }; then
17126   eval "$as_ac_var=yes"
17127 else
17128   echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131         eval "$as_ac_var=no"
17132 fi
17133
17134 rm -f core conftest.err conftest.$ac_objext \
17135       conftest$ac_exeext conftest.$ac_ext
17136 fi
17137 ac_res=`eval echo '${'$as_ac_var'}'`
17138                { echo "$as_me:$LINENO: result: $ac_res" >&5
17139 echo "${ECHO_T}$ac_res" >&6; }
17140 if test `eval echo '${'$as_ac_var'}'` = yes; then
17141   cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17143 _ACEOF
17144
17145 fi
17146 done
17147
17148
17149
17150
17151
17152
17153
17154 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17155 do
17156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162   cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17170 #define $ac_func innocuous_$ac_func
17171
17172 /* System header to define __stub macros and hopefully few prototypes,
17173     which can conflict with char $ac_func (); below.
17174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17175     <limits.h> exists even on freestanding compilers.  */
17176
17177 #ifdef __STDC__
17178 # include <limits.h>
17179 #else
17180 # include <assert.h>
17181 #endif
17182
17183 #undef $ac_func
17184
17185 /* Override any GCC internal prototype to avoid an error.
17186    Use char because int might match the return type of a GCC
17187    builtin and then its argument prototype would still apply.  */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 char $ac_func ();
17192 /* The GNU C library defines this for functions which it implements
17193     to always fail with ENOSYS.  Some functions are actually named
17194     something starting with __ and the normal name is an alias.  */
17195 #if defined __stub_$ac_func || defined __stub___$ac_func
17196 choke me
17197 #endif
17198
17199 int
17200 main ()
17201 {
17202 return $ac_func ();
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211   *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214   (eval "$ac_link") 2>conftest.er1
17215   ac_status=$?
17216   grep -v '^ *+' conftest.er1 >conftest.err
17217   rm -f conftest.er1
17218   cat conftest.err >&5
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); } &&
17221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17222   { (case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227   (eval "$ac_try") 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); }; } &&
17231          { ac_try='test -s conftest$ac_exeext'
17232   { (case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237   (eval "$ac_try") 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   eval "$as_ac_var=yes"
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246         eval "$as_ac_var=no"
17247 fi
17248
17249 rm -f core conftest.err conftest.$ac_objext \
17250       conftest$ac_exeext conftest.$ac_ext
17251 fi
17252 ac_res=`eval echo '${'$as_ac_var'}'`
17253                { echo "$as_me:$LINENO: result: $ac_res" >&5
17254 echo "${ECHO_T}$ac_res" >&6; }
17255 if test `eval echo '${'$as_ac_var'}'` = yes; then
17256   cat >>confdefs.h <<_ACEOF
17257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17258 _ACEOF
17259
17260 fi
17261 done
17262
17263
17264
17265
17266 for ac_func in strerror strerror_r setenv
17267 do
17268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17272   echo $ECHO_N "(cached) $ECHO_C" >&6
17273 else
17274   cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17282 #define $ac_func innocuous_$ac_func
17283
17284 /* System header to define __stub macros and hopefully few prototypes,
17285     which can conflict with char $ac_func (); below.
17286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17287     <limits.h> exists even on freestanding compilers.  */
17288
17289 #ifdef __STDC__
17290 # include <limits.h>
17291 #else
17292 # include <assert.h>
17293 #endif
17294
17295 #undef $ac_func
17296
17297 /* Override any GCC internal prototype to avoid an error.
17298    Use char because int might match the return type of a GCC
17299    builtin and then its argument prototype would still apply.  */
17300 #ifdef __cplusplus
17301 extern "C"
17302 #endif
17303 char $ac_func ();
17304 /* The GNU C library defines this for functions which it implements
17305     to always fail with ENOSYS.  Some functions are actually named
17306     something starting with __ and the normal name is an alias.  */
17307 #if defined __stub_$ac_func || defined __stub___$ac_func
17308 choke me
17309 #endif
17310
17311 int
17312 main ()
17313 {
17314 return $ac_func ();
17315   ;
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323   *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326   (eval "$ac_link") 2>conftest.er1
17327   ac_status=$?
17328   grep -v '^ *+' conftest.er1 >conftest.err
17329   rm -f conftest.er1
17330   cat conftest.err >&5
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); } &&
17333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17334   { (case "(($ac_try" in
17335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336   *) ac_try_echo=$ac_try;;
17337 esac
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339   (eval "$ac_try") 2>&5
17340   ac_status=$?
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); }; } &&
17343          { ac_try='test -s conftest$ac_exeext'
17344   { (case "(($ac_try" in
17345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346   *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349   (eval "$ac_try") 2>&5
17350   ac_status=$?
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); }; }; then
17353   eval "$as_ac_var=yes"
17354 else
17355   echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17357
17358         eval "$as_ac_var=no"
17359 fi
17360
17361 rm -f core conftest.err conftest.$ac_objext \
17362       conftest$ac_exeext conftest.$ac_ext
17363 fi
17364 ac_res=`eval echo '${'$as_ac_var'}'`
17365                { echo "$as_me:$LINENO: result: $ac_res" >&5
17366 echo "${ECHO_T}$ac_res" >&6; }
17367 if test `eval echo '${'$as_ac_var'}'` = yes; then
17368   cat >>confdefs.h <<_ACEOF
17369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17370 _ACEOF
17371
17372 fi
17373 done
17374
17375
17376
17377
17378
17379 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17380 do
17381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17385   echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387   cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h.  */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h.  */
17393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17395 #define $ac_func innocuous_$ac_func
17396
17397 /* System header to define __stub macros and hopefully few prototypes,
17398     which can conflict with char $ac_func (); below.
17399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17400     <limits.h> exists even on freestanding compilers.  */
17401
17402 #ifdef __STDC__
17403 # include <limits.h>
17404 #else
17405 # include <assert.h>
17406 #endif
17407
17408 #undef $ac_func
17409
17410 /* Override any GCC internal prototype to avoid an error.
17411    Use char because int might match the return type of a GCC
17412    builtin and then its argument prototype would still apply.  */
17413 #ifdef __cplusplus
17414 extern "C"
17415 #endif
17416 char $ac_func ();
17417 /* The GNU C library defines this for functions which it implements
17418     to always fail with ENOSYS.  Some functions are actually named
17419     something starting with __ and the normal name is an alias.  */
17420 #if defined __stub_$ac_func || defined __stub___$ac_func
17421 choke me
17422 #endif
17423
17424 int
17425 main ()
17426 {
17427 return $ac_func ();
17428   ;
17429   return 0;
17430 }
17431 _ACEOF
17432 rm -f conftest.$ac_objext conftest$ac_exeext
17433 if { (ac_try="$ac_link"
17434 case "(($ac_try" in
17435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436   *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439   (eval "$ac_link") 2>conftest.er1
17440   ac_status=$?
17441   grep -v '^ *+' conftest.er1 >conftest.err
17442   rm -f conftest.er1
17443   cat conftest.err >&5
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); } &&
17446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17447   { (case "(($ac_try" in
17448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449   *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452   (eval "$ac_try") 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; } &&
17456          { ac_try='test -s conftest$ac_exeext'
17457   { (case "(($ac_try" in
17458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459   *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462   (eval "$ac_try") 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; }; then
17466   eval "$as_ac_var=yes"
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471         eval "$as_ac_var=no"
17472 fi
17473
17474 rm -f core conftest.err conftest.$ac_objext \
17475       conftest$ac_exeext conftest.$ac_ext
17476 fi
17477 ac_res=`eval echo '${'$as_ac_var'}'`
17478                { echo "$as_me:$LINENO: result: $ac_res" >&5
17479 echo "${ECHO_T}$ac_res" >&6; }
17480 if test `eval echo '${'$as_ac_var'}'` = yes; then
17481   cat >>confdefs.h <<_ACEOF
17482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17483 _ACEOF
17484
17485 fi
17486 done
17487
17488
17489
17490
17491
17492
17493 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17494 do
17495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501   cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h.  */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h.  */
17507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17509 #define $ac_func innocuous_$ac_func
17510
17511 /* System header to define __stub macros and hopefully few prototypes,
17512     which can conflict with char $ac_func (); below.
17513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17514     <limits.h> exists even on freestanding compilers.  */
17515
17516 #ifdef __STDC__
17517 # include <limits.h>
17518 #else
17519 # include <assert.h>
17520 #endif
17521
17522 #undef $ac_func
17523
17524 /* Override any GCC internal prototype to avoid an error.
17525    Use char because int might match the return type of a GCC
17526    builtin and then its argument prototype would still apply.  */
17527 #ifdef __cplusplus
17528 extern "C"
17529 #endif
17530 char $ac_func ();
17531 /* The GNU C library defines this for functions which it implements
17532     to always fail with ENOSYS.  Some functions are actually named
17533     something starting with __ and the normal name is an alias.  */
17534 #if defined __stub_$ac_func || defined __stub___$ac_func
17535 choke me
17536 #endif
17537
17538 int
17539 main ()
17540 {
17541 return $ac_func ();
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (ac_try="$ac_link"
17548 case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_link") 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561   { (case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_try") 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest$ac_exeext'
17571   { (case "(($ac_try" in
17572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573   *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576   (eval "$ac_try") 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; }; then
17580   eval "$as_ac_var=yes"
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585         eval "$as_ac_var=no"
17586 fi
17587
17588 rm -f core conftest.err conftest.$ac_objext \
17589       conftest$ac_exeext conftest.$ac_ext
17590 fi
17591 ac_res=`eval echo '${'$as_ac_var'}'`
17592                { echo "$as_me:$LINENO: result: $ac_res" >&5
17593 echo "${ECHO_T}$ac_res" >&6; }
17594 if test `eval echo '${'$as_ac_var'}'` = yes; then
17595   cat >>confdefs.h <<_ACEOF
17596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17597 _ACEOF
17598
17599 fi
17600 done
17601
17602 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17603 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17604 if test "${llvm_cv_c_printf_a+set}" = set; then
17605   echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607   ac_ext=c
17608 ac_cpp='$CPP $CPPFLAGS'
17609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17612
17613  if test "$cross_compiling" = yes; then
17614   llvmac_cv_c_printf_a=no
17615 else
17616   cat >conftest.$ac_ext <<_ACEOF
17617
17618   /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623
17624 #include <stdio.h>
17625 #include <stdlib.h>
17626
17627 int
17628 main ()
17629 {
17630
17631 volatile double A, B;
17632 char Buffer[100];
17633 A = 1;
17634 A /= 10.0;
17635 sprintf(Buffer, "%a", A);
17636 B = atof(Buffer);
17637 if (A != B)
17638   return (1);
17639 if (A != 0x1.999999999999ap-4)
17640   return (1);
17641 return (0);
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest$ac_exeext
17647 if { (ac_try="$ac_link"
17648 case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653   (eval "$ac_link") 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17657   { (case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_try") 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; }; then
17666   llvm_cv_c_printf_a=yes
17667 else
17668   echo "$as_me: program exited with status $ac_status" >&5
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17671
17672 ( exit $ac_status )
17673 llvmac_cv_c_printf_a=no
17674 fi
17675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17676 fi
17677
17678
17679  ac_ext=c
17680 ac_cpp='$CPP $CPPFLAGS'
17681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17684
17685 fi
17686 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17687 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17688  if test "$llvm_cv_c_printf_a" = "yes"; then
17689
17690 cat >>confdefs.h <<\_ACEOF
17691 #define HAVE_PRINTF_A 1
17692 _ACEOF
17693
17694  fi
17695
17696
17697 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17698 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17699 if test "${ac_cv_func_rand48+set}" = set; then
17700   echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702   ac_ext=cpp
17703 ac_cpp='$CXXCPP $CPPFLAGS'
17704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17707
17708    cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714 #include <stdlib.h>
17715 int
17716 main ()
17717 {
17718 srand48(0);lrand48();drand48();
17719   ;
17720   return 0;
17721 }
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (ac_try="$ac_compile"
17725 case "(($ac_try" in
17726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727   *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730   (eval "$ac_compile") 2>conftest.er1
17731   ac_status=$?
17732   grep -v '^ *+' conftest.er1 >conftest.err
17733   rm -f conftest.er1
17734   cat conftest.err >&5
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17738   { (case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_try") 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; } &&
17747          { ac_try='test -s conftest.$ac_objext'
17748   { (case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_try") 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; }; then
17757   ac_cv_func_rand48=yes
17758 else
17759   echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762         ac_cv_func_rand48=no
17763 fi
17764
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766   ac_ext=c
17767 ac_cpp='$CPP $CPPFLAGS'
17768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17771
17772 fi
17773 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17774 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17775
17776 if test "$ac_cv_func_rand48" = "yes" ; then
17777
17778 cat >>confdefs.h <<\_ACEOF
17779 #define HAVE_RAND48 1
17780 _ACEOF
17781
17782 fi
17783
17784
17785 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17786 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17787 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h.  */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h.  */
17796 $ac_includes_default
17797 int
17798 main ()
17799 {
17800 #ifndef strerror_s
17801   char *p = (char *) strerror_s;
17802   return !p;
17803 #endif
17804
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813   *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816   (eval "$ac_compile") 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824   { (case "(($ac_try" in
17825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826   *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829   (eval "$ac_try") 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; } &&
17833          { ac_try='test -s conftest.$ac_objext'
17834   { (case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_try") 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; }; then
17843   ac_cv_have_decl_strerror_s=yes
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848         ac_cv_have_decl_strerror_s=no
17849 fi
17850
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 fi
17853 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17854 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17855 if test $ac_cv_have_decl_strerror_s = yes; then
17856
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_DECL_STRERROR_S 1
17859 _ACEOF
17860
17861
17862 else
17863   cat >>confdefs.h <<_ACEOF
17864 #define HAVE_DECL_STRERROR_S 0
17865 _ACEOF
17866
17867
17868 fi
17869
17870
17871
17872 if test "$llvm_cv_os_type" = "MingW" ; then
17873   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17874 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17875 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   ac_check_lib_save_LIBS=$LIBS
17879 LIBS="-lgcc  $LIBS"
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886
17887 /* Override any GCC internal prototype to avoid an error.
17888    Use char because int might match the return type of a GCC
17889    builtin and then its argument prototype would still apply.  */
17890 #ifdef __cplusplus
17891 extern "C"
17892 #endif
17893 char _alloca ();
17894 int
17895 main ()
17896 {
17897 return _alloca ();
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_link") 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } &&
17916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17917   { (case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922   (eval "$ac_try") 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; } &&
17926          { ac_try='test -s conftest$ac_exeext'
17927   { (case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932   (eval "$ac_try") 2>&5
17933   ac_status=$?
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); }; }; then
17936   ac_cv_lib_gcc__alloca=yes
17937 else
17938   echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941         ac_cv_lib_gcc__alloca=no
17942 fi
17943
17944 rm -f core conftest.err conftest.$ac_objext \
17945       conftest$ac_exeext conftest.$ac_ext
17946 LIBS=$ac_check_lib_save_LIBS
17947 fi
17948 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17949 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17950 if test $ac_cv_lib_gcc__alloca = yes; then
17951
17952 cat >>confdefs.h <<\_ACEOF
17953 #define HAVE__ALLOCA 1
17954 _ACEOF
17955
17956 fi
17957
17958   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17959 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17960 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17961   echo $ECHO_N "(cached) $ECHO_C" >&6
17962 else
17963   ac_check_lib_save_LIBS=$LIBS
17964 LIBS="-lgcc  $LIBS"
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971
17972 /* Override any GCC internal prototype to avoid an error.
17973    Use char because int might match the return type of a GCC
17974    builtin and then its argument prototype would still apply.  */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 char __alloca ();
17979 int
17980 main ()
17981 {
17982 return __alloca ();
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_link") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002   { (case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; } &&
18011          { ac_try='test -s conftest$ac_exeext'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   ac_cv_lib_gcc___alloca=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         ac_cv_lib_gcc___alloca=no
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext \
18030       conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18032 fi
18033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18034 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18035 if test $ac_cv_lib_gcc___alloca = yes; then
18036
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE___ALLOCA 1
18039 _ACEOF
18040
18041 fi
18042
18043   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18044 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18045 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   ac_check_lib_save_LIBS=$LIBS
18049 LIBS="-lgcc  $LIBS"
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056
18057 /* Override any GCC internal prototype to avoid an error.
18058    Use char because int might match the return type of a GCC
18059    builtin and then its argument prototype would still apply.  */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char __chkstk ();
18064 int
18065 main ()
18066 {
18067 return __chkstk ();
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079   (eval "$ac_link") 2>conftest.er1
18080   ac_status=$?
18081   grep -v '^ *+' conftest.er1 >conftest.err
18082   rm -f conftest.er1
18083   cat conftest.err >&5
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); } &&
18086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18087   { (case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_try") 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; } &&
18096          { ac_try='test -s conftest$ac_exeext'
18097   { (case "(($ac_try" in
18098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099   *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102   (eval "$ac_try") 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); }; }; then
18106   ac_cv_lib_gcc___chkstk=yes
18107 else
18108   echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111         ac_cv_lib_gcc___chkstk=no
18112 fi
18113
18114 rm -f core conftest.err conftest.$ac_objext \
18115       conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18117 fi
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18119 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18120 if test $ac_cv_lib_gcc___chkstk = yes; then
18121
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE___CHKSTK 1
18124 _ACEOF
18125
18126 fi
18127
18128   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18129 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18130 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   ac_check_lib_save_LIBS=$LIBS
18134 LIBS="-lgcc  $LIBS"
18135 cat >conftest.$ac_ext <<_ACEOF
18136 /* confdefs.h.  */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h.  */
18141
18142 /* Override any GCC internal prototype to avoid an error.
18143    Use char because int might match the return type of a GCC
18144    builtin and then its argument prototype would still apply.  */
18145 #ifdef __cplusplus
18146 extern "C"
18147 #endif
18148 char ___chkstk ();
18149 int
18150 main ()
18151 {
18152 return ___chkstk ();
18153   ;
18154   return 0;
18155 }
18156 _ACEOF
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161   *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164   (eval "$ac_link") 2>conftest.er1
18165   ac_status=$?
18166   grep -v '^ *+' conftest.er1 >conftest.err
18167   rm -f conftest.er1
18168   cat conftest.err >&5
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); } &&
18171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172   { (case "(($ac_try" in
18173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174   *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177   (eval "$ac_try") 2>&5
18178   ac_status=$?
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); }; } &&
18181          { ac_try='test -s conftest$ac_exeext'
18182   { (case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_try") 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; }; then
18191   ac_cv_lib_gcc____chkstk=yes
18192 else
18193   echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18195
18196         ac_cv_lib_gcc____chkstk=no
18197 fi
18198
18199 rm -f core conftest.err conftest.$ac_objext \
18200       conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18202 fi
18203 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18204 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18205 if test $ac_cv_lib_gcc____chkstk = yes; then
18206
18207 cat >>confdefs.h <<\_ACEOF
18208 #define HAVE____CHKSTK 1
18209 _ACEOF
18210
18211 fi
18212
18213
18214   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18215 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18216 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18217   echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219   ac_check_lib_save_LIBS=$LIBS
18220 LIBS="-lgcc  $LIBS"
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227
18228 /* Override any GCC internal prototype to avoid an error.
18229    Use char because int might match the return type of a GCC
18230    builtin and then its argument prototype would still apply.  */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char __ashldi3 ();
18235 int
18236 main ()
18237 {
18238 return __ashldi3 ();
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247   *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250   (eval "$ac_link") 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } &&
18257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258   { (case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_try") 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; } &&
18267          { ac_try='test -s conftest$ac_exeext'
18268   { (case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_try") 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   ac_cv_lib_gcc___ashldi3=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282         ac_cv_lib_gcc___ashldi3=no
18283 fi
18284
18285 rm -f core conftest.err conftest.$ac_objext \
18286       conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18288 fi
18289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18290 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18291 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE___ASHLDI3 1
18295 _ACEOF
18296
18297 fi
18298
18299   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18300 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18301 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18302   echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304   ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lgcc  $LIBS"
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312
18313 /* Override any GCC internal prototype to avoid an error.
18314    Use char because int might match the return type of a GCC
18315    builtin and then its argument prototype would still apply.  */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 char __ashrdi3 ();
18320 int
18321 main ()
18322 {
18323 return __ashrdi3 ();
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_link") 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } &&
18342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343   { (case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_try") 2>&5
18349   ac_status=$?
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); }; } &&
18352          { ac_try='test -s conftest$ac_exeext'
18353   { (case "(($ac_try" in
18354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355   *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358   (eval "$ac_try") 2>&5
18359   ac_status=$?
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); }; }; then
18362   ac_cv_lib_gcc___ashrdi3=yes
18363 else
18364   echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18366
18367         ac_cv_lib_gcc___ashrdi3=no
18368 fi
18369
18370 rm -f core conftest.err conftest.$ac_objext \
18371       conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18373 fi
18374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18375 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18376 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18377
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE___ASHRDI3 1
18380 _ACEOF
18381
18382 fi
18383
18384   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18385 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18386 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18387   echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389   ac_check_lib_save_LIBS=$LIBS
18390 LIBS="-lgcc  $LIBS"
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h.  */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h.  */
18397
18398 /* Override any GCC internal prototype to avoid an error.
18399    Use char because int might match the return type of a GCC
18400    builtin and then its argument prototype would still apply.  */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 char __divdi3 ();
18405 int
18406 main ()
18407 {
18408 return __divdi3 ();
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_link") 2>conftest.er1
18421   ac_status=$?
18422   grep -v '^ *+' conftest.er1 >conftest.err
18423   rm -f conftest.er1
18424   cat conftest.err >&5
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } &&
18427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428   { (case "(($ac_try" in
18429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430   *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433   (eval "$ac_try") 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest$ac_exeext'
18438   { (case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_try") 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_lib_gcc___divdi3=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452         ac_cv_lib_gcc___divdi3=no
18453 fi
18454
18455 rm -f core conftest.err conftest.$ac_objext \
18456       conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18458 fi
18459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18460 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18461 if test $ac_cv_lib_gcc___divdi3 = yes; then
18462
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE___DIVDI3 1
18465 _ACEOF
18466
18467 fi
18468
18469   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18470 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18471 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   ac_check_lib_save_LIBS=$LIBS
18475 LIBS="-lgcc  $LIBS"
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482
18483 /* Override any GCC internal prototype to avoid an error.
18484    Use char because int might match the return type of a GCC
18485    builtin and then its argument prototype would still apply.  */
18486 #ifdef __cplusplus
18487 extern "C"
18488 #endif
18489 char __fixdfdi ();
18490 int
18491 main ()
18492 {
18493 return __fixdfdi ();
18494   ;
18495   return 0;
18496 }
18497 _ACEOF
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502   *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505   (eval "$ac_link") 2>conftest.er1
18506   ac_status=$?
18507   grep -v '^ *+' conftest.er1 >conftest.err
18508   rm -f conftest.er1
18509   cat conftest.err >&5
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); } &&
18512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513   { (case "(($ac_try" in
18514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515   *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518   (eval "$ac_try") 2>&5
18519   ac_status=$?
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); }; } &&
18522          { ac_try='test -s conftest$ac_exeext'
18523   { (case "(($ac_try" in
18524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525   *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528   (eval "$ac_try") 2>&5
18529   ac_status=$?
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); }; }; then
18532   ac_cv_lib_gcc___fixdfdi=yes
18533 else
18534   echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537         ac_cv_lib_gcc___fixdfdi=no
18538 fi
18539
18540 rm -f core conftest.err conftest.$ac_objext \
18541       conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18543 fi
18544 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18545 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18546 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18547
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE___FIXDFDI 1
18550 _ACEOF
18551
18552 fi
18553
18554   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18555 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18556 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18557   echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559   ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-lgcc  $LIBS"
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567
18568 /* Override any GCC internal prototype to avoid an error.
18569    Use char because int might match the return type of a GCC
18570    builtin and then its argument prototype would still apply.  */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char __fixsfdi ();
18575 int
18576 main ()
18577 {
18578 return __fixsfdi ();
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_link") 2>conftest.er1
18591   ac_status=$?
18592   grep -v '^ *+' conftest.er1 >conftest.err
18593   rm -f conftest.er1
18594   cat conftest.err >&5
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); } &&
18597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598   { (case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_try") 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; } &&
18607          { ac_try='test -s conftest$ac_exeext'
18608   { (case "(($ac_try" in
18609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610   *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613   (eval "$ac_try") 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; }; then
18617   ac_cv_lib_gcc___fixsfdi=yes
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622         ac_cv_lib_gcc___fixsfdi=no
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext \
18626       conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18630 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18631 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18632
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE___FIXSFDI 1
18635 _ACEOF
18636
18637 fi
18638
18639   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18640 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18641 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   ac_check_lib_save_LIBS=$LIBS
18645 LIBS="-lgcc  $LIBS"
18646 cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h.  */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h.  */
18652
18653 /* Override any GCC internal prototype to avoid an error.
18654    Use char because int might match the return type of a GCC
18655    builtin and then its argument prototype would still apply.  */
18656 #ifdef __cplusplus
18657 extern "C"
18658 #endif
18659 char __floatdidf ();
18660 int
18661 main ()
18662 {
18663 return __floatdidf ();
18664   ;
18665   return 0;
18666 }
18667 _ACEOF
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (ac_try="$ac_link"
18670 case "(($ac_try" in
18671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672   *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675   (eval "$ac_link") 2>conftest.er1
18676   ac_status=$?
18677   grep -v '^ *+' conftest.er1 >conftest.err
18678   rm -f conftest.er1
18679   cat conftest.err >&5
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); } &&
18682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18683   { (case "(($ac_try" in
18684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685   *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688   (eval "$ac_try") 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; } &&
18692          { ac_try='test -s conftest$ac_exeext'
18693   { (case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_try") 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); }; }; then
18702   ac_cv_lib_gcc___floatdidf=yes
18703 else
18704   echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707         ac_cv_lib_gcc___floatdidf=no
18708 fi
18709
18710 rm -f core conftest.err conftest.$ac_objext \
18711       conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18713 fi
18714 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18715 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18716 if test $ac_cv_lib_gcc___floatdidf = yes; then
18717
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE___FLOATDIDF 1
18720 _ACEOF
18721
18722 fi
18723
18724   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18725 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18726 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18727   echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729   ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-lgcc  $LIBS"
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737
18738 /* Override any GCC internal prototype to avoid an error.
18739    Use char because int might match the return type of a GCC
18740    builtin and then its argument prototype would still apply.  */
18741 #ifdef __cplusplus
18742 extern "C"
18743 #endif
18744 char __lshrdi3 ();
18745 int
18746 main ()
18747 {
18748 return __lshrdi3 ();
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_link") 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } &&
18767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18768   { (case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_try") 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; } &&
18777          { ac_try='test -s conftest$ac_exeext'
18778   { (case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_try") 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   ac_cv_lib_gcc___lshrdi3=yes
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         ac_cv_lib_gcc___lshrdi3=no
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext \
18796       conftest$ac_exeext conftest.$ac_ext
18797 LIBS=$ac_check_lib_save_LIBS
18798 fi
18799 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18800 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18801 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18802
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE___LSHRDI3 1
18805 _ACEOF
18806
18807 fi
18808
18809   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18810 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18811 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18812   echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814   ac_check_lib_save_LIBS=$LIBS
18815 LIBS="-lgcc  $LIBS"
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822
18823 /* Override any GCC internal prototype to avoid an error.
18824    Use char because int might match the return type of a GCC
18825    builtin and then its argument prototype would still apply.  */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char __moddi3 ();
18830 int
18831 main ()
18832 {
18833 return __moddi3 ();
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845   (eval "$ac_link") 2>conftest.er1
18846   ac_status=$?
18847   grep -v '^ *+' conftest.er1 >conftest.err
18848   rm -f conftest.er1
18849   cat conftest.err >&5
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); } &&
18852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18853   { (case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858   (eval "$ac_try") 2>&5
18859   ac_status=$?
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; } &&
18862          { ac_try='test -s conftest$ac_exeext'
18863   { (case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868   (eval "$ac_try") 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); }; }; then
18872   ac_cv_lib_gcc___moddi3=yes
18873 else
18874   echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877         ac_cv_lib_gcc___moddi3=no
18878 fi
18879
18880 rm -f core conftest.err conftest.$ac_objext \
18881       conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18883 fi
18884 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18885 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18886 if test $ac_cv_lib_gcc___moddi3 = yes; then
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE___MODDI3 1
18890 _ACEOF
18891
18892 fi
18893
18894   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18895 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18896 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18897   echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899   ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lgcc  $LIBS"
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907
18908 /* Override any GCC internal prototype to avoid an error.
18909    Use char because int might match the return type of a GCC
18910    builtin and then its argument prototype would still apply.  */
18911 #ifdef __cplusplus
18912 extern "C"
18913 #endif
18914 char __udivdi3 ();
18915 int
18916 main ()
18917 {
18918 return __udivdi3 ();
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (ac_try="$ac_link"
18925 case "(($ac_try" in
18926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927   *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930   (eval "$ac_link") 2>conftest.er1
18931   ac_status=$?
18932   grep -v '^ *+' conftest.er1 >conftest.err
18933   rm -f conftest.er1
18934   cat conftest.err >&5
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); } &&
18937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18938   { (case "(($ac_try" in
18939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940   *) ac_try_echo=$ac_try;;
18941 esac
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943   (eval "$ac_try") 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; } &&
18947          { ac_try='test -s conftest$ac_exeext'
18948   { (case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_try") 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; }; then
18957   ac_cv_lib_gcc___udivdi3=yes
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962         ac_cv_lib_gcc___udivdi3=no
18963 fi
18964
18965 rm -f core conftest.err conftest.$ac_objext \
18966       conftest$ac_exeext conftest.$ac_ext
18967 LIBS=$ac_check_lib_save_LIBS
18968 fi
18969 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18970 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18971 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18972
18973 cat >>confdefs.h <<\_ACEOF
18974 #define HAVE___UDIVDI3 1
18975 _ACEOF
18976
18977 fi
18978
18979   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18980 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18981 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18982   echo $ECHO_N "(cached) $ECHO_C" >&6
18983 else
18984   ac_check_lib_save_LIBS=$LIBS
18985 LIBS="-lgcc  $LIBS"
18986 cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992
18993 /* Override any GCC internal prototype to avoid an error.
18994    Use char because int might match the return type of a GCC
18995    builtin and then its argument prototype would still apply.  */
18996 #ifdef __cplusplus
18997 extern "C"
18998 #endif
18999 char __umoddi3 ();
19000 int
19001 main ()
19002 {
19003 return __umoddi3 ();
19004   ;
19005   return 0;
19006 }
19007 _ACEOF
19008 rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (ac_try="$ac_link"
19010 case "(($ac_try" in
19011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012   *) ac_try_echo=$ac_try;;
19013 esac
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015   (eval "$ac_link") 2>conftest.er1
19016   ac_status=$?
19017   grep -v '^ *+' conftest.er1 >conftest.err
19018   rm -f conftest.er1
19019   cat conftest.err >&5
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } &&
19022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023   { (case "(($ac_try" in
19024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025   *) ac_try_echo=$ac_try;;
19026 esac
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028   (eval "$ac_try") 2>&5
19029   ac_status=$?
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); }; } &&
19032          { ac_try='test -s conftest$ac_exeext'
19033   { (case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_try") 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; }; then
19042   ac_cv_lib_gcc___umoddi3=yes
19043 else
19044   echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047         ac_cv_lib_gcc___umoddi3=no
19048 fi
19049
19050 rm -f core conftest.err conftest.$ac_objext \
19051       conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19053 fi
19054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19055 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19056 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19057
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE___UMODDI3 1
19060 _ACEOF
19061
19062 fi
19063
19064
19065   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19066 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_gcc___main+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   ac_check_lib_save_LIBS=$LIBS
19071 LIBS="-lgcc  $LIBS"
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 /* Override any GCC internal prototype to avoid an error.
19080    Use char because int might match the return type of a GCC
19081    builtin and then its argument prototype would still apply.  */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char __main ();
19086 int
19087 main ()
19088 {
19089 return __main ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_link") 2>conftest.er1
19102   ac_status=$?
19103   grep -v '^ *+' conftest.er1 >conftest.err
19104   rm -f conftest.er1
19105   cat conftest.err >&5
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } &&
19108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109   { (case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_try") 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); }; } &&
19118          { ac_try='test -s conftest$ac_exeext'
19119   { (case "(($ac_try" in
19120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121   *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124   (eval "$ac_try") 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; }; then
19128   ac_cv_lib_gcc___main=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         ac_cv_lib_gcc___main=no
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext \
19137       conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19139 fi
19140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19141 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19142 if test $ac_cv_lib_gcc___main = yes; then
19143
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE___MAIN 1
19146 _ACEOF
19147
19148 fi
19149
19150   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19151 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19152 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155   ac_check_lib_save_LIBS=$LIBS
19156 LIBS="-lgcc  $LIBS"
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any GCC internal prototype to avoid an error.
19165    Use char because int might match the return type of a GCC
19166    builtin and then its argument prototype would still apply.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 char __cmpdi2 ();
19171 int
19172 main ()
19173 {
19174 return __cmpdi2 ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186   (eval "$ac_link") 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194   { (case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_try") 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; } &&
19203          { ac_try='test -s conftest$ac_exeext'
19204   { (case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209   (eval "$ac_try") 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213   ac_cv_lib_gcc___cmpdi2=yes
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218         ac_cv_lib_gcc___cmpdi2=no
19219 fi
19220
19221 rm -f core conftest.err conftest.$ac_objext \
19222       conftest$ac_exeext conftest.$ac_ext
19223 LIBS=$ac_check_lib_save_LIBS
19224 fi
19225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19226 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19227 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19228
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE___CMPDI2 1
19231 _ACEOF
19232
19233 fi
19234
19235 fi
19236
19237 if test "$llvm_cv_os_type" = "MingW" ; then
19238   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19239 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19240   cat >conftest.$ac_ext <<_ACEOF
19241 #include <windows.h>
19242 #include <imagehlp.h>
19243 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19244 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250   *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253   (eval "$ac_compile") 2>conftest.er1
19254   ac_status=$?
19255   grep -v '^ *+' conftest.er1 >conftest.err
19256   rm -f conftest.er1
19257   cat conftest.err >&5
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); } &&
19260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19261   { (case "(($ac_try" in
19262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263   *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266   (eval "$ac_try") 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; } &&
19270          { ac_try='test -s conftest.$ac_objext'
19271   { (case "(($ac_try" in
19272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273   *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276   (eval "$ac_try") 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; }; then
19280
19281   { echo "$as_me:$LINENO: result: yes" >&5
19282 echo "${ECHO_T}yes" >&6; }
19283   llvm_cv_win32_elmcb_pcstr="PCSTR"
19284
19285 else
19286   echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289
19290   { echo "$as_me:$LINENO: result: no" >&5
19291 echo "${ECHO_T}no" >&6; }
19292   llvm_cv_win32_elmcb_pcstr="PSTR"
19293
19294 fi
19295
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297
19298 cat >>confdefs.h <<_ACEOF
19299 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19300 _ACEOF
19301
19302 fi
19303
19304
19305 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19306 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19307 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   ac_ext=cpp
19311 ac_cpp='$CXXCPP $CPPFLAGS'
19312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19315
19316    cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322 #include <math.h>
19323 int
19324 main ()
19325 {
19326 float f; isnan(f);
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_compile") 2>conftest.er1
19339   ac_status=$?
19340   grep -v '^ *+' conftest.er1 >conftest.err
19341   rm -f conftest.er1
19342   cat conftest.err >&5
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } &&
19345          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19346   { (case "(($ac_try" in
19347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348   *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351   (eval "$ac_try") 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; } &&
19355          { ac_try='test -s conftest.$ac_objext'
19356   { (case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361   (eval "$ac_try") 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; }; then
19365   ac_cv_func_isnan_in_math_h=yes
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370         ac_cv_func_isnan_in_math_h=no
19371 fi
19372
19373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19374   ac_ext=c
19375 ac_cpp='$CPP $CPPFLAGS'
19376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379
19380 fi
19381 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19382 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19383
19384
19385 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19386
19387 cat >>confdefs.h <<\_ACEOF
19388 #define HAVE_ISNAN_IN_MATH_H 1
19389 _ACEOF
19390
19391 fi
19392
19393 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19394 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19395 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   ac_ext=cpp
19399 ac_cpp='$CXXCPP $CPPFLAGS'
19400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19403
19404    cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h.  */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h.  */
19410 #include <cmath>
19411 int
19412 main ()
19413 {
19414 float f; isnan(f);
19415   ;
19416   return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest.$ac_objext
19420 if { (ac_try="$ac_compile"
19421 case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_compile") 2>conftest.er1
19427   ac_status=$?
19428   grep -v '^ *+' conftest.er1 >conftest.err
19429   rm -f conftest.er1
19430   cat conftest.err >&5
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } &&
19433          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19434   { (case "(($ac_try" in
19435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436   *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439   (eval "$ac_try") 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }; } &&
19443          { ac_try='test -s conftest.$ac_objext'
19444   { (case "(($ac_try" in
19445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446   *) ac_try_echo=$ac_try;;
19447 esac
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449   (eval "$ac_try") 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; }; then
19453   ac_cv_func_isnan_in_cmath=yes
19454 else
19455   echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19457
19458         ac_cv_func_isnan_in_cmath=no
19459 fi
19460
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462   ac_ext=c
19463 ac_cpp='$CPP $CPPFLAGS'
19464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467
19468 fi
19469 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19470 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19471
19472 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19473
19474 cat >>confdefs.h <<\_ACEOF
19475 #define HAVE_ISNAN_IN_CMATH 1
19476 _ACEOF
19477
19478 fi
19479
19480 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19481 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19482 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19483   echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485   ac_ext=cpp
19486 ac_cpp='$CXXCPP $CPPFLAGS'
19487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19490
19491    cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497 #include <cmath>
19498 int
19499 main ()
19500 {
19501 float f; std::isnan(f);
19502   ;
19503   return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513   (eval "$ac_compile") 2>conftest.er1
19514   ac_status=$?
19515   grep -v '^ *+' conftest.er1 >conftest.err
19516   rm -f conftest.er1
19517   cat conftest.err >&5
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); } &&
19520          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19521   { (case "(($ac_try" in
19522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523   *) ac_try_echo=$ac_try;;
19524 esac
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526   (eval "$ac_try") 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); }; } &&
19530          { ac_try='test -s conftest.$ac_objext'
19531   { (case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_try") 2>&5
19537   ac_status=$?
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); }; }; then
19540   ac_cv_func_std_isnan_in_cmath=yes
19541 else
19542   echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545         ac_cv_func_std_isnan_in_cmath=no
19546 fi
19547
19548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19549   ac_ext=c
19550 ac_cpp='$CPP $CPPFLAGS'
19551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19554
19555 fi
19556 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19557 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19558
19559 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19560
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE_STD_ISNAN_IN_CMATH 1
19563 _ACEOF
19564
19565 fi
19566
19567
19568 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19569 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19570 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19571   echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573   ac_ext=cpp
19574 ac_cpp='$CXXCPP $CPPFLAGS'
19575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19578
19579    cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585 #include <math.h>
19586 int
19587 main ()
19588 {
19589 float f; isinf(f);
19590   ;
19591   return 0;
19592 }
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (ac_try="$ac_compile"
19596 case "(($ac_try" in
19597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598   *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601   (eval "$ac_compile") 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } &&
19608          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19609   { (case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_try") 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; } &&
19618          { ac_try='test -s conftest.$ac_objext'
19619   { (case "(($ac_try" in
19620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621   *) ac_try_echo=$ac_try;;
19622 esac
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624   (eval "$ac_try") 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; }; then
19628   ac_cv_func_isinf_in_math_h=yes
19629 else
19630   echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633         ac_cv_func_isinf_in_math_h=no
19634 fi
19635
19636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637   ac_ext=c
19638 ac_cpp='$CPP $CPPFLAGS'
19639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19642
19643 fi
19644 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19645 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19646
19647 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19648
19649 cat >>confdefs.h <<\_ACEOF
19650 #define HAVE_ISINF_IN_MATH_H 1
19651 _ACEOF
19652
19653 fi
19654
19655 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19656 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19657 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   ac_ext=cpp
19661 ac_cpp='$CXXCPP $CPPFLAGS'
19662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19665
19666    cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 #include <cmath>
19673 int
19674 main ()
19675 {
19676 float f; isinf(f);
19677   ;
19678   return 0;
19679 }
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_compile") 2>conftest.er1
19689   ac_status=$?
19690   grep -v '^ *+' conftest.er1 >conftest.err
19691   rm -f conftest.er1
19692   cat conftest.err >&5
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); } &&
19695          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19696   { (case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_try") 2>&5
19702   ac_status=$?
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); }; } &&
19705          { ac_try='test -s conftest.$ac_objext'
19706   { (case "(($ac_try" in
19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708   *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711   (eval "$ac_try") 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; }; then
19715   ac_cv_func_isinf_in_cmath=yes
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720         ac_cv_func_isinf_in_cmath=no
19721 fi
19722
19723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724   ac_ext=c
19725 ac_cpp='$CPP $CPPFLAGS'
19726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19729
19730 fi
19731 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19732 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19733
19734 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19735
19736 cat >>confdefs.h <<\_ACEOF
19737 #define HAVE_ISINF_IN_CMATH 1
19738 _ACEOF
19739
19740 fi
19741
19742 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19743 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19744 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   ac_ext=cpp
19748 ac_cpp='$CXXCPP $CPPFLAGS'
19749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19752
19753    cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 #include <cmath>
19760 int
19761 main ()
19762 {
19763 float f; std::isinf(f)}
19764   ;
19765   return 0;
19766 }
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772   *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775   (eval "$ac_compile") 2>conftest.er1
19776   ac_status=$?
19777   grep -v '^ *+' conftest.er1 >conftest.err
19778   rm -f conftest.er1
19779   cat conftest.err >&5
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } &&
19782          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19783   { (case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_try") 2>&5
19789   ac_status=$?
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); }; } &&
19792          { ac_try='test -s conftest.$ac_objext'
19793   { (case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798   (eval "$ac_try") 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   ac_cv_func_std_isinf_in_cmath=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807         ac_cv_func_std_isinf_in_cmath=no
19808 fi
19809
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811   ac_ext=c
19812 ac_cpp='$CPP $CPPFLAGS'
19813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19816
19817 fi
19818 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19819 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19820
19821 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19822
19823 cat >>confdefs.h <<\_ACEOF
19824 #define HAVE_STD_ISINF_IN_CMATH 1
19825 _ACEOF
19826
19827 fi
19828
19829 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19830 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19831 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19832   echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834   ac_ext=cpp
19835 ac_cpp='$CXXCPP $CPPFLAGS'
19836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19839
19840    cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846 #include <ieeefp.h>
19847 int
19848 main ()
19849 {
19850 float f; finite(f);
19851   ;
19852   return 0;
19853 }
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_compile") 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } &&
19869          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19870   { (case "(($ac_try" in
19871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872   *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875   (eval "$ac_try") 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; } &&
19879          { ac_try='test -s conftest.$ac_objext'
19880   { (case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885   (eval "$ac_try") 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; }; then
19889   ac_cv_func_finite_in_ieeefp_h=yes
19890 else
19891   echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894         ac_cv_func_finite_in_ieeefp_h=no
19895 fi
19896
19897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898   ac_ext=c
19899 ac_cpp='$CPP $CPPFLAGS'
19900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19903
19904 fi
19905 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19906 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19907
19908 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19909
19910 cat >>confdefs.h <<\_ACEOF
19911 #define HAVE_FINITE_IN_IEEEFP_H 1
19912 _ACEOF
19913
19914 fi
19915
19916
19917
19918 if test "$llvm_cv_platform_type" = "Unix" ; then
19919
19920
19921 for ac_header in stdlib.h unistd.h
19922 do
19923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19925   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 fi
19930 ac_res=`eval echo '${'$as_ac_Header'}'`
19931                { echo "$as_me:$LINENO: result: $ac_res" >&5
19932 echo "${ECHO_T}$ac_res" >&6; }
19933 else
19934   # Is the header compilable?
19935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943 $ac_includes_default
19944 #include <$ac_header>
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_compile") 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } &&
19960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19961   { (case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_try") 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; } &&
19970          { ac_try='test -s conftest.$ac_objext'
19971   { (case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_try") 2>&5
19977   ac_status=$?
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); }; }; then
19980   ac_header_compiler=yes
19981 else
19982   echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985         ac_header_compiler=no
19986 fi
19987
19988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19990 echo "${ECHO_T}$ac_header_compiler" >&6; }
19991
19992 # Is the header present?
19993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h.  */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h.  */
20001 #include <$ac_header>
20002 _ACEOF
20003 if { (ac_try="$ac_cpp conftest.$ac_ext"
20004 case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } >/dev/null; then
20016   if test -s conftest.err; then
20017     ac_cpp_err=$ac_c_preproc_warn_flag
20018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20019   else
20020     ac_cpp_err=
20021   fi
20022 else
20023   ac_cpp_err=yes
20024 fi
20025 if test -z "$ac_cpp_err"; then
20026   ac_header_preproc=yes
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031   ac_header_preproc=no
20032 fi
20033
20034 rm -f conftest.err conftest.$ac_ext
20035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20036 echo "${ECHO_T}$ac_header_preproc" >&6; }
20037
20038 # So?  What about this header?
20039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20040   yes:no: )
20041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20045     ac_header_preproc=yes
20046     ;;
20047   no:yes:* )
20048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20060     ( cat <<\_ASBOX
20061 ## ----------------------------------- ##
20062 ## Report this to llvmbugs@cs.uiuc.edu ##
20063 ## ----------------------------------- ##
20064 _ASBOX
20065      ) | sed "s/^/$as_me: WARNING:     /" >&2
20066     ;;
20067 esac
20068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   eval "$as_ac_Header=\$ac_header_preproc"
20074 fi
20075 ac_res=`eval echo '${'$as_ac_Header'}'`
20076                { echo "$as_me:$LINENO: result: $ac_res" >&5
20077 echo "${ECHO_T}$ac_res" >&6; }
20078
20079 fi
20080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20081   cat >>confdefs.h <<_ACEOF
20082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20083 _ACEOF
20084
20085 fi
20086
20087 done
20088
20089
20090 for ac_func in getpagesize
20091 do
20092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h.  */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h.  */
20104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20106 #define $ac_func innocuous_$ac_func
20107
20108 /* System header to define __stub macros and hopefully few prototypes,
20109     which can conflict with char $ac_func (); below.
20110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20111     <limits.h> exists even on freestanding compilers.  */
20112
20113 #ifdef __STDC__
20114 # include <limits.h>
20115 #else
20116 # include <assert.h>
20117 #endif
20118
20119 #undef $ac_func
20120
20121 /* Override any GCC internal prototype to avoid an error.
20122    Use char because int might match the return type of a GCC
20123    builtin and then its argument prototype would still apply.  */
20124 #ifdef __cplusplus
20125 extern "C"
20126 #endif
20127 char $ac_func ();
20128 /* The GNU C library defines this for functions which it implements
20129     to always fail with ENOSYS.  Some functions are actually named
20130     something starting with __ and the normal name is an alias.  */
20131 #if defined __stub_$ac_func || defined __stub___$ac_func
20132 choke me
20133 #endif
20134
20135 int
20136 main ()
20137 {
20138 return $ac_func ();
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_link") 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20158   { (case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_try") 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; } &&
20167          { ac_try='test -s conftest$ac_exeext'
20168   { (case "(($ac_try" in
20169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170   *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173   (eval "$ac_try") 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; }; then
20177   eval "$as_ac_var=yes"
20178 else
20179   echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20181
20182         eval "$as_ac_var=no"
20183 fi
20184
20185 rm -f core conftest.err conftest.$ac_objext \
20186       conftest$ac_exeext conftest.$ac_ext
20187 fi
20188 ac_res=`eval echo '${'$as_ac_var'}'`
20189                { echo "$as_me:$LINENO: result: $ac_res" >&5
20190 echo "${ECHO_T}$ac_res" >&6; }
20191 if test `eval echo '${'$as_ac_var'}'` = yes; then
20192   cat >>confdefs.h <<_ACEOF
20193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20194 _ACEOF
20195
20196 fi
20197 done
20198
20199 { echo "$as_me:$LINENO: checking for working mmap" >&5
20200 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20201 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20202   echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204   if test "$cross_compiling" = yes; then
20205   ac_cv_func_mmap_fixed_mapped=no
20206 else
20207   cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213 $ac_includes_default
20214 /* malloc might have been renamed as rpl_malloc. */
20215 #undef malloc
20216
20217 /* Thanks to Mike Haertel and Jim Avera for this test.
20218    Here is a matrix of mmap possibilities:
20219         mmap private not fixed
20220         mmap private fixed at somewhere currently unmapped
20221         mmap private fixed at somewhere already mapped
20222         mmap shared not fixed
20223         mmap shared fixed at somewhere currently unmapped
20224         mmap shared fixed at somewhere already mapped
20225    For private mappings, we should verify that changes cannot be read()
20226    back from the file, nor mmap's back from the file at a different
20227    address.  (There have been systems where private was not correctly
20228    implemented like the infamous i386 svr4.0, and systems where the
20229    VM page cache was not coherent with the file system buffer cache
20230    like early versions of FreeBSD and possibly contemporary NetBSD.)
20231    For shared mappings, we should conversely verify that changes get
20232    propagated back to all the places they're supposed to be.
20233
20234    Grep wants private fixed already mapped.
20235    The main things grep needs to know about mmap are:
20236    * does it exist and is it safe to write into the mmap'd area
20237    * how to use it (BSD variants)  */
20238
20239 #include <fcntl.h>
20240 #include <sys/mman.h>
20241
20242 #if !STDC_HEADERS && !HAVE_STDLIB_H
20243 char *malloc ();
20244 #endif
20245
20246 /* This mess was copied from the GNU getpagesize.h.  */
20247 #if !HAVE_GETPAGESIZE
20248 /* Assume that all systems that can run configure have sys/param.h.  */
20249 # if !HAVE_SYS_PARAM_H
20250 #  define HAVE_SYS_PARAM_H 1
20251 # endif
20252
20253 # ifdef _SC_PAGESIZE
20254 #  define getpagesize() sysconf(_SC_PAGESIZE)
20255 # else /* no _SC_PAGESIZE */
20256 #  if HAVE_SYS_PARAM_H
20257 #   include <sys/param.h>
20258 #   ifdef EXEC_PAGESIZE
20259 #    define getpagesize() EXEC_PAGESIZE
20260 #   else /* no EXEC_PAGESIZE */
20261 #    ifdef NBPG
20262 #     define getpagesize() NBPG * CLSIZE
20263 #     ifndef CLSIZE
20264 #      define CLSIZE 1
20265 #     endif /* no CLSIZE */
20266 #    else /* no NBPG */
20267 #     ifdef NBPC
20268 #      define getpagesize() NBPC
20269 #     else /* no NBPC */
20270 #      ifdef PAGESIZE
20271 #       define getpagesize() PAGESIZE
20272 #      endif /* PAGESIZE */
20273 #     endif /* no NBPC */
20274 #    endif /* no NBPG */
20275 #   endif /* no EXEC_PAGESIZE */
20276 #  else /* no HAVE_SYS_PARAM_H */
20277 #   define getpagesize() 8192   /* punt totally */
20278 #  endif /* no HAVE_SYS_PARAM_H */
20279 # endif /* no _SC_PAGESIZE */
20280
20281 #endif /* no HAVE_GETPAGESIZE */
20282
20283 int
20284 main ()
20285 {
20286   char *data, *data2, *data3;
20287   int i, pagesize;
20288   int fd;
20289
20290   pagesize = getpagesize ();
20291
20292   /* First, make a file with some known garbage in it. */
20293   data = (char *) malloc (pagesize);
20294   if (!data)
20295     return 1;
20296   for (i = 0; i < pagesize; ++i)
20297     *(data + i) = rand ();
20298   umask (0);
20299   fd = creat ("conftest.mmap", 0600);
20300   if (fd < 0)
20301     return 1;
20302   if (write (fd, data, pagesize) != pagesize)
20303     return 1;
20304   close (fd);
20305
20306   /* Next, try to mmap the file at a fixed address which already has
20307      something else allocated at it.  If we can, also make sure that
20308      we see the same garbage.  */
20309   fd = open ("conftest.mmap", O_RDWR);
20310   if (fd < 0)
20311     return 1;
20312   data2 = (char *) malloc (2 * pagesize);
20313   if (!data2)
20314     return 1;
20315   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20316   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20317                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20318     return 1;
20319   for (i = 0; i < pagesize; ++i)
20320     if (*(data + i) != *(data2 + i))
20321       return 1;
20322
20323   /* Finally, make sure that changes to the mapped area do not
20324      percolate back to the file as seen by read().  (This is a bug on
20325      some variants of i386 svr4.0.)  */
20326   for (i = 0; i < pagesize; ++i)
20327     *(data2 + i) = *(data2 + i) + 1;
20328   data3 = (char *) malloc (pagesize);
20329   if (!data3)
20330     return 1;
20331   if (read (fd, data3, pagesize) != pagesize)
20332     return 1;
20333   for (i = 0; i < pagesize; ++i)
20334     if (*(data + i) != *(data3 + i))
20335       return 1;
20336   close (fd);
20337   return 0;
20338 }
20339 _ACEOF
20340 rm -f conftest$ac_exeext
20341 if { (ac_try="$ac_link"
20342 case "(($ac_try" in
20343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344   *) ac_try_echo=$ac_try;;
20345 esac
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347   (eval "$ac_link") 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20351   { (case "(($ac_try" in
20352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353   *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356   (eval "$ac_try") 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; }; then
20360   ac_cv_func_mmap_fixed_mapped=yes
20361 else
20362   echo "$as_me: program exited with status $ac_status" >&5
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366 ( exit $ac_status )
20367 ac_cv_func_mmap_fixed_mapped=no
20368 fi
20369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20370 fi
20371
20372
20373 fi
20374 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20375 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20376 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20377
20378 cat >>confdefs.h <<\_ACEOF
20379 #define HAVE_MMAP 1
20380 _ACEOF
20381
20382 fi
20383 rm -f conftest.mmap
20384
20385   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20386 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20387 if test "${ac_cv_func_mmap_file+set}" = set; then
20388   echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390    ac_ext=c
20391 ac_cpp='$CPP $CPPFLAGS'
20392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20395
20396   if test "$cross_compiling" = yes; then
20397   ac_cv_func_mmap_file=no
20398 else
20399   cat >conftest.$ac_ext <<_ACEOF
20400
20401     /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20406
20407 #include <sys/types.h>
20408 #include <sys/mman.h>
20409 #include <fcntl.h>
20410
20411 int
20412 main ()
20413 {
20414
20415   int fd;
20416   fd = creat ("foo",0777);
20417   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20418   unlink ("foo");
20419   return (fd != (int) MAP_FAILED);
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431   (eval "$ac_link") 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20435   { (case "(($ac_try" in
20436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437   *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440   (eval "$ac_try") 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; }; then
20444   ac_cv_func_mmap_file=yes
20445 else
20446   echo "$as_me: program exited with status $ac_status" >&5
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 ( exit $ac_status )
20451 ac_cv_func_mmap_file=no
20452 fi
20453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20454 fi
20455
20456
20457   ac_ext=c
20458 ac_cpp='$CPP $CPPFLAGS'
20459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20462
20463
20464 fi
20465 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20466 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20467 if test "$ac_cv_func_mmap_file" = yes; then
20468
20469 cat >>confdefs.h <<\_ACEOF
20470 #define HAVE_MMAP_FILE
20471 _ACEOF
20472
20473    MMAP_FILE=yes
20474
20475 fi
20476
20477   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20478 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20479 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20480   echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482   if test "$llvm_cv_os_type" = "Interix" ; then
20483    ac_cv_need_dev_zero_for_mmap=yes
20484  else
20485    ac_cv_need_dev_zero_for_mmap=no
20486  fi
20487
20488 fi
20489 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20490 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20491 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20492
20493 cat >>confdefs.h <<\_ACEOF
20494 #define NEED_DEV_ZERO_FOR_MMAP 1
20495 _ACEOF
20496
20497 fi
20498
20499   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20500   then
20501     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20502 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20503   fi
20504   if test "$ac_cv_func_mmap_file" = "no"
20505   then
20506     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20507 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20508   fi
20509 fi
20510
20511 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20512 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20513 ac_ext=cpp
20514 ac_cpp='$CXXCPP $CPPFLAGS'
20515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20518
20519 cat >conftest.$ac_ext <<_ACEOF
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 int main() {
20526         volatile unsigned long val = 1;
20527         __sync_synchronize();
20528         __sync_val_compare_and_swap(&val, 1, 0);
20529         __sync_add_and_fetch(&val, 1);
20530         __sync_sub_and_fetch(&val, 1);
20531         return 0;
20532       }
20533
20534 _ACEOF
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (ac_try="$ac_link"
20537 case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_link") 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } &&
20549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20550   { (case "(($ac_try" in
20551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552   *) ac_try_echo=$ac_try;;
20553 esac
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555   (eval "$ac_try") 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; } &&
20559          { ac_try='test -s conftest$ac_exeext'
20560   { (case "(($ac_try" in
20561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562   *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565   (eval "$ac_try") 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; }; then
20569   ac_ext=c
20570 ac_cpp='$CPP $CPPFLAGS'
20571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20574
20575   { echo "$as_me:$LINENO: result: yes" >&5
20576 echo "${ECHO_T}yes" >&6; }
20577
20578 cat >>confdefs.h <<\_ACEOF
20579 #define LLVM_HAS_ATOMICS 1
20580 _ACEOF
20581
20582 else
20583   echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586         { echo "$as_me:$LINENO: result: no" >&5
20587 echo "${ECHO_T}no" >&6; }
20588
20589 cat >>confdefs.h <<\_ACEOF
20590 #define LLVM_HAS_ATOMICS 0
20591 _ACEOF
20592
20593   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20594 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext \
20598       conftest$ac_exeext conftest.$ac_ext
20599
20600
20601 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20602   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20603 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20604 if test "${llvm_cv_linux_mixed+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607    ac_ext=c
20608 ac_cpp='$CPP $CPPFLAGS'
20609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20612
20613   cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h.  */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h.  */
20619 #ifndef __x86_64__
20620        error: Not x86-64 even if uname says so!
20621       #endif
20622
20623 int
20624 main ()
20625 {
20626
20627   ;
20628   return 0;
20629 }
20630 _ACEOF
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635   *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638   (eval "$ac_compile") 2>conftest.er1
20639   ac_status=$?
20640   grep -v '^ *+' conftest.er1 >conftest.err
20641   rm -f conftest.er1
20642   cat conftest.err >&5
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); } &&
20645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646   { (case "(($ac_try" in
20647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648   *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651   (eval "$ac_try") 2>&5
20652   ac_status=$?
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); }; } &&
20655          { ac_try='test -s conftest.$ac_objext'
20656   { (case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661   (eval "$ac_try") 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   llvm_cv_linux_mixed=no
20666 else
20667   echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670         llvm_cv_linux_mixed=yes
20671 fi
20672
20673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20674   ac_ext=c
20675 ac_cpp='$CPP $CPPFLAGS'
20676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20679
20680
20681 fi
20682 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20683 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20684
20685   if test "$llvm_cv_linux_mixed" = "yes"; then
20686     llvm_cv_target_arch="x86"
20687     ARCH="x86"
20688   fi
20689 fi
20690
20691
20692 for ac_func in __dso_handle
20693 do
20694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20698   echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700   cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20708 #define $ac_func innocuous_$ac_func
20709
20710 /* System header to define __stub macros and hopefully few prototypes,
20711     which can conflict with char $ac_func (); below.
20712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20713     <limits.h> exists even on freestanding compilers.  */
20714
20715 #ifdef __STDC__
20716 # include <limits.h>
20717 #else
20718 # include <assert.h>
20719 #endif
20720
20721 #undef $ac_func
20722
20723 /* Override any GCC internal prototype to avoid an error.
20724    Use char because int might match the return type of a GCC
20725    builtin and then its argument prototype would still apply.  */
20726 #ifdef __cplusplus
20727 extern "C"
20728 #endif
20729 char $ac_func ();
20730 /* The GNU C library defines this for functions which it implements
20731     to always fail with ENOSYS.  Some functions are actually named
20732     something starting with __ and the normal name is an alias.  */
20733 #if defined __stub_$ac_func || defined __stub___$ac_func
20734 choke me
20735 #endif
20736
20737 int
20738 main ()
20739 {
20740 return $ac_func ();
20741   ;
20742   return 0;
20743 }
20744 _ACEOF
20745 rm -f conftest.$ac_objext conftest$ac_exeext
20746 if { (ac_try="$ac_link"
20747 case "(($ac_try" in
20748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749   *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752   (eval "$ac_link") 2>conftest.er1
20753   ac_status=$?
20754   grep -v '^ *+' conftest.er1 >conftest.err
20755   rm -f conftest.er1
20756   cat conftest.err >&5
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); } &&
20759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20760   { (case "(($ac_try" in
20761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762   *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765   (eval "$ac_try") 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; } &&
20769          { ac_try='test -s conftest$ac_exeext'
20770   { (case "(($ac_try" in
20771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772   *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775   (eval "$ac_try") 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779   eval "$as_ac_var=yes"
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784         eval "$as_ac_var=no"
20785 fi
20786
20787 rm -f core conftest.err conftest.$ac_objext \
20788       conftest$ac_exeext conftest.$ac_ext
20789 fi
20790 ac_res=`eval echo '${'$as_ac_var'}'`
20791                { echo "$as_me:$LINENO: result: $ac_res" >&5
20792 echo "${ECHO_T}$ac_res" >&6; }
20793 if test `eval echo '${'$as_ac_var'}'` = yes; then
20794   cat >>confdefs.h <<_ACEOF
20795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20796 _ACEOF
20797
20798 fi
20799 done
20800
20801
20802 SHLIBEXT=$libltdl_cv_shlibext
20803
20804
20805 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20806
20807
20808 # Translate the various configuration directories and other basic
20809 # information into substitutions that will end up in Makefile.config.in
20810 # that these configured values can be used by the makefiles
20811 if test "${prefix}" = "NONE" ; then
20812   prefix="/usr/local"
20813 fi
20814 eval LLVM_PREFIX="${prefix}";
20815 eval LLVM_BINDIR="${prefix}/bin";
20816 eval LLVM_LIBDIR="${prefix}/lib";
20817 eval LLVM_DATADIR="${prefix}/share/llvm";
20818 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20819 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20820 eval LLVM_INCLUDEDIR="${prefix}/include";
20821 eval LLVM_INFODIR="${prefix}/info";
20822 eval LLVM_MANDIR="${prefix}/man";
20823 LLVM_CONFIGTIME=`date`
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835 # Place the various directores into the config.h file as #defines so that we
20836 # can know about the installation paths within LLVM.
20837
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_PREFIX "$LLVM_PREFIX"
20840 _ACEOF
20841
20842
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_BINDIR "$LLVM_BINDIR"
20845 _ACEOF
20846
20847
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20850 _ACEOF
20851
20852
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_DATADIR "$LLVM_DATADIR"
20855 _ACEOF
20856
20857
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20860 _ACEOF
20861
20862
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20865 _ACEOF
20866
20867
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20870 _ACEOF
20871
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_INFODIR "$LLVM_INFODIR"
20875 _ACEOF
20876
20877
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_MANDIR "$LLVM_MANDIR"
20880 _ACEOF
20881
20882
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20885 _ACEOF
20886
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20890 _ACEOF
20891
20892
20893 # Determine which bindings to build.
20894 if test "$BINDINGS_TO_BUILD" = auto ; then
20895   BINDINGS_TO_BUILD=""
20896   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20897     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20898   fi
20899 fi
20900 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20901
20902
20903 # This isn't really configurey, but it avoids having to repeat the list in
20904 # other files.
20905 ALL_BINDINGS=ocaml
20906
20907
20908 # Do any work necessary to ensure that bindings have what they need.
20909 binding_prereqs_failed=0
20910 for a_binding in $BINDINGS_TO_BUILD ; do
20911   case "$a_binding" in
20912   ocaml)
20913     if test "x$OCAMLC" = x ; then
20914       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20915 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20916       binding_prereqs_failed=1
20917     fi
20918     if test "x$OCAMLDEP" = x ; then
20919       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20920 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20921       binding_prereqs_failed=1
20922     fi
20923     if test "x$OCAMLOPT" = x ; then
20924       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20925 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20926           fi
20927     if test "x$with_ocaml_libdir" != xauto ; then
20928       OCAML_LIBDIR=$with_ocaml_libdir
20929
20930     else
20931       ocaml_stdlib="`"$OCAMLC" -where`"
20932       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20933       then
20934         # ocaml stdlib is beneath our prefix; use stdlib
20935         OCAML_LIBDIR=$ocaml_stdlib
20936
20937       else
20938         # ocaml stdlib is outside our prefix; use libdir/ocaml
20939         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20940
20941       fi
20942     fi
20943     ;;
20944   esac
20945 done
20946 if test "$binding_prereqs_failed" = 1 ; then
20947   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20948 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20949    { (exit 1); exit 1; }; }
20950 fi
20951
20952 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20953 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20954 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20955   echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957    ac_ext=cpp
20958 ac_cpp='$CXXCPP $CPPFLAGS'
20959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20962
20963   oldcxxflags="$CXXFLAGS"
20964   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971
20972 int
20973 main ()
20974 {
20975
20976   ;
20977   return 0;
20978 }
20979 _ACEOF
20980 rm -f conftest.$ac_objext
20981 if { (ac_try="$ac_compile"
20982 case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_compile") 2>conftest.er1
20988   ac_status=$?
20989   grep -v '^ *+' conftest.er1 >conftest.err
20990   rm -f conftest.er1
20991   cat conftest.err >&5
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } &&
20994          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20995   { (case "(($ac_try" in
20996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997   *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000   (eval "$ac_try") 2>&5
21001   ac_status=$?
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); }; } &&
21004          { ac_try='test -s conftest.$ac_objext'
21005   { (case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010   (eval "$ac_try") 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; }; then
21014   llvm_cv_cxx_visibility_inlines_hidden=yes
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019         llvm_cv_cxx_visibility_inlines_hidden=no
21020 fi
21021
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023   CXXFLAGS="$oldcxxflags"
21024   ac_ext=c
21025 ac_cpp='$CPP $CPPFLAGS'
21026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21029
21030
21031 fi
21032 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21033 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21034 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21035   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21036
21037 else
21038   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21039
21040 fi
21041
21042
21043 if test "$llvm_cv_link_use_r" = "yes" ; then
21044   RPATH="-Wl,-R"
21045 else
21046   RPATH="-Wl,-rpath"
21047 fi
21048
21049
21050 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21051   RDYNAMIC="-Wl,-export-dynamic"
21052 else
21053   RDYNAMIC=""
21054 fi
21055
21056
21057
21058 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21059
21060
21061
21062
21063
21064
21065 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21066
21067 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21068
21069 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21070
21071 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21072
21073 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21074
21075
21076 ac_config_files="$ac_config_files Makefile.config"
21077
21078
21079 ac_config_files="$ac_config_files llvm.spec"
21080
21081
21082 ac_config_files="$ac_config_files docs/doxygen.cfg"
21083
21084 if test -f ${srcdir}/tools/clang/README.txt; then
21085   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21086
21087 fi
21088
21089 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21090
21091
21092 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21093
21094
21095 ac_config_commands="$ac_config_commands setup"
21096
21097 ac_config_commands="$ac_config_commands Makefile"
21098
21099
21100 ac_config_commands="$ac_config_commands Makefile.common"
21101
21102
21103 ac_config_commands="$ac_config_commands examples/Makefile"
21104
21105
21106 ac_config_commands="$ac_config_commands lib/Makefile"
21107
21108
21109 ac_config_commands="$ac_config_commands runtime/Makefile"
21110
21111
21112 ac_config_commands="$ac_config_commands test/Makefile"
21113
21114
21115 ac_config_commands="$ac_config_commands test/Makefile.tests"
21116
21117
21118 ac_config_commands="$ac_config_commands unittests/Makefile"
21119
21120
21121 ac_config_commands="$ac_config_commands tools/Makefile"
21122
21123
21124 ac_config_commands="$ac_config_commands utils/Makefile"
21125
21126
21127 ac_config_commands="$ac_config_commands projects/Makefile"
21128
21129
21130 ac_config_commands="$ac_config_commands bindings/Makefile"
21131
21132
21133 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21134
21135
21136
21137 cat >confcache <<\_ACEOF
21138 # This file is a shell script that caches the results of configure
21139 # tests run on this system so they can be shared between configure
21140 # scripts and configure runs, see configure's option --config-cache.
21141 # It is not useful on other systems.  If it contains results you don't
21142 # want to keep, you may remove or edit it.
21143 #
21144 # config.status only pays attention to the cache file if you give it
21145 # the --recheck option to rerun configure.
21146 #
21147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21149 # following values.
21150
21151 _ACEOF
21152
21153 # The following way of writing the cache mishandles newlines in values,
21154 # but we know of no workaround that is simple, portable, and efficient.
21155 # So, we kill variables containing newlines.
21156 # Ultrix sh set writes to stderr and can't be redirected directly,
21157 # and sets the high bit in the cache file unless we assign to the vars.
21158 (
21159   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21160     eval ac_val=\$$ac_var
21161     case $ac_val in #(
21162     *${as_nl}*)
21163       case $ac_var in #(
21164       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21165 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21166       esac
21167       case $ac_var in #(
21168       _ | IFS | as_nl) ;; #(
21169       *) $as_unset $ac_var ;;
21170       esac ;;
21171     esac
21172   done
21173
21174   (set) 2>&1 |
21175     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21176     *${as_nl}ac_space=\ *)
21177       # `set' does not quote correctly, so add quotes (double-quote
21178       # substitution turns \\\\ into \\, and sed turns \\ into \).
21179       sed -n \
21180         "s/'/'\\\\''/g;
21181           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21182       ;; #(
21183     *)
21184       # `set' quotes correctly as required by POSIX, so do not add quotes.
21185       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21186       ;;
21187     esac |
21188     sort
21189 ) |
21190   sed '
21191      /^ac_cv_env_/b end
21192      t clear
21193      :clear
21194      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21195      t end
21196      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21197      :end' >>confcache
21198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21199   if test -w "$cache_file"; then
21200     test "x$cache_file" != "x/dev/null" &&
21201       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21202 echo "$as_me: updating cache $cache_file" >&6;}
21203     cat confcache >$cache_file
21204   else
21205     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21206 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21207   fi
21208 fi
21209 rm -f confcache
21210
21211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21212 # Let make expand exec_prefix.
21213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21214
21215 DEFS=-DHAVE_CONFIG_H
21216
21217 ac_libobjs=
21218 ac_ltlibobjs=
21219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21220   # 1. Remove the extension, and $U if already installed.
21221   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21222   ac_i=`echo "$ac_i" | sed "$ac_script"`
21223   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21224   #    will be set to the directory where LIBOBJS objects are built.
21225   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21226   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21227 done
21228 LIBOBJS=$ac_libobjs
21229
21230 LTLIBOBJS=$ac_ltlibobjs
21231
21232
21233 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21234   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21235 Usually this means the macro was only invoked conditionally." >&5
21236 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21237 Usually this means the macro was only invoked conditionally." >&2;}
21238    { (exit 1); exit 1; }; }
21239 fi
21240 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21241   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21242 Usually this means the macro was only invoked conditionally." >&5
21243 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21244 Usually this means the macro was only invoked conditionally." >&2;}
21245    { (exit 1); exit 1; }; }
21246 fi
21247
21248 : ${CONFIG_STATUS=./config.status}
21249 ac_clean_files_save=$ac_clean_files
21250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21251 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21253 cat >$CONFIG_STATUS <<_ACEOF
21254 #! $SHELL
21255 # Generated by $as_me.
21256 # Run this file to recreate the current configuration.
21257 # Compiler output produced by configure, useful for debugging
21258 # configure, is in config.log if it exists.
21259
21260 debug=false
21261 ac_cs_recheck=false
21262 ac_cs_silent=false
21263 SHELL=\${CONFIG_SHELL-$SHELL}
21264 _ACEOF
21265
21266 cat >>$CONFIG_STATUS <<\_ACEOF
21267 ## --------------------- ##
21268 ## M4sh Initialization.  ##
21269 ## --------------------- ##
21270
21271 # Be Bourne compatible
21272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21273   emulate sh
21274   NULLCMD=:
21275   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21276   # is contrary to our usage.  Disable this feature.
21277   alias -g '${1+"$@"}'='"$@"'
21278   setopt NO_GLOB_SUBST
21279 else
21280   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21281 fi
21282 BIN_SH=xpg4; export BIN_SH # for Tru64
21283 DUALCASE=1; export DUALCASE # for MKS sh
21284
21285
21286 # PATH needs CR
21287 # Avoid depending upon Character Ranges.
21288 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21289 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21290 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21291 as_cr_digits='0123456789'
21292 as_cr_alnum=$as_cr_Letters$as_cr_digits
21293
21294 # The user is always right.
21295 if test "${PATH_SEPARATOR+set}" != set; then
21296   echo "#! /bin/sh" >conf$$.sh
21297   echo  "exit 0"   >>conf$$.sh
21298   chmod +x conf$$.sh
21299   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21300     PATH_SEPARATOR=';'
21301   else
21302     PATH_SEPARATOR=:
21303   fi
21304   rm -f conf$$.sh
21305 fi
21306
21307 # Support unset when possible.
21308 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21309   as_unset=unset
21310 else
21311   as_unset=false
21312 fi
21313
21314
21315 # IFS
21316 # We need space, tab and new line, in precisely that order.  Quoting is
21317 # there to prevent editors from complaining about space-tab.
21318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21319 # splitting by setting IFS to empty value.)
21320 as_nl='
21321 '
21322 IFS=" ""        $as_nl"
21323
21324 # Find who we are.  Look in the path if we contain no directory separator.
21325 case $0 in
21326   *[\\/]* ) as_myself=$0 ;;
21327   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21328 for as_dir in $PATH
21329 do
21330   IFS=$as_save_IFS
21331   test -z "$as_dir" && as_dir=.
21332   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21333 done
21334 IFS=$as_save_IFS
21335
21336      ;;
21337 esac
21338 # We did not find ourselves, most probably we were run as `sh COMMAND'
21339 # in which case we are not to be found in the path.
21340 if test "x$as_myself" = x; then
21341   as_myself=$0
21342 fi
21343 if test ! -f "$as_myself"; then
21344   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21345   { (exit 1); exit 1; }
21346 fi
21347
21348 # Work around bugs in pre-3.0 UWIN ksh.
21349 for as_var in ENV MAIL MAILPATH
21350 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21351 done
21352 PS1='$ '
21353 PS2='> '
21354 PS4='+ '
21355
21356 # NLS nuisances.
21357 for as_var in \
21358   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21359   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21360   LC_TELEPHONE LC_TIME
21361 do
21362   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21363     eval $as_var=C; export $as_var
21364   else
21365     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21366   fi
21367 done
21368
21369 # Required to use basename.
21370 if expr a : '\(a\)' >/dev/null 2>&1 &&
21371    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21372   as_expr=expr
21373 else
21374   as_expr=false
21375 fi
21376
21377 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21378   as_basename=basename
21379 else
21380   as_basename=false
21381 fi
21382
21383
21384 # Name of the executable.
21385 as_me=`$as_basename -- "$0" ||
21386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21387          X"$0" : 'X\(//\)$' \| \
21388          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21389 echo X/"$0" |
21390     sed '/^.*\/\([^/][^/]*\)\/*$/{
21391             s//\1/
21392             q
21393           }
21394           /^X\/\(\/\/\)$/{
21395             s//\1/
21396             q
21397           }
21398           /^X\/\(\/\).*/{
21399             s//\1/
21400             q
21401           }
21402           s/.*/./; q'`
21403
21404 # CDPATH.
21405 $as_unset CDPATH
21406
21407
21408
21409   as_lineno_1=$LINENO
21410   as_lineno_2=$LINENO
21411   test "x$as_lineno_1" != "x$as_lineno_2" &&
21412   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21413
21414   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21415   # uniformly replaced by the line number.  The first 'sed' inserts a
21416   # line-number line after each line using $LINENO; the second 'sed'
21417   # does the real work.  The second script uses 'N' to pair each
21418   # line-number line with the line containing $LINENO, and appends
21419   # trailing '-' during substitution so that $LINENO is not a special
21420   # case at line end.
21421   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21422   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21423   # E. McMahon (1931-1989) for sed's syntax.  :-)
21424   sed -n '
21425     p
21426     /[$]LINENO/=
21427   ' <$as_myself |
21428     sed '
21429       s/[$]LINENO.*/&-/
21430       t lineno
21431       b
21432       :lineno
21433       N
21434       :loop
21435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21436       t loop
21437       s/-\n.*//
21438     ' >$as_me.lineno &&
21439   chmod +x "$as_me.lineno" ||
21440     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21441    { (exit 1); exit 1; }; }
21442
21443   # Don't try to exec as it changes $[0], causing all sort of problems
21444   # (the dirname of $[0] is not the place where we might find the
21445   # original and so on.  Autoconf is especially sensitive to this).
21446   . "./$as_me.lineno"
21447   # Exit status is that of the last command.
21448   exit
21449 }
21450
21451
21452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21453   as_dirname=dirname
21454 else
21455   as_dirname=false
21456 fi
21457
21458 ECHO_C= ECHO_N= ECHO_T=
21459 case `echo -n x` in
21460 -n*)
21461   case `echo 'x\c'` in
21462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21463   *)   ECHO_C='\c';;
21464   esac;;
21465 *)
21466   ECHO_N='-n';;
21467 esac
21468
21469 if expr a : '\(a\)' >/dev/null 2>&1 &&
21470    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21471   as_expr=expr
21472 else
21473   as_expr=false
21474 fi
21475
21476 rm -f conf$$ conf$$.exe conf$$.file
21477 if test -d conf$$.dir; then
21478   rm -f conf$$.dir/conf$$.file
21479 else
21480   rm -f conf$$.dir
21481   mkdir conf$$.dir
21482 fi
21483 echo >conf$$.file
21484 if ln -s conf$$.file conf$$ 2>/dev/null; then
21485   as_ln_s='ln -s'
21486   # ... but there are two gotchas:
21487   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21488   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21489   # In both cases, we have to default to `cp -p'.
21490   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21491     as_ln_s='cp -p'
21492 elif ln conf$$.file conf$$ 2>/dev/null; then
21493   as_ln_s=ln
21494 else
21495   as_ln_s='cp -p'
21496 fi
21497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21498 rmdir conf$$.dir 2>/dev/null
21499
21500 if mkdir -p . 2>/dev/null; then
21501   as_mkdir_p=:
21502 else
21503   test -d ./-p && rmdir ./-p
21504   as_mkdir_p=false
21505 fi
21506
21507 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21508 # systems may use methods other than mode bits to determine executability.
21509 cat >conf$$.file <<_ASEOF
21510 #! /bin/sh
21511 exit 0
21512 _ASEOF
21513 chmod +x conf$$.file
21514 if test -x conf$$.file >/dev/null 2>&1; then
21515   as_executable_p="test -x"
21516 else
21517   as_executable_p=:
21518 fi
21519 rm -f conf$$.file
21520
21521 # Sed expression to map a string onto a valid CPP name.
21522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21523
21524 # Sed expression to map a string onto a valid variable name.
21525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21526
21527
21528 exec 6>&1
21529
21530 # Save the log message, to keep $[0] and so on meaningful, and to
21531 # report actual input values of CONFIG_FILES etc. instead of their
21532 # values after options handling.
21533 ac_log="
21534 This file was extended by llvm $as_me 3.1svn, which was
21535 generated by GNU Autoconf 2.60.  Invocation command line was
21536
21537   CONFIG_FILES    = $CONFIG_FILES
21538   CONFIG_HEADERS  = $CONFIG_HEADERS
21539   CONFIG_LINKS    = $CONFIG_LINKS
21540   CONFIG_COMMANDS = $CONFIG_COMMANDS
21541   $ $0 $@
21542
21543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21544 "
21545
21546 _ACEOF
21547
21548 cat >>$CONFIG_STATUS <<_ACEOF
21549 # Files that config.status was made for.
21550 config_files="$ac_config_files"
21551 config_headers="$ac_config_headers"
21552 config_commands="$ac_config_commands"
21553
21554 _ACEOF
21555
21556 cat >>$CONFIG_STATUS <<\_ACEOF
21557 ac_cs_usage="\
21558 \`$as_me' instantiates files from templates according to the
21559 current configuration.
21560
21561 Usage: $0 [OPTIONS] [FILE]...
21562
21563   -h, --help       print this help, then exit
21564   -V, --version    print version number, then exit
21565   -q, --quiet      do not print progress messages
21566   -d, --debug      don't remove temporary files
21567       --recheck    update $as_me by reconfiguring in the same conditions
21568   --file=FILE[:TEMPLATE]
21569                    instantiate the configuration file FILE
21570   --header=FILE[:TEMPLATE]
21571                    instantiate the configuration header FILE
21572
21573 Configuration files:
21574 $config_files
21575
21576 Configuration headers:
21577 $config_headers
21578
21579 Configuration commands:
21580 $config_commands
21581
21582 Report bugs to <bug-autoconf@gnu.org>."
21583
21584 _ACEOF
21585 cat >>$CONFIG_STATUS <<_ACEOF
21586 ac_cs_version="\\
21587 llvm config.status 3.1svn
21588 configured by $0, generated by GNU Autoconf 2.60,
21589   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21590
21591 Copyright (C) 2006 Free Software Foundation, Inc.
21592 This config.status script is free software; the Free Software Foundation
21593 gives unlimited permission to copy, distribute and modify it."
21594
21595 ac_pwd='$ac_pwd'
21596 srcdir='$srcdir'
21597 INSTALL='$INSTALL'
21598 _ACEOF
21599
21600 cat >>$CONFIG_STATUS <<\_ACEOF
21601 # If no file are specified by the user, then we need to provide default
21602 # value.  By we need to know if files were specified by the user.
21603 ac_need_defaults=:
21604 while test $# != 0
21605 do
21606   case $1 in
21607   --*=*)
21608     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21609     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21610     ac_shift=:
21611     ;;
21612   *)
21613     ac_option=$1
21614     ac_optarg=$2
21615     ac_shift=shift
21616     ;;
21617   esac
21618
21619   case $ac_option in
21620   # Handling of the options.
21621   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21622     ac_cs_recheck=: ;;
21623   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21624     echo "$ac_cs_version"; exit ;;
21625   --debug | --debu | --deb | --de | --d | -d )
21626     debug=: ;;
21627   --file | --fil | --fi | --f )
21628     $ac_shift
21629     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21630     ac_need_defaults=false;;
21631   --header | --heade | --head | --hea )
21632     $ac_shift
21633     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21634     ac_need_defaults=false;;
21635   --he | --h)
21636     # Conflict between --help and --header
21637     { echo "$as_me: error: ambiguous option: $1
21638 Try \`$0 --help' for more information." >&2
21639    { (exit 1); exit 1; }; };;
21640   --help | --hel | -h )
21641     echo "$ac_cs_usage"; exit ;;
21642   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21643   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21644     ac_cs_silent=: ;;
21645
21646   # This is an error.
21647   -*) { echo "$as_me: error: unrecognized option: $1
21648 Try \`$0 --help' for more information." >&2
21649    { (exit 1); exit 1; }; } ;;
21650
21651   *) ac_config_targets="$ac_config_targets $1"
21652      ac_need_defaults=false ;;
21653
21654   esac
21655   shift
21656 done
21657
21658 ac_configure_extra_args=
21659
21660 if $ac_cs_silent; then
21661   exec 6>/dev/null
21662   ac_configure_extra_args="$ac_configure_extra_args --silent"
21663 fi
21664
21665 _ACEOF
21666 cat >>$CONFIG_STATUS <<_ACEOF
21667 if \$ac_cs_recheck; then
21668   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21669   CONFIG_SHELL=$SHELL
21670   export CONFIG_SHELL
21671   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21672 fi
21673
21674 _ACEOF
21675 cat >>$CONFIG_STATUS <<\_ACEOF
21676 exec 5>>config.log
21677 {
21678   echo
21679   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21680 ## Running $as_me. ##
21681 _ASBOX
21682   echo "$ac_log"
21683 } >&5
21684
21685 _ACEOF
21686 cat >>$CONFIG_STATUS <<_ACEOF
21687 #
21688 # INIT-COMMANDS
21689 #
21690 llvm_src="${srcdir}"
21691
21692 _ACEOF
21693
21694 cat >>$CONFIG_STATUS <<\_ACEOF
21695
21696 # Handling of arguments.
21697 for ac_config_target in $ac_config_targets
21698 do
21699   case $ac_config_target in
21700     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21701     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21702     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21703     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21704     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21705     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21706     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21707     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21708     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21709     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21710     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21711     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21712     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21713     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21714     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21715     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21716     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21717     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21718     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21719     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21720     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21721     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21722     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21723     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21724     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21725     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21726     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21727
21728   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21729 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21730    { (exit 1); exit 1; }; };;
21731   esac
21732 done
21733
21734
21735 # If the user did not use the arguments to specify the items to instantiate,
21736 # then the envvar interface is used.  Set only those that are not.
21737 # We use the long form for the default assignment because of an extremely
21738 # bizarre bug on SunOS 4.1.3.
21739 if $ac_need_defaults; then
21740   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21741   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21742   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21743 fi
21744
21745 # Have a temporary directory for convenience.  Make it in the build tree
21746 # simply because there is no reason against having it here, and in addition,
21747 # creating and moving files from /tmp can sometimes cause problems.
21748 # Hook for its removal unless debugging.
21749 # Note that there is a small window in which the directory will not be cleaned:
21750 # after its creation but before its name has been assigned to `$tmp'.
21751 $debug ||
21752 {
21753   tmp=
21754   trap 'exit_status=$?
21755   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21756 ' 0
21757   trap '{ (exit 1); exit 1; }' 1 2 13 15
21758 }
21759 # Create a (secure) tmp directory for tmp files.
21760
21761 {
21762   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21763   test -n "$tmp" && test -d "$tmp"
21764 }  ||
21765 {
21766   tmp=./conf$$-$RANDOM
21767   (umask 077 && mkdir "$tmp")
21768 } ||
21769 {
21770    echo "$me: cannot create a temporary directory in ." >&2
21771    { (exit 1); exit 1; }
21772 }
21773
21774 #
21775 # Set up the sed scripts for CONFIG_FILES section.
21776 #
21777
21778 # No need to generate the scripts if there are no CONFIG_FILES.
21779 # This happens for instance when ./config.status config.h
21780 if test -n "$CONFIG_FILES"; then
21781
21782 _ACEOF
21783
21784
21785
21786 ac_delim='%!_!# '
21787 for ac_last_try in false false false false false :; do
21788   cat >conf$$subs.sed <<_ACEOF
21789 SHELL!$SHELL$ac_delim
21790 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21791 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21792 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21793 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21794 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21795 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21796 exec_prefix!$exec_prefix$ac_delim
21797 prefix!$prefix$ac_delim
21798 program_transform_name!$program_transform_name$ac_delim
21799 bindir!$bindir$ac_delim
21800 sbindir!$sbindir$ac_delim
21801 libexecdir!$libexecdir$ac_delim
21802 datarootdir!$datarootdir$ac_delim
21803 datadir!$datadir$ac_delim
21804 sysconfdir!$sysconfdir$ac_delim
21805 sharedstatedir!$sharedstatedir$ac_delim
21806 localstatedir!$localstatedir$ac_delim
21807 includedir!$includedir$ac_delim
21808 oldincludedir!$oldincludedir$ac_delim
21809 docdir!$docdir$ac_delim
21810 infodir!$infodir$ac_delim
21811 htmldir!$htmldir$ac_delim
21812 dvidir!$dvidir$ac_delim
21813 pdfdir!$pdfdir$ac_delim
21814 psdir!$psdir$ac_delim
21815 libdir!$libdir$ac_delim
21816 localedir!$localedir$ac_delim
21817 mandir!$mandir$ac_delim
21818 DEFS!$DEFS$ac_delim
21819 ECHO_C!$ECHO_C$ac_delim
21820 ECHO_N!$ECHO_N$ac_delim
21821 ECHO_T!$ECHO_T$ac_delim
21822 LIBS!$LIBS$ac_delim
21823 build_alias!$build_alias$ac_delim
21824 host_alias!$host_alias$ac_delim
21825 target_alias!$target_alias$ac_delim
21826 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21827 CC!$CC$ac_delim
21828 CFLAGS!$CFLAGS$ac_delim
21829 LDFLAGS!$LDFLAGS$ac_delim
21830 CPPFLAGS!$CPPFLAGS$ac_delim
21831 ac_ct_CC!$ac_ct_CC$ac_delim
21832 EXEEXT!$EXEEXT$ac_delim
21833 OBJEXT!$OBJEXT$ac_delim
21834 CXX!$CXX$ac_delim
21835 CXXFLAGS!$CXXFLAGS$ac_delim
21836 ac_ct_CXX!$ac_ct_CXX$ac_delim
21837 CPP!$CPP$ac_delim
21838 subdirs!$subdirs$ac_delim
21839 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21840 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21841 build!$build$ac_delim
21842 build_cpu!$build_cpu$ac_delim
21843 build_vendor!$build_vendor$ac_delim
21844 build_os!$build_os$ac_delim
21845 host!$host$ac_delim
21846 host_cpu!$host_cpu$ac_delim
21847 host_vendor!$host_vendor$ac_delim
21848 host_os!$host_os$ac_delim
21849 target!$target$ac_delim
21850 target_cpu!$target_cpu$ac_delim
21851 target_vendor!$target_vendor$ac_delim
21852 target_os!$target_os$ac_delim
21853 OS!$OS$ac_delim
21854 HOST_OS!$HOST_OS$ac_delim
21855 TARGET_OS!$TARGET_OS$ac_delim
21856 LINKALL!$LINKALL$ac_delim
21857 NOLINKALL!$NOLINKALL$ac_delim
21858 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21859 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21860 ARCH!$ARCH$ac_delim
21861 ENDIAN!$ENDIAN$ac_delim
21862 GREP!$GREP$ac_delim
21863 EGREP!$EGREP$ac_delim
21864 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21865 BUILD_CC!$BUILD_CC$ac_delim
21866 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21867 BUILD_CXX!$BUILD_CXX$ac_delim
21868 CVSBUILD!$CVSBUILD$ac_delim
21869 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21870 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21871 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21872 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21873 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21874 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21875 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21876 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21877 JIT!$JIT$ac_delim
21878 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21879 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21880 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21881 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21882 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21883 ENABLE_PIC!$ENABLE_PIC$ac_delim
21884 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21885 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21886 _ACEOF
21887
21888   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21889     break
21890   elif $ac_last_try; then
21891     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21892 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21893    { (exit 1); exit 1; }; }
21894   else
21895     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21896   fi
21897 done
21898
21899 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21900 if test -n "$ac_eof"; then
21901   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21902   ac_eof=`expr $ac_eof + 1`
21903 fi
21904
21905 cat >>$CONFIG_STATUS <<_ACEOF
21906 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21908 _ACEOF
21909 sed '
21910 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21911 s/^/s,@/; s/!/@,|#_!!_#|/
21912 :n
21913 t n
21914 s/'"$ac_delim"'$/,g/; t
21915 s/$/\\/; p
21916 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21917 ' >>$CONFIG_STATUS <conf$$subs.sed
21918 rm -f conf$$subs.sed
21919 cat >>$CONFIG_STATUS <<_ACEOF
21920 CEOF$ac_eof
21921 _ACEOF
21922
21923
21924 ac_delim='%!_!# '
21925 for ac_last_try in false false false false false :; do
21926   cat >conf$$subs.sed <<_ACEOF
21927 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21928 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21929 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21930 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21931 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21932 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21933 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21934 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21935 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21936 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21937 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21938 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21939 NM!$NM$ac_delim
21940 ifGNUmake!$ifGNUmake$ac_delim
21941 LN_S!$LN_S$ac_delim
21942 CMP!$CMP$ac_delim
21943 CP!$CP$ac_delim
21944 DATE!$DATE$ac_delim
21945 FIND!$FIND$ac_delim
21946 MKDIR!$MKDIR$ac_delim
21947 MV!$MV$ac_delim
21948 RANLIB!$RANLIB$ac_delim
21949 AR!$AR$ac_delim
21950 RM!$RM$ac_delim
21951 SED!$SED$ac_delim
21952 TAR!$TAR$ac_delim
21953 BINPWD!$BINPWD$ac_delim
21954 GRAPHVIZ!$GRAPHVIZ$ac_delim
21955 DOT!$DOT$ac_delim
21956 FDP!$FDP$ac_delim
21957 NEATO!$NEATO$ac_delim
21958 TWOPI!$TWOPI$ac_delim
21959 CIRCO!$CIRCO$ac_delim
21960 GV!$GV$ac_delim
21961 DOTTY!$DOTTY$ac_delim
21962 XDOT_PY!$XDOT_PY$ac_delim
21963 PERL!$PERL$ac_delim
21964 HAVE_PERL!$HAVE_PERL$ac_delim
21965 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21966 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21967 INSTALL_DATA!$INSTALL_DATA$ac_delim
21968 BZIP2!$BZIP2$ac_delim
21969 CAT!$CAT$ac_delim
21970 DOXYGEN!$DOXYGEN$ac_delim
21971 GROFF!$GROFF$ac_delim
21972 GZIPBIN!$GZIPBIN$ac_delim
21973 POD2HTML!$POD2HTML$ac_delim
21974 POD2MAN!$POD2MAN$ac_delim
21975 PDFROFF!$PDFROFF$ac_delim
21976 RUNTEST!$RUNTEST$ac_delim
21977 TCLSH!$TCLSH$ac_delim
21978 ZIP!$ZIP$ac_delim
21979 OCAMLC!$OCAMLC$ac_delim
21980 OCAMLOPT!$OCAMLOPT$ac_delim
21981 OCAMLDEP!$OCAMLDEP$ac_delim
21982 OCAMLDOC!$OCAMLDOC$ac_delim
21983 GAS!$GAS$ac_delim
21984 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21985 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21986 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21987 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21988 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21989 LIBADD_DL!$LIBADD_DL$ac_delim
21990 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21991 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21992 USE_UDIS86!$USE_UDIS86$ac_delim
21993 USE_OPROFILE!$USE_OPROFILE$ac_delim
21994 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21995 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21996 MMAP_FILE!$MMAP_FILE$ac_delim
21997 SHLIBEXT!$SHLIBEXT$ac_delim
21998 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21999 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22000 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22001 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22002 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22003 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22004 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22005 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22006 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22007 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22008 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22009 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22010 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22011 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22012 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22013 RPATH!$RPATH$ac_delim
22014 RDYNAMIC!$RDYNAMIC$ac_delim
22015 LIBOBJS!$LIBOBJS$ac_delim
22016 LTLIBOBJS!$LTLIBOBJS$ac_delim
22017 _ACEOF
22018
22019   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22020     break
22021   elif $ac_last_try; then
22022     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22023 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22024    { (exit 1); exit 1; }; }
22025   else
22026     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22027   fi
22028 done
22029
22030 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22031 if test -n "$ac_eof"; then
22032   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22033   ac_eof=`expr $ac_eof + 1`
22034 fi
22035
22036 cat >>$CONFIG_STATUS <<_ACEOF
22037 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22039 _ACEOF
22040 sed '
22041 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22042 s/^/s,@/; s/!/@,|#_!!_#|/
22043 :n
22044 t n
22045 s/'"$ac_delim"'$/,g/; t
22046 s/$/\\/; p
22047 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22048 ' >>$CONFIG_STATUS <conf$$subs.sed
22049 rm -f conf$$subs.sed
22050 cat >>$CONFIG_STATUS <<_ACEOF
22051 :end
22052 s/|#_!!_#|//g
22053 CEOF$ac_eof
22054 _ACEOF
22055
22056
22057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22059 # trailing colons and then remove the whole line if VPATH becomes empty
22060 # (actually we leave an empty line to preserve line numbers).
22061 if test "x$srcdir" = x.; then
22062   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22063 s/:*\$(srcdir):*/:/
22064 s/:*\${srcdir}:*/:/
22065 s/:*@srcdir@:*/:/
22066 s/^\([^=]*=[     ]*\):*/\1/
22067 s/:*$//
22068 s/^[^=]*=[       ]*$//
22069 }'
22070 fi
22071
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22073 fi # test -n "$CONFIG_FILES"
22074
22075
22076 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22077 do
22078   case $ac_tag in
22079   :[FHLC]) ac_mode=$ac_tag; continue;;
22080   esac
22081   case $ac_mode$ac_tag in
22082   :[FHL]*:*);;
22083   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22084 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22085    { (exit 1); exit 1; }; };;
22086   :[FH]-) ac_tag=-:-;;
22087   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22088   esac
22089   ac_save_IFS=$IFS
22090   IFS=:
22091   set x $ac_tag
22092   IFS=$ac_save_IFS
22093   shift
22094   ac_file=$1
22095   shift
22096
22097   case $ac_mode in
22098   :L) ac_source=$1;;
22099   :[FH])
22100     ac_file_inputs=
22101     for ac_f
22102     do
22103       case $ac_f in
22104       -) ac_f="$tmp/stdin";;
22105       *) # Look for the file first in the build tree, then in the source tree
22106          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22107          # because $ac_f cannot contain `:'.
22108          test -f "$ac_f" ||
22109            case $ac_f in
22110            [\\/$]*) false;;
22111            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22112            esac ||
22113            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22114 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22115    { (exit 1); exit 1; }; };;
22116       esac
22117       ac_file_inputs="$ac_file_inputs $ac_f"
22118     done
22119
22120     # Let's still pretend it is `configure' which instantiates (i.e., don't
22121     # use $as_me), people would be surprised to read:
22122     #    /* config.h.  Generated by config.status.  */
22123     configure_input="Generated from "`IFS=:
22124           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22125     if test x"$ac_file" != x-; then
22126       configure_input="$ac_file.  $configure_input"
22127       { echo "$as_me:$LINENO: creating $ac_file" >&5
22128 echo "$as_me: creating $ac_file" >&6;}
22129     fi
22130
22131     case $ac_tag in
22132     *:-:* | *:-) cat >"$tmp/stdin";;
22133     esac
22134     ;;
22135   esac
22136
22137   ac_dir=`$as_dirname -- "$ac_file" ||
22138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22139          X"$ac_file" : 'X\(//\)[^/]' \| \
22140          X"$ac_file" : 'X\(//\)$' \| \
22141          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22142 echo X"$ac_file" |
22143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22144             s//\1/
22145             q
22146           }
22147           /^X\(\/\/\)[^/].*/{
22148             s//\1/
22149             q
22150           }
22151           /^X\(\/\/\)$/{
22152             s//\1/
22153             q
22154           }
22155           /^X\(\/\).*/{
22156             s//\1/
22157             q
22158           }
22159           s/.*/./; q'`
22160   { as_dir="$ac_dir"
22161   case $as_dir in #(
22162   -*) as_dir=./$as_dir;;
22163   esac
22164   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22165     as_dirs=
22166     while :; do
22167       case $as_dir in #(
22168       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22169       *) as_qdir=$as_dir;;
22170       esac
22171       as_dirs="'$as_qdir' $as_dirs"
22172       as_dir=`$as_dirname -- "$as_dir" ||
22173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22174          X"$as_dir" : 'X\(//\)[^/]' \| \
22175          X"$as_dir" : 'X\(//\)$' \| \
22176          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22177 echo X"$as_dir" |
22178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22179             s//\1/
22180             q
22181           }
22182           /^X\(\/\/\)[^/].*/{
22183             s//\1/
22184             q
22185           }
22186           /^X\(\/\/\)$/{
22187             s//\1/
22188             q
22189           }
22190           /^X\(\/\).*/{
22191             s//\1/
22192             q
22193           }
22194           s/.*/./; q'`
22195       test -d "$as_dir" && break
22196     done
22197     test -z "$as_dirs" || eval "mkdir $as_dirs"
22198   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22199 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22200    { (exit 1); exit 1; }; }; }
22201   ac_builddir=.
22202
22203 case "$ac_dir" in
22204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22205 *)
22206   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22207   # A ".." for each directory in $ac_dir_suffix.
22208   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22209   case $ac_top_builddir_sub in
22210   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22211   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22212   esac ;;
22213 esac
22214 ac_abs_top_builddir=$ac_pwd
22215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22216 # for backward compatibility:
22217 ac_top_builddir=$ac_top_build_prefix
22218
22219 case $srcdir in
22220   .)  # We are building in place.
22221     ac_srcdir=.
22222     ac_top_srcdir=$ac_top_builddir_sub
22223     ac_abs_top_srcdir=$ac_pwd ;;
22224   [\\/]* | ?:[\\/]* )  # Absolute name.
22225     ac_srcdir=$srcdir$ac_dir_suffix;
22226     ac_top_srcdir=$srcdir
22227     ac_abs_top_srcdir=$srcdir ;;
22228   *) # Relative name.
22229     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22230     ac_top_srcdir=$ac_top_build_prefix$srcdir
22231     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22232 esac
22233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22234
22235
22236   case $ac_mode in
22237   :F)
22238   #
22239   # CONFIG_FILE
22240   #
22241
22242   case $INSTALL in
22243   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22244   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22245   esac
22246 _ACEOF
22247
22248 cat >>$CONFIG_STATUS <<\_ACEOF
22249 # If the template does not know about datarootdir, expand it.
22250 # FIXME: This hack should be removed a few years after 2.60.
22251 ac_datarootdir_hack=; ac_datarootdir_seen=
22252
22253 case `sed -n '/datarootdir/ {
22254   p
22255   q
22256 }
22257 /@datadir@/p
22258 /@docdir@/p
22259 /@infodir@/p
22260 /@localedir@/p
22261 /@mandir@/p
22262 ' $ac_file_inputs` in
22263 *datarootdir*) ac_datarootdir_seen=yes;;
22264 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22265   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22266 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22267 _ACEOF
22268 cat >>$CONFIG_STATUS <<_ACEOF
22269   ac_datarootdir_hack='
22270   s&@datadir@&$datadir&g
22271   s&@docdir@&$docdir&g
22272   s&@infodir@&$infodir&g
22273   s&@localedir@&$localedir&g
22274   s&@mandir@&$mandir&g
22275     s&\\\${datarootdir}&$datarootdir&g' ;;
22276 esac
22277 _ACEOF
22278
22279 # Neutralize VPATH when `$srcdir' = `.'.
22280 # Shell code in configure.ac might set extrasub.
22281 # FIXME: do we really want to maintain this feature?
22282 cat >>$CONFIG_STATUS <<_ACEOF
22283   sed "$ac_vpsub
22284 $extrasub
22285 _ACEOF
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22287 :t
22288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22289 s&@configure_input@&$configure_input&;t t
22290 s&@top_builddir@&$ac_top_builddir_sub&;t t
22291 s&@srcdir@&$ac_srcdir&;t t
22292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22293 s&@top_srcdir@&$ac_top_srcdir&;t t
22294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22295 s&@builddir@&$ac_builddir&;t t
22296 s&@abs_builddir@&$ac_abs_builddir&;t t
22297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22298 s&@INSTALL@&$ac_INSTALL&;t t
22299 $ac_datarootdir_hack
22300 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22301
22302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22303   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22304   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22305   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22306 which seems to be undefined.  Please make sure it is defined." >&5
22307 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22308 which seems to be undefined.  Please make sure it is defined." >&2;}
22309
22310   rm -f "$tmp/stdin"
22311   case $ac_file in
22312   -) cat "$tmp/out"; rm -f "$tmp/out";;
22313   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22314   esac
22315  ;;
22316   :H)
22317   #
22318   # CONFIG_HEADER
22319   #
22320 _ACEOF
22321
22322 # Transform confdefs.h into a sed script `conftest.defines', that
22323 # substitutes the proper values into config.h.in to produce config.h.
22324 rm -f conftest.defines conftest.tail
22325 # First, append a space to every undef/define line, to ease matching.
22326 echo 's/$/ /' >conftest.defines
22327 # Then, protect against being on the right side of a sed subst, or in
22328 # an unquoted here document, in config.status.  If some macros were
22329 # called several times there might be several #defines for the same
22330 # symbol, which is useless.  But do not sort them, since the last
22331 # AC_DEFINE must be honored.
22332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22333 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22334 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22335 # PARAMS is the parameter list in the macro definition--in most cases, it's
22336 # just an empty string.
22337 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22338 ac_dB='\\)[      (].*,\\1define\\2'
22339 ac_dC=' '
22340 ac_dD=' ,'
22341
22342 uniq confdefs.h |
22343   sed -n '
22344         t rset
22345         :rset
22346         s/^[     ]*#[    ]*define[       ][      ]*//
22347         t ok
22348         d
22349         :ok
22350         s/[\\&,]/\\&/g
22351         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22352         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22353   ' >>conftest.defines
22354
22355 # Remove the space that was appended to ease matching.
22356 # Then replace #undef with comments.  This is necessary, for
22357 # example, in the case of _POSIX_SOURCE, which is predefined and required
22358 # on some systems where configure will not decide to define it.
22359 # (The regexp can be short, since the line contains either #define or #undef.)
22360 echo 's/ $//
22361 s,^[     #]*u.*,/* & */,' >>conftest.defines
22362
22363 # Break up conftest.defines:
22364 ac_max_sed_lines=50
22365
22366 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22367 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22368 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22369 # et cetera.
22370 ac_in='$ac_file_inputs'
22371 ac_out='"$tmp/out1"'
22372 ac_nxt='"$tmp/out2"'
22373
22374 while :
22375 do
22376   # Write a here document:
22377     cat >>$CONFIG_STATUS <<_ACEOF
22378     # First, check the format of the line:
22379     cat >"\$tmp/defines.sed" <<\\CEOF
22380 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22381 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22382 b
22383 :def
22384 _ACEOF
22385   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22386   echo 'CEOF
22387     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22388   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22389   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22390   grep . conftest.tail >/dev/null || break
22391   rm -f conftest.defines
22392   mv conftest.tail conftest.defines
22393 done
22394 rm -f conftest.defines conftest.tail
22395
22396 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22397 cat >>$CONFIG_STATUS <<\_ACEOF
22398   if test x"$ac_file" != x-; then
22399     echo "/* $configure_input  */" >"$tmp/config.h"
22400     cat "$ac_result" >>"$tmp/config.h"
22401     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22402       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22403 echo "$as_me: $ac_file is unchanged" >&6;}
22404     else
22405       rm -f $ac_file
22406       mv "$tmp/config.h" $ac_file
22407     fi
22408   else
22409     echo "/* $configure_input  */"
22410     cat "$ac_result"
22411   fi
22412   rm -f "$tmp/out12"
22413  ;;
22414
22415   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22416 echo "$as_me: executing $ac_file commands" >&6;}
22417  ;;
22418   esac
22419
22420
22421   case $ac_file$ac_mode in
22422     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22423    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22424     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22425    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22426     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22427    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22428     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22429    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22430     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22431    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22432     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22433    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22434     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22435    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22436     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22437    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22438     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22439    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22440     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22441    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22442     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22443    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22444     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22445    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22446     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22447    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22448
22449   esac
22450 done # for ac_tag
22451
22452
22453 { (exit 0); exit 0; }
22454 _ACEOF
22455 chmod +x $CONFIG_STATUS
22456 ac_clean_files=$ac_clean_files_save
22457
22458
22459 # configure is writing to config.log, and then calls config.status.
22460 # config.status does its own redirection, appending to config.log.
22461 # Unfortunately, on DOS this fails, as config.log is still kept open
22462 # by configure, so config.status won't be able to write to it; its
22463 # output is simply discarded.  So we exec the FD to /dev/null,
22464 # effectively closing config.log, so it can be properly (re)opened and
22465 # appended to by config.status.  When coming back to configure, we
22466 # need to make the FD available again.
22467 if test "$no_create" != yes; then
22468   ac_cs_success=:
22469   ac_config_status_args=
22470   test "$silent" = yes &&
22471     ac_config_status_args="$ac_config_status_args --quiet"
22472   exec 5>/dev/null
22473   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22474   exec 5>>config.log
22475   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22476   # would make configure fail if this is the last instruction.
22477   $ac_cs_success || { (exit 1); exit 1; }
22478 fi
22479
22480 #
22481 # CONFIG_SUBDIRS section.
22482 #
22483 if test "$no_recursion" != yes; then
22484
22485   # Remove --cache-file and --srcdir arguments so they do not pile up.
22486   ac_sub_configure_args=
22487   ac_prev=
22488   eval "set x $ac_configure_args"
22489   shift
22490   for ac_arg
22491   do
22492     if test -n "$ac_prev"; then
22493       ac_prev=
22494       continue
22495     fi
22496     case $ac_arg in
22497     -cache-file | --cache-file | --cache-fil | --cache-fi \
22498     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22499       ac_prev=cache_file ;;
22500     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22501     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22502     | --c=*)
22503       ;;
22504     --config-cache | -C)
22505       ;;
22506     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22507       ac_prev=srcdir ;;
22508     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22509       ;;
22510     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22511       ac_prev=prefix ;;
22512     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22513       ;;
22514     *)
22515       case $ac_arg in
22516       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22517       esac
22518       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22519     esac
22520   done
22521
22522   # Always prepend --prefix to ensure using the same prefix
22523   # in subdir configurations.
22524   ac_arg="--prefix=$prefix"
22525   case $ac_arg in
22526   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22527   esac
22528   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22529
22530   ac_popdir=`pwd`
22531   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22532
22533     # Do not complain, so a configure script can configure whichever
22534     # parts of a large source tree are present.
22535     test -d "$srcdir/$ac_dir" || continue
22536
22537     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22538     echo "$as_me:$LINENO: $ac_msg" >&5
22539     echo "$ac_msg" >&6
22540     { as_dir="$ac_dir"
22541   case $as_dir in #(
22542   -*) as_dir=./$as_dir;;
22543   esac
22544   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22545     as_dirs=
22546     while :; do
22547       case $as_dir in #(
22548       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22549       *) as_qdir=$as_dir;;
22550       esac
22551       as_dirs="'$as_qdir' $as_dirs"
22552       as_dir=`$as_dirname -- "$as_dir" ||
22553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22554          X"$as_dir" : 'X\(//\)[^/]' \| \
22555          X"$as_dir" : 'X\(//\)$' \| \
22556          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22557 echo X"$as_dir" |
22558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22559             s//\1/
22560             q
22561           }
22562           /^X\(\/\/\)[^/].*/{
22563             s//\1/
22564             q
22565           }
22566           /^X\(\/\/\)$/{
22567             s//\1/
22568             q
22569           }
22570           /^X\(\/\).*/{
22571             s//\1/
22572             q
22573           }
22574           s/.*/./; q'`
22575       test -d "$as_dir" && break
22576     done
22577     test -z "$as_dirs" || eval "mkdir $as_dirs"
22578   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22579 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22580    { (exit 1); exit 1; }; }; }
22581     ac_builddir=.
22582
22583 case "$ac_dir" in
22584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22585 *)
22586   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22587   # A ".." for each directory in $ac_dir_suffix.
22588   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22589   case $ac_top_builddir_sub in
22590   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22591   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22592   esac ;;
22593 esac
22594 ac_abs_top_builddir=$ac_pwd
22595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22596 # for backward compatibility:
22597 ac_top_builddir=$ac_top_build_prefix
22598
22599 case $srcdir in
22600   .)  # We are building in place.
22601     ac_srcdir=.
22602     ac_top_srcdir=$ac_top_builddir_sub
22603     ac_abs_top_srcdir=$ac_pwd ;;
22604   [\\/]* | ?:[\\/]* )  # Absolute name.
22605     ac_srcdir=$srcdir$ac_dir_suffix;
22606     ac_top_srcdir=$srcdir
22607     ac_abs_top_srcdir=$srcdir ;;
22608   *) # Relative name.
22609     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22610     ac_top_srcdir=$ac_top_build_prefix$srcdir
22611     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22612 esac
22613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22614
22615
22616     cd "$ac_dir"
22617
22618     # Check for guested configure; otherwise get Cygnus style configure.
22619     if test -f "$ac_srcdir/configure.gnu"; then
22620       ac_sub_configure=$ac_srcdir/configure.gnu
22621     elif test -f "$ac_srcdir/configure"; then
22622       ac_sub_configure=$ac_srcdir/configure
22623     elif test -f "$ac_srcdir/configure.in"; then
22624       # This should be Cygnus configure.
22625       ac_sub_configure=$ac_aux_dir/configure
22626     else
22627       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22629       ac_sub_configure=
22630     fi
22631
22632     # The recursion is here.
22633     if test -n "$ac_sub_configure"; then
22634       # Make the cache file name correct relative to the subdirectory.
22635       case $cache_file in
22636       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22637       *) # Relative name.
22638         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22639       esac
22640
22641       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22642 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22643       # The eval makes quoting arguments work.
22644       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22645            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22646         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22647 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22648    { (exit 1); exit 1; }; }
22649     fi
22650
22651     cd "$ac_popdir"
22652   done
22653 fi
22654